input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
whenValidationWithInvalidConstructorParameters_thenCorrectNumberOfVoilations ( ) { java . lang . reflect . Constructor < org . baeldung . javaxval . methodvalidation . model . Customer > constructor = org . baeldung . javaxval . methodvalidation . model . Customer . class . getConstructor ( java . lang . String . class...
org . junit . Assert . assertEquals ( 2 , violations . size ( ) )
testProjectionMethodsAreCalledIfParametersAreAssignableToSuperclassOrInterface ( ) { final akka . testkit . TestActorRef < no . ks . eventstore2 . formProcessorProject . FormStatuses > ref = akka . testkit . TestActorRef . create ( no . ks . eventstore2 . projection . ProjectionCallTest . _system , akka . actor . Props...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
testStaticImport ( ) { java . util . Set < net . sourceforge . pmd . lang . java . ast . ASTImportDeclaration > ops = net . sourceforge . pmd . lang . java . ParserTstUtil . getNodes ( net . sourceforge . pmd . lang . java . ast . ASTImportDeclaration . class , net . sourceforge . pmd . lang . java . ast . ASTImportDec...
org . junit . Assert . assertTrue ( i . isStatic ( ) )
testTrashVersionBaseModelIsNotVisible ( ) { org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenIsAssetableBaseModel ) ) ; org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenIsUpdatableBaseModel ) ) ; com . liferay . trash ...
org . junit . Assert . assertFalse ( whenIsAssetableModel . isAssetEntryVisible ( baseModel , getAssetClassPK ( baseModel ) ) )
defaultTest3 ( ) { com . zaxxer . hikari . HikariDataSource dataSource = new com . zaxxer . hikari . HikariDataSource ( ) ; dataSource . setDataSourceClassName ( com . navercorp . pinpoint . plugin . jdk7 . hikaricp . HikariCpIT . DATA_SOURCE_CLASS_NAME ) ; dataSource . addDataSourceProperty ( "url" , com . navercorp ....
org . junit . Assert . assertNotNull ( connection )
testRecognize ( ) { java . lang . String value = "-------------------------------------------------------\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( "T<sp>E<sp>S<sp>T<sp>S\n" + "-------------------------------------------------------\n" ) + "Running<sp>hello.HelloWorldTest\n" ) + "--------------------------------------------------...
org . junit . Assert . assertEquals ( 2 , list . size ( ) )
testCreate_attrMin_wrong ( ) { com . github . mygreen . supercsv . builder . FieldAccessor field = getFieldAccessor ( com . github . mygreen . supercsv . cellprocessor . constraint . NumberRangeFactoryTest . ErrorCsv . class , "col_min_wrong" , comparator ) ; com . github . mygreen . supercsv . builder . standard . Int...
org . junit . Assert . assertThat ( e )
createEmptyComplexListTest ( ) { com . betfair . cougar . tests . clienttests . CougarClientResponseTypeUtils utils = new com . betfair . cougar . tests . clienttests . CougarClientResponseTypeUtils ( ) ; java . util . List < com . betfair . baseline . v2 . to . ComplexObject > returnedList = utils . createEmptyComplex...
org . junit . Assert . assertTrue ( returnedList . isEmpty ( ) )
shouldStartServerOnRandomPortWhenDefaultPortIsBusy ( ) { com . xebialabs . restito . server . StubServer server1 = new com . xebialabs . restito . server . StubServer ( ) . run ( ) ; com . xebialabs . restito . server . StubServer server2 = new com . xebialabs . restito . server . StubServer ( ) . run ( ) ; "<AssertPla...
org . junit . Assert . assertTrue ( ( ( server2 . getPort ( ) ) != ( server1 . getPort ( ) ) ) )
host2 ( ) { org . jboss . hal . meta . AddressTemplate input = org . jboss . hal . meta . AddressTemplate . of ( "/host=master/subsystem=jmx" ) ; org . jboss . hal . meta . AddressTemplate expected = org . jboss . hal . meta . AddressTemplate . of ( "/host=*/subsystem=jmx" ) ; org . jboss . hal . meta . AddressTemplate...
org . junit . Assert . assertEquals ( expected , result )
test45getUserRolesByName ( ) { destroySession ( ) ; setup ( ) ; org . apache . ranger . db . XXPortalUserRoleDao xPortalUserRoleDao = org . mockito . Mockito . mock ( org . apache . ranger . db . XXPortalUserRoleDao . class ) ; org . apache . ranger . view . VXPortalUser userProfile = userProfile ( ) ; java . util . Co...
org . junit . Assert . assertNotNull ( vXStringList )
testGetFirehoseNoDomainSet ( ) { store . setNodeConfValue ( org . buddycloud . channelserver . db . jdbc . TEST_SERVER1_NODE1_ID , Conf . ACCESS_MODEL , AccessModels . open . toString ( ) ) ; org . buddycloud . channelserver . Configuration . getInstance ( ) . remove ( Configuration . CONFIGURATION_SERVER_DOMAIN ) ; or...
org . junit . Assert . assertEquals ( 5 , itemCount )
testBuilder_user ( ) { com . google . cloud . tools . jib . configuration . ContainerConfiguration configuration = com . google . cloud . tools . jib . configuration . ContainerConfiguration . builder ( ) . setUser ( "john" ) . build ( ) ; "<AssertPlaceHolder>" ; } getUser ( ) { return user ; }
org . junit . Assert . assertEquals ( "john" , configuration . getUser ( ) )
testBatchWithFailedExecutionJobDeletionWithCascade ( ) { org . camunda . bpm . engine . repository . ProcessDefinition processDefinition = testRule . deployAndGetDefinition ( ProcessModels . TWO_TASKS_PROCESS ) ; org . camunda . bpm . engine . runtime . ProcessInstance processInstance1 = runtimeService . startProcessIn...
org . junit . Assert . assertEquals ( 0 , historicIncidents )
embeddedCacheWithFlagsTest ( ) { org . apache . camel . component . infinispan . InfinispanConfiguration configuration = new org . apache . camel . component . infinispan . InfinispanConfiguration ( ) ; configuration . setHosts ( "localhost" ) ; configuration . setCacheContainer ( new org . infinispan . manager . Defau...
org . junit . Assert . assertNotNull ( cache )
shouldConstructAnAuthorizationHttpChannelWithGivenParams ( ) { org . codegist . crest . config . MethodType type = mock ( org . codegist . crest . config . MethodType . class ) ; org . codegist . crest . io . http . HttpChannel channel = mock ( org . codegist . crest . io . http . HttpChannel . class ) ; org . codegist...
org . junit . Assert . assertSame ( expected , actual )
testRead ( ) { org . eclipse . rap . rwt . internal . resources . ClientFilesReader reader = org . eclipse . rap . rwt . internal . resources . ClientFilesReader_Test . createReader ( "foo\nbar" ) ; reader . read ( ) ; "<AssertPlaceHolder>" ; } getFiles ( ) { if ( ( files ) == null ) { files = new org . eclipse . ui . ...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "foo" , "bar" ) , reader . getFiles ( ) )
strict_with_ambiguous_scenarios ( ) { createStrictRuntime ( ) ; bus . send ( testCaseFinishedWithStatus ( Result . Type . AMBIGUOUS ) ) ; "<AssertPlaceHolder>" ; } exitStatus ( ) { if ( results . isEmpty ( ) ) { return cucumber . runtime . ExitStatus . DEFAULT ; } if ( runtimeOptions . isWip ( ) ) { return min ( result...
org . junit . Assert . assertEquals ( 1 , exitStatus . exitStatus ( ) )
testGetFromPennTreebankString ( ) { java . lang . String origTreeStr = "" + ( ( ( ( "((VP<sp>(VB<sp>join)\n" + "(NP<sp>(DT<sp>the)<sp>(NN<sp>board)<sp>)\n" ) + "(PP-CLR<sp>(IN<sp>as)\n" ) + "(NP<sp>(DT<sp>a)<sp>(JJ<sp>nonexecutive)<sp>(NN<sp>director)<sp>))\n" ) + "(NP-TMP<sp>(NNP<sp>Nov.)<sp>(CD<sp>29)<sp>)))\n" ) ; j...
org . junit . Assert . assertEquals ( origTreeStr , newTreeStr )
testIdConstructor_Null ( ) { org . matsim . api . core . v01 . Id < org . matsim . api . core . v01 . IdTest . TLink > linkId1 = org . matsim . api . core . v01 . Id . create ( ( ( org . matsim . api . core . v01 . Id ) ( null ) ) , org . matsim . api . core . v01 . IdTest . TLink . class ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertNull ( linkId1 )
testCastCase_01 ( ) { org . eclipse . xtend . core . xtend . XtendClass xtendClazz = this . toValidXtendClass ( "public<sp>class<sp>TestCast<sp>{<sp>void<sp>doStuff()<sp>{<sp>Object<sp>o<sp>=<sp>(Object)this;}" ) ; "<AssertPlaceHolder>" ; } toValidXtendClass ( java . lang . CharSequence ) { org . eclipse . xtend . core...
org . junit . Assert . assertNotNull ( xtendClazz )
testProcess_zeroterminated ( ) { System . out . println ( "zeroterm" ) ; kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor instance = new kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor ( ) ; instance . testStarted ( ) ; instance . setFileName ( ( ( basedir ) + "/rawdata_zeroterm_looped.txt" ) )...
org . junit . Assert . assertEquals ( 6 , n )
testSetFieldSeparator ( ) { final org . apache . commons . lang3 . builder . ToStringStyle style = new org . apache . commons . lang3 . builder . ToStringStyleTest . ToStringStyleImpl ( ) ; style . setFieldSeparator ( null ) ; "<AssertPlaceHolder>" ; } getFieldSeparator ( ) { return fieldSeparator ; }
org . junit . Assert . assertEquals ( "" , style . getFieldSeparator ( ) )
testAuthUserReadAppendDelete ( ) { setupAuthUserReadAppend ( ) ; request . setRequestURI ( org . fcrepo . auth . webac . WebACFilterTest . testPath ) ; request . setMethod ( "DELETE" ) ; webacFilter . doFilter ( request , response , filterChain ) ; "<AssertPlaceHolder>" ; } doFilter ( javax . servlet . ServletRequest ,...
org . junit . Assert . assertEquals ( javax . servlet . http . HttpServletResponse . SC_FORBIDDEN , response . getStatus ( ) )
testImportToSqliteViaFromParameters ( ) { java . io . File dbFile = java . io . File . createTempFile ( "test" , "db" ) ; dbFile . deleteOnExit ( ) ; de . hpi . isg . mdms . rdbms . SQLiteInterface sqliteInterface = de . hpi . isg . mdms . rdbms . SQLiteInterface . createForFile ( dbFile ) ; de . hpi . isg . mdms . mod...
org . junit . Assert . assertNotNull ( table1Comments )
queriesDontReturnDeletedEntities ( ) { com . google . appengine . api . datastore . Entity entity = createTestEntity ( "KIND" ) ; com . google . appengine . api . datastore . Key key = entity . getKey ( ) ; service . put ( entity ) ; service . delete ( key ) ; java . util . List < com . google . appengine . api . datas...
org . junit . Assert . assertEquals ( 0 , entities . size ( ) )
testListHourCost ( ) { int previous = hourCostDAO . list ( org . libreplan . business . costcategories . entities . HourCost . class ) . size ( ) ; org . libreplan . business . costcategories . entities . HourCost hourCost = createValidHourCost ( ) ; hourCostDAO . save ( hourCost ) ; java . util . List < org . librepla...
org . junit . Assert . assertEquals ( ( previous + 1 ) , list . size ( ) )
testSquare ( ) { edu . ucla . sspace . graph . isomorphism . Graph < edu . ucla . sspace . graph . isomorphism . Edge > g1 = new edu . ucla . sspace . graph . isomorphism . SparseUndirectedGraph ( ) ; g1 . add ( new edu . ucla . sspace . graph . isomorphism . SimpleEdge ( 1 , 2 ) ) ; g1 . add ( new edu . ucla . sspace ...
org . junit . Assert . assertTrue ( isoTest . areIsomorphic ( g1 , g2 ) )
testRewritePomWithParentAndProperties ( ) { java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createReactorProjects ( "pom-with-parent-and-properties" ) ; org . apache . maven . shared . release . config . ReleaseDescriptorBuilder builder = createDescriptorFromProjects ( reactorProj...
org . junit . Assert . assertTrue ( comparePomFiles ( reactorProjects ) )
testAggregatorWithoutParameterForIterateDelta ( ) { final org . apache . flink . api . java . ExecutionEnvironment env = org . apache . flink . api . java . ExecutionEnvironment . getExecutionEnvironment ( ) ; env . setParallelism ( org . apache . flink . test . iterative . aggregators . AggregatorsITCase . parallelism...
org . junit . Assert . assertEquals ( expected , result )
testGetSlackService ( ) { org . gitlab4j . api . services . SlackService slackService = org . gitlab4j . api . TestServicesApi . gitLabApi . getServicesApi ( ) . getSlackService ( org . gitlab4j . api . TestServicesApi . testProject ) ; "<AssertPlaceHolder>" ; } getSlackService ( java . lang . Object ) { javax . ws . r...
org . junit . Assert . assertNotNull ( slackService )
whenServiceRouteAndNewServiceFitsIn_itShouldReturnFulfilled ( ) { stateManager . informInsertionStarts ( java . util . Arrays . asList ( serviceRoute ) , java . util . Collections . < com . graphhopper . jsprit . core . problem . constraint . Job > emptyList ( ) ) ; com . graphhopper . jsprit . core . problem . constra...
org . junit . Assert . assertTrue ( loadconstraint . fulfilled ( context ) )
testTessBaseAPIAnalyseLayout ( ) { net . sourceforge . tess4j . TessAPITest . logger . info ( "TessBaseAPIAnalyseLayout" ) ; java . io . File image = new java . io . File ( testResourcesDataPath , "eurotext.png" ) ; int expResult = 12 ; net . sourceforge . lept4j . Leptonica leptInstance = net . sourceforge . lept4j . ...
org . junit . Assert . assertEquals ( expResult , i )
testBadSyntax ( ) { boolean ok = rawGenerateAndBuildRecognizer ( "Expr.g4" , org . antlr . v4 . test . tool . TestXPath . grammar , "ExprParser" , "ExprLexer" , false ) ; "<AssertPlaceHolder>" ; java . lang . String path = "///" ; java . lang . String expected = "/<sp>at<sp>index<sp>2<sp>isn't<sp>a<sp>valid<sp>rule<sp>...
org . junit . Assert . assertTrue ( ok )
nullBoundsMeansImageBounds ( ) { image = createSequentialImage ( org . jaitools . imageutils . iterator . SimpleIteratorTest . WIDTH , org . jaitools . imageutils . iterator . SimpleIteratorTest . HEIGHT , org . jaitools . imageutils . iterator . SimpleIteratorTest . NUM_BANDS ) ; iter = new org . jaitools . imageutils...
org . junit . Assert . assertEquals ( imageBounds , iter . getBounds ( ) )
testBindIndex7 ( ) { fr . inria . corese . core . Graph g = fr . inria . corese . core . Graph . create ( ) ; fr . inria . corese . core . query . QueryProcess exec = fr . inria . corese . core . query . QueryProcess . create ( g ) ; java . lang . String q = "select<sp>" + ( ( ( ( ( ( ( ( "(us:test(3,<sp>3)<sp>as<sp>?t...
org . junit . Assert . assertEquals ( 0 , map . size ( ) )
testEqualityWithNull ( ) { javax . measure . Quantity < javax . measure . quantity . Length > value = tec . units . ri . quantity . Quantities . getQuantity ( java . lang . Integer . valueOf ( 20 ) , Units . METRE ) ; javax . measure . Quantity < javax . measure . quantity . Length > anotherValue = tec . units . ri . q...
org . junit . Assert . assertEquals ( value , anotherValue )
testSetsChangeHandler ( ) { com . eclipsesource . tabris . internal . ui . PropertyChangeNotifier notifier = new com . eclipsesource . tabris . internal . ui . PropertyChangeNotifier ( ) ; com . eclipsesource . tabris . internal . ui . PropertyChangeHandler handler = mock ( com . eclipsesource . tabris . internal . ui ...
org . junit . Assert . assertSame ( handler , actualHandler )
testForURLSafeToken ( ) { java . util . List < java . lang . String > aefMapIdsList = java . util . Collections . singletonList ( "290" ) ; org . kaaproject . kaa . common . dto . admin . SdkProfileDto sdkProfileDto = new org . kaaproject . kaa . common . dto . admin . SdkProfileDto ( "113" , 1 , 0 , 1 , 1 , aefMapIdsL...
org . junit . Assert . assertFalse ( sdkProfileDto . getToken ( ) . contains ( "/" ) )
relative ( ) { org . jboss . as . console . client . v3 . dmr . AddressTemplate at = org . jboss . as . console . client . v3 . dmr . AddressTemplate . of ( "a=b/c=d" ) ; "<AssertPlaceHolder>" ; } getTemplate ( ) { return template ; }
org . junit . Assert . assertEquals ( "a=b/c=d" , at . getTemplate ( ) )
testDeptRepoSave ( ) { java . lang . String name = "test123" ; com . tomniu . model . Department dept = new com . tomniu . model . Department ( ) ; dept . setDeptName ( name ) ; com . tomniu . model . Department dept1 = deptRepo . save ( dept ) ; "<AssertPlaceHolder>" ; } getDeptName ( ) { return deptName ; }
org . junit . Assert . assertEquals ( name , dept1 . getDeptName ( ) )
testPack3dInput ( ) { final double [ ] [ ] [ ] data = new double [ slices ] [ rows ] [ columns ] ; java . lang . String msg = ( java . lang . String . format ( org . jtransforms . fft . RealFFTUtils_3DTest . DEFAULT_MESSAGE , numThreads , slices , rows , columns ) ) + "[%d][%d][%d]" ; for ( int s = 0 ; s < ( slices ) ;...
org . junit . Assert . assertEquals ( java . lang . String . format ( msg , s , r , c ) , expected , actual , 0.0 )
shouldWorkWithNull ( ) { "<AssertPlaceHolder>" ; } getLanguage ( java . lang . String ) { localeString = ( ( localeString == null ) || ( localeString . equals ( "default" ) ) ) ? "en" : localeString ; java . lang . String [ ] split = localeString . split ( "[_-]" ) ; if ( ( ( split . length ) > 0 ) && ( split [ 0 ] . m...
org . junit . Assert . assertEquals ( "en" , cc . kune . common . shared . utils . I18nBasicUtils . getLanguage ( null ) )
testSignalNamedSlot ( ) { final java . util . concurrent . atomic . AtomicBoolean correct = new java . util . concurrent . atomic . AtomicBoolean ( ) ; java . lang . Object callback = new java . lang . Object ( ) { @ com . aldebaran . qi . QiSlot ( "abc" ) public void onResult ( int i , java . lang . String s ) { corre...
org . junit . Assert . assertTrue ( correct . get ( ) )
getGroupMembersEmptyAfterFilter ( ) { System . out . println ( "VootManager.getGroupMembersEmptyAfterFilter" ) ; voot = new cz . metacentrum . perun . voot . VOOT ( ) ; java . lang . String groupName = "vo1:group2" ; cz . metacentrum . perun . voot . Response response = ( ( cz . metacentrum . perun . voot . Response ) ...
org . junit . Assert . assertEquals ( 0 , response . getEntry ( ) . length )
testUnlinkObject ( ) { System . out . println ( "unlinkObject" ) ; java . lang . String objectName = "" ; java . lang . Object [ ] ids = null ; com . odoojava . api . OdooCommand instance = null ; boolean expResult = false ; boolean result = instance . unlinkObject ( objectName , ids ) ; "<AssertPlaceHolder>" ; fail ( ...
org . junit . Assert . assertEquals ( expResult , result )
test_simple_sequencer_initialization ( ) { com . hazelcast . test . TestHazelcastInstanceFactory factory = new com . hazelcast . test . TestHazelcastInstanceFactory ( 1 ) ; com . hazelcast . core . HazelcastInstance hazelcastInstance = factory . newHazelcastInstance ( ) ; try { com . noctarius . snowcast . Snowcast sno...
org . junit . Assert . assertNotNull ( sequencer )
whenDeleteModelThenGetNull ( ) { nbc . add ( 1 , testModel ) ; nbc . delete ( 1 ) ; "<AssertPlaceHolder>" ; } get ( K ) { return this . cache . getOrDefault ( key , null ) ; }
org . junit . Assert . assertNull ( nbc . get ( 1 ) )
provides_the_scenario_line ( ) { java . util . List < gherkin . pickles . PickleLocation > scenarioLocation = asList ( new gherkin . pickles . PickleLocation ( line ( 3 ) , column ( 2 ) ) ) ; cucumber . runner . Scenario scenario = createScenarioWithScenarioLocations ( scenarioLocation ) ; "<AssertPlaceHolder>" ; } get...
org . junit . Assert . assertEquals ( asList ( 3 ) , scenario . getLines ( ) )
testCreatedCacheWithConfiguration ( ) { org . dayatang . cache . ehcache . EhCacheConfiguration configuration = org . dayatang . cache . ehcache . EhCacheConfiguration . builder ( ) . name ( "mycache" ) . maxElementsInMemory ( 100000 ) . overflowToDisk ( true ) . eternal ( true ) . timeToLiveSeconds ( 1200000 ) . timeT...
org . junit . Assert . assertTrue ( ( cache != null ) )
secondRuleDrl ( ) { org . drools . builder . KnowledgeBuilder kbuilder = org . drools . builder . KnowledgeBuilderFactory . newKnowledgeBuilder ( ) ; kbuilder . add ( new org . drools . io . impl . ClassPathResource ( "secondRule.drl" ) , ResourceType . DRL ) ; if ( kbuilder . hasErrors ( ) ) { throw new java . lang . ...
org . junit . Assert . assertEquals ( 1 , fired )
testHibernateProfile ( ) { java . util . List < org . geosdi . geoplatform . persistence . demo . model . Car > cars = this . hibCarDAO . findAll ( ) ; "<AssertPlaceHolder>" ; logger . info ( "Persistence<sp>Hibernate<sp>Test<sp>-<sp>Car<sp>Found<sp>@@@@@@@@@@@@@@@@@@@@@@@@@<sp>{}\n" , cars ) ; logger . info ( "#######...
org . junit . Assert . assertTrue ( ( ( cars . size ( ) ) == 1 ) )
testInvalidAlertDefinition ( ) { java . lang . String componentName = "DATANODE" ; org . apache . ambari . server . state . Alert alert = new org . apache . ambari . server . state . Alert ( "missing_alert_definition_name" , null , "HDFS" , componentName , org . apache . ambari . server . state . alerts . AlertReceived...
org . junit . Assert . assertEquals ( 0 , allCurrent . size ( ) )
testRemoveAttribute ( ) { com . amadeus . session . RepositoryBackedSession rbs = new com . amadeus . session . RepositoryBackedSession ( sessionData , manager , factory ) ; rbs . setAttribute ( "Test" , "value" ) ; rbs . removeAttribute ( "Test" ) ; verify ( notifier ) . attributeRemoved ( refEq ( rbs ) , eq ( "Test" ...
org . junit . Assert . assertNull ( rbs . getAttribute ( "Test" ) )
componentToDependency ( ) { io . cereebro . server . graph . sigma . Edge actual = io . cereebro . server . graph . sigma . Edge . to ( io . cereebro . core . Component . of ( "phoenix" , "superhero" ) , io . cereebro . core . Dependency . on ( io . cereebro . core . Component . of ( "xavier" , "superhero" ) ) ) ; io ....
org . junit . Assert . assertEquals ( expected , actual )
found_in_index ( ) { final net . ripe . db . whois . common . rpsl . RpslObject domain = net . ripe . db . whois . common . rpsl . RpslObject . parse ( "domain:142.37.in-addr.arpa\nnserver:ns.ripe.net" ) ; rpslObjectUpdateDao . createObject ( domain ) ; subject = net . ripe . db . whois . common . dao . jdbc . index . ...
org . junit . Assert . assertThat ( results . size ( ) , org . hamcrest . core . Is . is ( 1 ) )
billingCodeNullTest ( ) { org . marc . everest . rmim . uv . cdar2 . pocd_mt000040uv . EntryRelationship entryRelationship = org . oscarehr . e2e . model . export . body . FamilyHistoryModelTest . nullFamilyHistoryModel . getBillingCode ( ) ; "<AssertPlaceHolder>" ; } getBillingCode ( ) { return billingCode ; }
org . junit . Assert . assertNotNull ( entryRelationship )
applyGlobMixedCase ( ) { setup ( "n*e" ) ; org . apache . hadoop . fs . shell . PathData item = new org . apache . hadoop . fs . shell . PathData ( "/directory/path/NaMe" , mockFs . getConf ( ) ) ; "<AssertPlaceHolder>" ; } apply ( org . apache . hadoop . fs . shell . PathData , int ) { java . lang . String name = getP...
org . junit . Assert . assertEquals ( Result . FAIL , name . apply ( item , ( - 1 ) ) )
shouldCompareReturnMinusOneIfSolutionBHasHigherDistance ( ) { @ org . uma . jmetal . util . comparator . SuppressWarnings ( "unchecked" ) org . uma . jmetal . util . solutionattribute . impl . CrowdingDistance < org . uma . jmetal . solution . Solution < ? > > distance = mock ( org . uma . jmetal . util . solutionattri...
org . junit . Assert . assertEquals ( ( - 1 ) , comparator . compare ( solution1 , solution2 ) )
testExceptionWhenOperationNotAllowed ( ) { final org . opensmartgridplatform . shared . exceptionhandling . FunctionalException fe = new org . opensmartgridplatform . shared . exceptionhandling . FunctionalException ( org . opensmartgridplatform . shared . exceptionhandling . FunctionalExceptionType . UNAUTHORIZED , or...
org . junit . Assert . assertEquals ( fe , e )
testGrantPermission ( ) { com . picocontainer . classname . ClassPathElement element = new com . picocontainer . classname . ClassPathElement ( new java . net . URL ( "file:///usr/lib" ) ) ; element . grantPermission ( new java . io . FilePermission ( "/usr/lib" , "read" ) ) ; "<AssertPlaceHolder>" ; } getPermissionCol...
org . junit . Assert . assertNotNull ( element . getPermissionCollection ( ) )
testClientUntypedRequestWithoutHint ( ) { ca . uhn . fhir . rest . server . SearchReturningProfiledResourceDstu2Test . ourCtx = ca . uhn . fhir . context . FhirContext . forDstu2 ( ) ; ca . uhn . fhir . rest . client . api . IGenericClient client = ca . uhn . fhir . rest . server . SearchReturningProfiledResourceDstu2T...
org . junit . Assert . assertEquals ( ca . uhn . fhir . model . dstu2 . resource . Patient . class , bundle . getEntry ( ) . get ( 0 ) . getResource ( ) . getClass ( ) )
testVer ( ) { log . debug ( "Debiera<sp>mostrar<sp>una<sp>Orden<sp>de<sp>Pago" ) ; mx . edu . um . mateo . contabilidad . web . Usuario usuario = this . obtieneUsuario ( ) ; this . authenticate ( usuario , usuario . getPassword ( ) , new java . util . ArrayList < org . springframework . security . core . GrantedAuthori...
org . junit . Assert . assertNotNull ( orden . getId ( ) )
testGeboortemamaMetTitel ( ) { voegKindToeAanOuder ( broertje , papa , mama ) ; final nl . bzk . brp . bijhouding . bericht . model . ElementBuilder . NaamParameters sPara = new nl . bzk . brp . bijhouding . bericht . model . ElementBuilder . NaamParameters ( ) ; sPara . indicatieNamenreeks ( false ) ; final nl . bzk ....
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
test_size_4 ( ) { org . trie4j . Trie t = trieWithWords ( "hello" , "helicoptor" , "world" , "hel" ) ; "<AssertPlaceHolder>" ; } size ( ) { return orig . size ( ) ; }
org . junit . Assert . assertEquals ( 4 , t . size ( ) )
test ( ) { com . arjuna . ats . internal . jts . utils . TxStoreLog log = new com . arjuna . ats . internal . jts . utils . TxStoreLog ( ) ; com . arjuna . ats . arjuna . state . InputObjectState is = new com . arjuna . ats . arjuna . state . InputObjectState ( ) ; "<AssertPlaceHolder>" ; } getTransactions ( com . arju...
org . junit . Assert . assertTrue ( com . arjuna . ats . internal . jts . utils . TxStoreLog . getTransactions ( is ) )
noErrorOnJSExecutionBeforeDetach ( ) { open ( ) ; findElement ( org . openqa . selenium . By . tagName ( "button" ) ) . click ( ) ; waitUntil ( ( driver ) -> ! ( isElementPresent ( org . openqa . selenium . By . className ( "v-system-error" ) ) ) ) ; "<AssertPlaceHolder>" ; } isElementPresent ( org . openqa . selenium ...
org . junit . Assert . assertFalse ( isElementPresent ( org . openqa . selenium . By . className ( "v-system-error" ) ) )
testIndexForNodes ( ) { org . neo4j . rest . graphdb . index . RestIndexManager index = ( ( org . neo4j . rest . graphdb . index . RestIndexManager ) ( getRestGraphDb ( ) . index ( ) ) ) ; org . neo4j . graphdb . index . Index < org . neo4j . graphdb . Node > testIndex = index . forNodes ( "indexName" ) ; "<AssertPlace...
org . junit . Assert . assertTrue ( index . existsForNodes ( "indexName" ) )
testGetPayloadReturnsNullIfTheQueryResponseMessageDidNotContainAnyPayload ( ) { org . axonframework . queryhandling . QueryResponseMessage < org . axonframework . axonserver . connector . query . GrpcBackedResponseMessageTest . TestQueryResponse > testQueryResponseMessage = org . axonframework . queryhandling . Generic...
org . junit . Assert . assertNull ( testSubject . getPayload ( ) )
testIterator ( ) { java . util . Iterator < java . lang . String > it2 = ch . bfh . unicrypt . helper . array . DenseArrayTest . a2 . iterator ( ) ; java . util . Iterator < java . lang . String > it3 = ch . bfh . unicrypt . helper . array . DenseArrayTest . a3 . iterator ( ) ; while ( it2 . hasNext ( ) ) { "<AssertPla...
org . junit . Assert . assertEquals ( it2 . next ( ) , it3 . next ( ) )
testCreateAndWaitUntilReady ( ) { io . fabric8 . kubernetes . api . model . Pod pod1 = new io . fabric8 . kubernetes . api . model . PodBuilder ( ) . withNewMetadata ( ) . withName ( "pod1" ) . withResourceVersion ( "1" ) . withNamespace ( "test" ) . and ( ) . build ( ) ; io . fabric8 . kubernetes . api . model . Pod n...
org . junit . Assert . assertTrue ( io . fabric8 . kubernetes . client . internal . readiness . Readiness . isPodReady ( p ) )
testGenerateName_withZeroLength ( ) { final java . lang . String result = grammarGenerator . generateName ( 0 ) ; "<AssertPlaceHolder>" ; } generateName ( int ) { if ( length < 2 ) { length = 2 ; } final java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; final java . util . concurrent . ThreadLocalR...
org . junit . Assert . assertEquals ( 2 , result . length ( ) )
testPatternMatches ( ) { final org . apache . logging . log4j . core . time . internal . format . DateParser parser = getInstance ( org . apache . logging . log4j . core . time . internal . format . FastDateParserTest . yMdHmsSZ ) ; "<AssertPlaceHolder>" ; } getPattern ( ) { return pattern ; }
org . junit . Assert . assertEquals ( org . apache . logging . log4j . core . time . internal . format . FastDateParserTest . yMdHmsSZ , parser . getPattern ( ) )
shouldReturnFalseIfOtherVersionIsNull ( ) { com . github . zafarkhaja . semver . Version v1 = com . github . zafarkhaja . semver . Version . valueOf ( "2.3.7" ) ; com . github . zafarkhaja . semver . Version v2 = null ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == other ) { return true ;...
org . junit . Assert . assertFalse ( v1 . equals ( v2 ) )
assertGetURLForColumnIndex ( ) { for ( java . sql . ResultSet each : resultSets . values ( ) ) { try { each . getURL ( 1 ) ; org . junit . Assert . fail ( "Expected<sp>an<sp>SQLException<sp>to<sp>be<sp>thrown" ) ; } catch ( final java . lang . Exception ex ) { "<AssertPlaceHolder>" ; } } } isEmpty ( ) { return tables ....
org . junit . Assert . assertFalse ( ex . getMessage ( ) . isEmpty ( ) )
isExpandedReturnsTrueForTrueSetting ( ) { this . parameters . put ( "expanded_by_default" , "true" ) ; org . phenotips . configuration . RecordSection s = new org . phenotips . configuration . spi . UIXRecordSection ( this . uiExtension , this . uixManager , this . orderFilter ) ; "<AssertPlaceHolder>" ; } isExpandedBy...
org . junit . Assert . assertTrue ( s . isExpandedByDefault ( ) )
testCallableElement ( ) { org . camunda . bpm . engine . impl . cmmn . model . CmmnActivity activity = handler . handleElement ( planItem , context ) ; org . camunda . bpm . engine . impl . cmmn . behavior . DecisionTaskActivityBehavior behavior = ( ( org . camunda . bpm . engine . impl . cmmn . behavior . DecisionTask...
org . junit . Assert . assertNotNull ( behavior . getCallableElement ( ) )
shouldDisplayImageHistory ( ) { final javax . ws . rs . core . Response response = getAsycResponse ( target ( "images" ) . path ( "ubuntu:latest" ) . path ( "history" ) ) ; System . out . println ( response ) ; "<AssertPlaceHolder>" ; final javax . json . JsonArray responseContent = response . readEntity ( javax . json...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
apply_FinishEarlyTest ( ) { final java . util . List < org . openscience . cdk . group . Permutation > all = new java . util . ArrayList < org . openscience . cdk . group . Permutation > ( ) ; final int max = 5 ; int size = 4 ; org . openscience . cdk . group . PermutationGroup group = org . openscience . cdk . group ....
org . junit . Assert . assertEquals ( max , all . size ( ) )
CallInstanceMethodIndirect_StaticMethodInstanceMethod ( ) { java . lang . String fromClass = "domain.indirect.violatingfrom.CallInstanceMethodIndirect_StaticMethodInstanceMethod" ; java . lang . String toClass = "domain.indirect.indirectto.ServiceOne" ; java . util . ArrayList < java . lang . String > typesToFind = new...
org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , true ) )
lessThanEqualIsNullInput ( ) { when ( corc . getWritable ( com . hotels . corc . sarg . LessThanEvaluatorTest . COL0 ) ) . thenReturn ( null ) ; evaluator = new com . hotels . corc . sarg . LessThanEvaluator ( com . hotels . corc . sarg . LessThanEvaluatorTest . COL0 , com . hotels . corc . sarg . LessThanEvaluatorTest...
org . junit . Assert . assertThat ( evaluator . evaluate ( corc ) , org . hamcrest . CoreMatchers . is ( TruthValue . NULL ) )
testSetManagedParentUnmanaged ( ) { destination = new flex . messaging . MessageDestination ( ) ; destination . setManaged ( false ) ; destination . setAdapter ( adapter ) ; adapter . setManaged ( true ) ; boolean managed = adapter . isManaged ( ) ; "<AssertPlaceHolder>" ; } isManaged ( ) { return false ; }
org . junit . Assert . assertFalse ( managed )
test14 ( ) { cc . redberry . rings . poly . univar . UnivariatePolynomial < cc . redberry . rings . bigint . BigInteger > a = cc . redberry . rings . poly . univar . UnivariatePolynomial . create ( ( - 1 ) , 0 , 4 ) ; cc . redberry . rings . poly . univar . UnivariatePolynomial < cc . redberry . rings . bigint . BigInt...
org . junit . Assert . assertEquals ( cc . redberry . rings . poly . univar . UnivariatePolynomial . create ( ( - 1 ) , 2 ) , gcd )
testSetOutputNull ( ) { javax . imageio . ImageWriter writer = createImageWriter ( ) ; "<AssertPlaceHolder>" ; writer . setOutput ( null ) ; } createImageWriter ( ) { return new com . twelvemonkeys . imageio . plugins . tiff . TIFFImageWriter ( com . twelvemonkeys . imageio . plugins . tiff . TIFFImageWriterTest . PROV...
org . junit . Assert . assertNotNull ( writer )
testAggregateGroupingSetDuplicateIgnored ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; org . apache . calcite . rel . RelNode root = builder . scan ( "EMP" ) . aggregate...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
testNewMultimapWith ( ) { org . eclipse . collections . api . tuple . Pair < java . lang . Integer , java . lang . String > pair1 = org . eclipse . collections . impl . tuple . Tuples . pair ( 1 , "One" ) ; org . eclipse . collections . api . tuple . Pair < java . lang . Integer , java . lang . String > pair2 = org . e...
org . junit . Assert . assertEquals ( expected , actual )
shouldBeRequiredIfHasNotNullMetaAnnotation ( ) { org . springframework . springfaces . template . ui . ComponentInfo info = getComponentInfoForBeanValue ( "notBlank" ) ; "<AssertPlaceHolder>" ; } isRequired ( ) { for ( javax . faces . component . UIComponent component : this . components ) { if ( isRequired ( component...
org . junit . Assert . assertThat ( info . isRequired ( ) , org . hamcrest . Matchers . is ( true ) )
testClosePartitions_topicNotPublished ( ) { com . taobao . metamorphosis . server . utils . MetaConfig metaConfig = new com . taobao . metamorphosis . server . utils . MetaConfig ( ) ; metaConfig . closePartitions ( "topic1" , 1 , 2 ) ; "<AssertPlaceHolder>" ; } isClosedPartition ( java . lang . String , int ) { final ...
org . junit . Assert . assertFalse ( metaConfig . isClosedPartition ( "topic1" , 1 ) )
testBigDecimalComparison ( ) { java . lang . String str = "import<sp>org.drools.compiler.Person;\n" + ( ( ( ( ( "rule<sp>\"Big<sp>Decimal<sp>Comparison\"\n" + "<sp>dialect<sp>\"mvel\"\n" ) + "when\n" ) + "<sp>Person(<sp>bigDecimal<sp>==<sp>0.0B<sp>)\n" ) + "then\n" ) + "end" ) ; org . kie . api . KieBase kbase = loadKn...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
testMdlLegacyImport ( ) { compile ( "modules/legacyimport/module.ceylon" , "modules/legacyimport/package.ceylon" , "modules/legacyimport/A.ceylon" ) ; java . io . File carFile = getModuleArchive ( "org.eclipse.ceylon.compiler.java.test.cmr.modules.legacyimport" , "6.6.6" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( carFile . exists ( ) )
writeJSONWithNonNamedSpecificityDoesNothing ( ) { when ( this . patient . getData ( "specificity" ) ) . thenReturn ( new org . phenotips . data . IndexedPatientData ( "specificity" , java . util . Collections . < java . lang . Object > singletonList ( 0.25 ) ) ) ; org . json . JSONObject json = new org . json . JSONObj...
org . junit . Assert . assertEquals ( 0 , json . length ( ) )
testValueOfRoot ( ) { org . onosproject . net . resource . DiscreteResource resource = Resource . ROOT ; "<AssertPlaceHolder>" ; } valueAs ( java . lang . Class ) { checkNotNull ( type ) ; if ( ( ( type == ( java . lang . Object . class ) ) || ( type == ( double . class ) ) ) || ( type == ( org . onosproject . net . re...
org . junit . Assert . assertThat ( resource . valueAs ( java . lang . Object . class ) , org . hamcrest . Matchers . is ( java . util . Optional . empty ( ) ) )
testTruncDecimalColumnNegativeGreaterThanPrecision ( ) { java . lang . String sqlText = java . lang . String . format ( "select<sp>trunc(n,<sp>-5),<sp>n<sp>from<sp>%s" , com . splicemachine . derby . impl . sql . execute . operations . TruncateFunctionIT . QUALIFIED_TABLE_NAME ) ; java . sql . ResultSet rs = com . spli...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
shouldAddArgument ( ) { com . oracle . bedrock . runtime . options . Arguments arguments = com . oracle . bedrock . runtime . options . Arguments . empty ( ) . with ( com . oracle . bedrock . runtime . options . Argument . of ( "foo" ) ) ; "<AssertPlaceHolder>" ; } resolve ( com . oracle . bedrock . runtime . Platform ...
org . junit . Assert . assertThat ( arguments . resolve ( null , null ) , contains ( "foo" ) )
testJoinSingleElement ( ) { java . util . Set < java . lang . String > elements = new java . util . LinkedHashSet ( ) ; java . lang . String separator = "," ; elements . add ( "world" ) ; java . lang . String join = com . erudika . para . utils . filters . CORSFilter . join ( elements , separator ) ; "<AssertPlaceHolde...
org . junit . Assert . assertTrue ( "world" . equals ( join ) )
testIssue64 ( ) { java . lang . String pattern = "(?<message>client<sp>id):<sp>(?<clientid>.*)" ; java . lang . String input = "client<sp>id:<sp>\"name\"<sp>\"Mac<sp>OS<sp>X<sp>Mail\"<sp>\"version\"<sp>\"10.2<sp>(3259)\"<sp>\"os\"<sp>\"Mac<sp>OS<sp>X\"" + "\"os-version\"<sp>\"10.12.3<sp>(16D32)\"<sp>\"vendor\"<sp>\"App...
org . junit . Assert . assertEquals ( captures . get ( "clientid" ) , gm . getMatch ( ) . group ( "clientid" ) )
testZeroRowResult ( ) { java . sql . Statement st = con . createStatement ( ResultSet . TYPE_SCROLL_INSENSITIVE , ResultSet . CONCUR_UPDATABLE ) ; java . sql . ResultSet rs = st . executeQuery ( "select<sp>*<sp>from<sp>updatable<sp>WHERE<sp>0<sp>><sp>1" ) ; "<AssertPlaceHolder>" ; rs . moveToInsertRow ( ) ; rs . moveTo...
org . junit . Assert . assertTrue ( ( ! ( rs . next ( ) ) ) )
toBigDecimal_Null ( ) { software . amazon . awssdk . services . dynamodb . document . Item item = new software . amazon . awssdk . services . dynamodb . document . Item ( ) ; "<AssertPlaceHolder>" ; } getNumber ( java . lang . String ) { java . lang . Object val = attributes . get ( attrName ) ; return toBigDecimal ( v...
org . junit . Assert . assertNull ( item . getNumber ( "test" ) )
givenObservable_whenUsing_thenReturnCreatedResource ( ) { rx . Observable < java . lang . Character > values = rx . Observable . using ( ( ) -> "resource" , ( r ) -> rx . Observable . create ( ( o ) -> { for ( java . lang . Character c : r . toCharArray ( ) ) { o . onNext ( c ) ; } o . onCompleted ( ) ; } ) , ( r ) -> ...
org . junit . Assert . assertTrue ( result . equals ( "resource" ) )
testGetBuilder ( ) { "<AssertPlaceHolder>" ; objJPAEdmPropertyTest = new com . sap . core . odata . processor . core . jpa . model . JPAEdmPropertyTest ( ) ; objJPAEdmProperty = new com . sap . core . odata . processor . core . jpa . model . JPAEdmProperty ( objJPAEdmPropertyTest , objJPAEdmPropertyTest ) ; try { objJP...
org . junit . Assert . assertNotNull ( objJPAEdmProperty . getBuilder ( ) )