input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testConvert ( ) { java . lang . Long id = 1L ; java . lang . String value = "sfas" ; java . lang . Long departmentId = 2L ; org . lnu . is . domain . department . Department department = new org . lnu . is . domain . department . Department ( ) ; department . setId ( departmentId ) ; java . lang . Long contactTypeId = ...
org . junit . Assert . assertEquals ( expected , actual )
testCreateSingleton1 ( ) { final java . io . File implFile = createAnnoImpl ( org . robovm . compiler . plugin . annotation . AnnotationImplPluginTest . Anno3 . class ) ; java . lang . Class < ? > implClass = loadClassFromFile ( implFile , ( ( org . robovm . compiler . plugin . annotation . AnnotationImplPluginTest . A...
org . junit . Assert . assertSame ( impl1 , impl2 )
testPushback ( ) { java . lang . String content = new org . apache . tika . Tika ( ) . parseToString ( org . apache . tika . parser . html . HtmlParserTest . class . getResourceAsStream ( "/test-documents/tika434.html" ) , new org . apache . tika . metadata . Metadata ( ) ) ; "<AssertPlaceHolder>" ; } getResourceAsStre...
org . junit . Assert . assertNotNull ( content )
testConvert ( ) { java . lang . Long enrolmentId = 1L ; org . lnu . is . domain . enrolment . Enrolment enrolment = new org . lnu . is . domain . enrolment . Enrolment ( ) ; enrolment . setId ( enrolmentId ) ; java . lang . Long benefitId = 2L ; org . lnu . is . domain . benefit . Benefit benefit = new org . lnu . is ....
org . junit . Assert . assertEquals ( expected , actual )
testDelete ( ) { challengeTeam = newChallengeTeam ( ) ; challengeTeam = challengeTeamDAO . create ( challengeTeam ) ; challengeTeamDAO . delete ( java . lang . Long . parseLong ( challengeTeam . getId ( ) ) ) ; challengeTeam = null ; "<AssertPlaceHolder>" ; } listForChallengeCount ( long ) { return jdbcTemplate . query...
org . junit . Assert . assertEquals ( 0 , challengeTeamDAO . listForChallengeCount ( challengeId ) )
testGetDirectMoveSq_ConstraintsA1_6 ( ) { resultSq = eubos . board . Direction . getDirectMoveSq ( Direction . downLeft , inputSq ) ; "<AssertPlaceHolder>" ; } getDirectMoveSq ( eubos . board . Direction , com . fluxchess . jcpi . models . GenericPosition ) { com . fluxchess . jcpi . models . GenericPosition retVal = n...
org . junit . Assert . assertTrue ( ( ( resultSq ) == null ) )
serialize_ContainerWithSeriesPlotOptions_PlotTypeNotSerialized ( ) { com . vaadin . addon . charts . model . PlotOptionsSeries plotOptions = new com . vaadin . addon . charts . model . PlotOptionsSeries ( ) ; plotOptions . setShowInLegend ( true ) ; final com . vaadin . addon . charts . model . junittests . ChartDataSe...
org . junit . Assert . assertEquals ( expected , actual )
testGetIntHeaderNormal ( org . apache . servicecomb . common . rest . definition . RestParam ) { new mockit . Expectations ( ) { { swaggerOperation . getParamByName ( "name" ) ; result = restParam ; restParam . getValue ( args ) ; result = "1" ; } } ; "<AssertPlaceHolder>" ; } getIntHeader ( java . lang . String ) { ja...
org . junit . Assert . assertEquals ( 1 , request . getIntHeader ( "name" ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . changeset . model . ChangesetEntry > changesetEntries = _persistence . fetchByPrimaryKeys...
org . junit . Assert . assertTrue ( changesetEntries . isEmpty ( ) )
testDateIndexExpansionWithTimeTravel ( ) { java . lang . String originalQuery = "filter:betweenDates(UPTIME,<sp>'20100704_200000',<sp>'20100704_210000')" ; java . lang . String expectedQuery = "(filter:betweenDates(UPTIME,<sp>'20100704_200000',<sp>'20100704_210000')<sp>&&<sp>(SHARDS_AND_DAYS<sp>=<sp>'20100702_0,2010070...
org . junit . Assert . assertEquals ( expectedQuery , newQuery )
testPatchHealthStatusHealthConfigNotSet ( ) { containerStats = patchStats ( containerStats ) ; com . vmware . admiral . compute . container . maintenance . ContainerStats patchState = new com . vmware . admiral . compute . container . maintenance . ContainerStats ( ) ; patchState . healthCheckSuccess = true ; com . vmw...
org . junit . Assert . assertEquals ( true , stats . healthCheckSuccess )
testInternalParseRequest ( ) { final fr . gouv . vitam . common . database . parser . request . multiple . InsertParserMultiple request = new fr . gouv . vitam . common . database . parser . request . multiple . InsertParserMultiple ( ) ; final java . lang . String s = "{<sp>$roots:<sp>[<sp>'id0'<sp>],<sp>$query:<sp>{<...
org . junit . Assert . assertNotNull ( request )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . ReactionRemovedEvent event = new com . github . seratch . jslack . api . model . event . ReactionRemovedEvent ( ) ; java . lang ...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
testTypeFilterTypeOnly ( ) { java . lang . String type = "nitf" ; java . lang . String versions = "" ; org . codice . ddf . opensearch . endpoint . query . OpenSearchQuery query = new org . codice . ddf . opensearch . endpoint . query . OpenSearchQuery ( 0 , 10 , "relevance" , "desc" , 30000 , org . codice . ddf . open...
org . junit . Assert . assertEquals ( 1 , filters . size ( ) )
shipmentViolationAtAct1_shouldWork ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; jsprit . core . reporting . SolutionPrinter . print ( vrp , solution , SolutionPrinter . Print . VERBOSE ) ; jsprit . core . analysis . SolutionAnalyser analyser = new jsprit . core . analysis . SolutionA...
org . junit . Assert . assertFalse ( violation )
g_V_selectXlast_a_bX ( ) { final org . apache . tinkerpop . gremlin . process . traversal . Traversal < org . apache . tinkerpop . gremlin . structure . Vertex , java . util . Map < java . lang . String , java . lang . Object > > traversal = get_g_V_selectXlast_a_bX ( ) ; printTraversalForm ( traversal ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , traversal . toList ( ) )
initiallyEmpty ( ) { "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( table . isEmpty ( ) )
nameEqualAndSexEqual_limitL20 ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>WHERE<sp>name<sp>=<sp>'judekim'<sp>and<sp>sex<sp>=<sp>'male'<sp>LIMIT<sp>20" ; java . lang . String api = "select<sp>*<sp>where<sp>name<sp>=<sp>'judekim'<sp>and<sp>sex<sp>=<sp>'male'" ; int limit = 20 ; org . apache . use...
org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) )
getFakeShouldReturnRegisteredFakes ( ) { com . google . gwtmockito . GwtMockito . useProviderForType ( com . google . gwtmockito . GwtMockitoTest . AnotherInterface . class , new com . google . gwtmockito . fakes . FakeProvider < com . google . gwtmockito . GwtMockitoTest . AnotherInterface > ( ) { @ com . google . gwt...
org . junit . Assert . assertEquals ( "string" , fake . doSomethingElse ( ) )
testIsDone_NotExists ( ) { initializeExpectedOperation ( 3 ) ; com . google . cloud . compute . deprecated . Compute [ ] expectedOptions = new Compute . OperationOption [ ] { Compute . OperationOption . fields ( Compute . OperationField . STATUS ) } ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; ex...
org . junit . Assert . assertTrue ( operation . isDone ( ) )
indexOf_A$Object_Nil ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( ) ; java . lang . Integer elem = 2 ; int actual = seq . indexOf ( elem ) ; int expected = - 1 ; "<AssertPlaceHolder>" ; } indexOf ( T ) { return - 1 ; }
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
emptyPatternShouldReject ( ) { final java . lang . String urlPattern = "" ; final java . lang . String rpcUrl = "http://a.b.c" ; final com . navercorp . pinpoint . web . filter . RpcURLPatternFilter rpcURLPatternFilter = new com . navercorp . pinpoint . web . filter . RpcURLPatternFilter ( encode ( urlPattern ) , servi...
org . junit . Assert . assertFalse ( accept )
testGetRewindOnEOF ( ) { System . out . println ( "getRewindOnEOF" ) ; kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor instance = new kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor ( ) ; boolean result = instance . getRewindOnEOF ( ) ; "<AssertPlaceHolder>" ; } getRewindOnEOF ( ) { return get...
org . junit . Assert . assertEquals ( false , result )
shouldSerialiseKeysToFileAndReadCorrectly ( ) { final java . lang . Object [ ] key1 = new java . lang . Object [ ] { 1L , 5 , "ABC" , 10.0F , ( ( short ) ( 1 ) ) , ( ( byte ) ( 64 ) ) , new byte [ ] { ( ( byte ) ( 1 ) ) , ( ( byte ) ( 2 ) ) , ( ( byte ) ( 3 ) ) } } ; final uk . gov . gchq . gaffer . parquetstore . part...
org . junit . Assert . assertEquals ( groupPartitioner , readGroupPartitioner )
testClosure ( ) { owltools . graph . OWLGraphWrapper g = getOntologyWrapper ( true ) ; org . semanticweb . owlapi . model . OWLObject obj = g . getOWLObjectByIdentifier ( "X:1" ) ; org . semanticweb . owlapi . model . OWLObject root = g . getOWLObjectByIdentifier ( "CARO:0000000" ) ; boolean ok = false ; for ( owltools...
org . junit . Assert . assertTrue ( ok )
testFormatPlain ( ) { final java . lang . String formattedString = new io . kubernetes . client . custom . QuantityFormatter ( ) . format ( new io . kubernetes . client . custom . Quantity ( new java . math . BigDecimal ( "100" ) , Quantity . Format . DECIMAL_SI ) ) ; "<AssertPlaceHolder>" ; } format ( io . kubernetes ...
org . junit . Assert . assertThat ( formattedString , org . hamcrest . core . Is . is ( "100" ) )
testExpireMillisNotSupported ( ) { org . junit . Assume . assumeTrue ( org . springframework . data . redis . RedisTestProfileValueSource . matches ( "runLongTests" , "true" ) ) ; final K key1 = keyFactory . instance ( ) ; V value1 = valueFactory . instance ( ) ; org . junit . Assume . assumeTrue ( ( ( key1 instanceof ...
org . junit . Assert . assertTrue ( template2 . hasKey ( ( ( java . lang . String ) ( key1 ) ) ) )
testWalNotGrowingWhileWalDisabledInTx ( ) { db . newInstance ( ) . field ( "some-unrelated-key" , "some-unrelated-value" ) . save ( db . getClusterNameById ( db . getDefaultClusterId ( ) ) ) ; wal . flush ( ) ; final com . orientechnologies . orient . core . storage . impl . local . paginated . wal . OLogSequenceNumber...
org . junit . Assert . assertEquals ( startLsn , endLsn )
runOnlyOneTest ( ) { nl . basjes . parse . useragent . debug . UserAgentAnalyzerTester uaa = new nl . basjes . parse . useragent . debug . UserAgentAnalyzerTester ( "classpath*:TestOnlyOneTest.yaml" ) ; uaa . setVerbose ( true ) ; "<AssertPlaceHolder>" ; } runTests ( boolean , boolean ) { return runTests ( showAll , fa...
org . junit . Assert . assertTrue ( uaa . runTests ( false , false ) )
testBackgroundItemsets ( ) { final java . util . HashMap < itemsetmining . itemset . Itemset , java . lang . Double > itemsets = itemsetmining . transaction . TransactionGenerator . generateBackgroundItemsets ( 10 , 0.5 , 15 , 1.0 , 1.0 ) ; System . out . println ( itemsets ) ; for ( final itemsetmining . itemset . Ite...
org . junit . Assert . assertTrue ( ( item >= 20 ) )
test_Aac_Ab ( ) { org . antlr . v4 . runtime . atn . PredictionContext a = a ( false ) ; org . antlr . v4 . runtime . atn . PredictionContext b = b ( false ) ; org . antlr . v4 . runtime . atn . PredictionContext c = c ( false ) ; org . antlr . v4 . runtime . atn . PredictionContext A1 = array ( a , c ) ; org . antlr ....
org . junit . Assert . assertEquals ( expecting , org . antlr . v4 . test . tool . TestGraphNodes . toDOTString ( r ) )
testSpecialSplitLong ( ) { byte [ ] array = new byte [ 10 ] ; java . nio . ByteBuffer part1 = java . nio . ByteBuffer . wrap ( array , 0 , 4 ) ; java . nio . ByteBuffer part2 = java . nio . ByteBuffer . wrap ( array , 4 , 4 ) ; java . nio . ByteBuffer all = java . nio . ByteBuffer . wrap ( array , 0 , 8 ) ; long value ...
org . junit . Assert . assertEquals ( value , storedValue )
testJsonDeserializationSingleton ( ) { java . lang . String json = "\"USER\"" ; final com . indeed . proctor . common . model . TestType testType = com . indeed . proctor . common . model . TestTypeTest . MAPPER . readValue ( json , com . indeed . proctor . common . model . TestType . class ) ; final com . indeed . pro...
org . junit . Assert . assertTrue ( ( testType == testType2 ) )
testReplaceWithSimpleField_title_field ( ) { try { search = new org . odftoolkit . simple . common . navigation . TextNavigation ( "ReplaceDateTarget" , doc ) ; org . odftoolkit . odfdom . dom . OdfContentDom contentDom = doc . getContentDom ( ) ; org . w3c . dom . NodeList nodeList = contentDom . getElementsByTagName ...
org . junit . Assert . assertEquals ( j , i )
getZeroPatients ( ) { System . out . println ( "getZeroPatients" ) ; gov . hhs . fha . nhinc . mpilib . MiniMpi mpi = gov . hhs . fha . nhinc . mpilib . MiniMpi . getInstance ( "testMPI.xml" ) ; int expResult = 0 ; gov . hhs . fha . nhinc . mpilib . Patients patientlist = mpi . getPatients ( ) ; int result = patientlis...
org . junit . Assert . assertEquals ( result , expResult )
testSupportZeroConfigProperty ( ) { java . io . File wsdlFile = getProtobufRelatedInput ( "ShippingService.wsdl" ) ; intfProps . put ( "/gen-src" 5 , "-genType" 3 ) ; fillProperties ( intfProps , intfProperty ) ; java . lang . String [ ] testArgs = new java . lang . String [ ] { "/gen-src" 2 , "/gen-src" 4 , "-mdest" ,...
org . junit . Assert . assertEquals ( "-genType" 3 , prop . getProperty ( "/gen-src" 5 ) )
testTapParserException1 ( ) { exception = new org . tap4j . representer . RepresenterException ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( exception )
testGetSchema ( ) { org . apache . avro . Schema expected = org . talend . daikon . avro . AvroUtils . _int ( ) ; org . talend . daikon . avro . converter . AvroConverter < ? , ? > converter = new org . talend . codegen . converter . ShortIntegerConverter ( ) ; org . apache . avro . Schema actual = converter . getSchem...
org . junit . Assert . assertEquals ( expected , actual )
mix ( ) { java . lang . String input = "a${b}c" ; ch . qos . logback . core . subst . Tokenizer tokenizer = new ch . qos . logback . core . subst . Tokenizer ( input ) ; java . util . List < ch . qos . logback . core . subst . Token > tokenList = tokenizer . tokenize ( ) ; witnessList . add ( new ch . qos . logback . c...
org . junit . Assert . assertEquals ( witnessList , tokenList )
testNonConflictingHttpMethodDelete ( ) { System . out . println ( "---\nNo<sp>issue<sp>should<sp>be<sp>reported<sp>if<sp>produced<sp>mime<sp>types<sp>differ" ) ; com . sun . jersey . api . model . AbstractResource ar = com . sun . jersey . server . impl . modelapi . annotation . IntrospectionModeller . createResource (...
org . junit . Assert . assertTrue ( validator . getIssueList ( ) . isEmpty ( ) )
shouldRejectOperationChainWhenUserDoesntHaveAllOpAuthsForNestedOperations ( ) { final uk . gov . gchq . gaffer . graph . hook . OperationAuthoriser hook = fromJson ( uk . gov . gchq . gaffer . graph . hook . OperationAuthoriserTest . OP_AUTHS_PATH ) ; final uk . gov . gchq . gaffer . operation . OperationChain opChain ...
org . junit . Assert . assertNotNull ( e . getMessage ( ) )
testSingleSuccessUsingUpdate ( ) { org . quartz . impl . jdbcjobstore . UpdateLockRowSemaphore semaphore = new org . quartz . impl . jdbcjobstore . UpdateLockRowSemaphore ( ) ; semaphore . setSchedName ( "test" ) ; java . sql . Connection mockConnection = mock ( java . sql . Connection . class ) ; when ( mockConnection...
org . junit . Assert . assertTrue ( semaphore . obtainLock ( mockConnection , "test" ) )
testExecuteInSequence ( ) { boolean b = cnc . executeInSequence ( ) ; "<AssertPlaceHolder>" ; } executeInSequence ( ) { return true ; }
org . junit . Assert . assertTrue ( b )
testBasic ( ) { com . j256 . simplemagic . types . LocalDateType type = new com . j256 . simplemagic . types . UtcDateType ( com . j256 . simplemagic . endian . EndianType . BIG ) ; java . lang . Object testInfo = type . convertTestString ( null , ">0" ) ; int secs = 1367982937 ; java . util . Date date = new java . ut...
org . junit . Assert . assertEquals ( dateStr , sb . toString ( ) )
testNotEqualsNull ( ) { com . palominolabs . crm . sf . core . Id id1 = new com . palominolabs . crm . sf . core . Id ( "012345678901234" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof com . palominolabs . crm . sf . core . ImmutableBitSet ) ...
org . junit . Assert . assertFalse ( id1 . equals ( null ) )
testDisabledNoObsoleteDocuments ( ) { policy = new org . mozilla . gecko . background . healthreport . upload . SubmissionPolicy ( sharedPrefs , client , tracker , false ) ; "<AssertPlaceHolder>" ; } tick ( long ) { final long nextUpload = getNextSubmission ( ) ; if ( nextUpload >= ( localTime + ( 3 * ( getMinimumTimeB...
org . junit . Assert . assertFalse ( policy . tick ( 0 ) )
whenToMap_thenGetExpectedResult ( ) { java . util . Map < java . lang . Integer , java . lang . Boolean > map = org . robobinding . widget . abslistview . SparseBooleanArrayUtils . toMap ( array ) ; java . util . Map < java . lang . Integer , java . lang . Boolean > expectedMap = com . google . common . collect . Maps ...
org . junit . Assert . assertThat ( map , org . hamcrest . CoreMatchers . equalTo ( expectedMap ) )
testRemove ( ) { com . liferay . announcements . kernel . model . AnnouncementsEntry newAnnouncementsEntry = addAnnouncementsEntry ( ) ; _persistence . remove ( newAnnouncementsEntry ) ; com . liferay . announcements . kernel . model . AnnouncementsEntry existingAnnouncementsEntry = _persistence . fetchByPrimaryKey ( n...
org . junit . Assert . assertNull ( existingAnnouncementsEntry )
testDontTrimJustSpaceBeforeAfterInTemplate ( ) { java . lang . String templates = "a(x)<sp>::=<sp><<<sp>foo<sp>>>\n" ; org . stringtemplate . v4 . STGroupString group = new org . stringtemplate . v4 . STGroupString ( templates ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "a" ) ; java . lang . String ...
org . junit . Assert . assertEquals ( expected , result )
testEmpty ( ) { "<AssertPlaceHolder>" ; } empty ( ) { if ( ( next_write_size ) > 0 ) { return false ; } if ( ! ( next_write_buffers . isEmpty ( ) ) ) { for ( java . nio . ByteBuffer b : next_write_buffers ) { if ( ( b . remaining ( ) ) > 0 ) { return false ; } } } return true ; }
org . junit . Assert . assertEquals ( true , codec . empty ( ) )
testDoubleArrayResultType ( ) { org . openscience . cdk . qsar . result . IDescriptorResult type = new org . openscience . cdk . qsar . result . DoubleArrayResultType ( 6 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( type )
map_reverse_2 ( ) { org . apache . jena . atlas . lib . tuple . TupleMap x1 = org . apache . jena . atlas . lib . tuple . TupleMap . create ( "SPO" , "POS" ) ; org . apache . jena . atlas . lib . tuple . TupleMap x2 = org . apache . jena . atlas . lib . tuple . TupleMap . create ( "POS" , "SPO" ) ; org . apache . jena ...
org . junit . Assert . assertEquals ( tuple1 , tuple2 )
shouldMatchCountOfArrays ( ) { net . minidev . json . JSONArray jsonArray = com . jayway . jsonpath . JsonPath . read ( com . baeldung . jsonpath . introduction . JsonPathUnitTest . json , "$.items.book[*]" ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , jsonArray . size ( ) )
testLayoutCanBePerformed ( ) { org . eclipse . swt . widgets . Display display = new org . eclipse . swt . widgets . Display ( ) ; org . eclipse . swt . widgets . Shell shell = new org . eclipse . swt . widgets . Shell ( display ) ; shell . setLayout ( new org . eclipse . swt . layout . GridLayout ( ) ) ; org . eclipse...
org . junit . Assert . assertTrue ( ( ( button . getSize ( ) . x ) > 0 ) )
testPrivateManualPublish ( ) { final io . dockstore . common . CommonTestUtilities . TestingPostgres testingPostgres = getTestingPostgres ( ) ; io . dockstore . client . cli . Client . main ( new java . lang . String [ ] { "--git-reference" 9 , io . dropwizard . testing . ResourceHelpers . resourceFilePath ( "config_fi...
org . junit . Assert . assertEquals ( ( "registry.hub.docker.com/dockstoretestuser/private_test_repo/tool2" 2 + count ) , 1 , count )
testSimulateTagNoReleaseLabel ( ) { org . apache . maven . shared . release . config . ReleaseDescriptorBuilder builder = new org . apache . maven . shared . release . config . ReleaseDescriptorBuilder ( ) ; java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createReactorProjects ( )...
org . junit . Assert . assertTrue ( true )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( phones . isEmpty ( ) )
testPersoonZonderAangeverAdreshouding ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht nieuweSituatie = maakNieuwePersoonMetAdres ( null ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby05111 . voerRegelUit ( maakHuidigePersoon ( nl . bzk . brp . bi...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
shouldReturnTasksWithCaseInstanceBusinessKeyOrCaseInstanceBusinessKeyLike ( ) { java . lang . String caseDefinitionId1 = repositoryService . createCaseDefinitionQuery ( ) . caseDefinitionKey ( "oneTaskCase" ) . singleResult ( ) . getId ( ) ; org . camunda . bpm . engine . runtime . CaseInstance caseInstance1 = caseServ...
org . junit . Assert . assertEquals ( 2 , tasks . size ( ) )
testGetBytesWithNanos ( ) { int tag = new java . util . Random ( ) . nextInt ( ) ; byte [ ] bytes = fixio . fixprotocol . fields . UTCTimeOnlyFieldTest . TIMESTAMP_WITH_NANOS . getBytes ( ) ; fixio . fixprotocol . fields . UTCTimeOnlyField field = new fixio . fixprotocol . fields . UTCTimeOnlyField ( tag , bytes ) ; "<...
org . junit . Assert . assertArrayEquals ( bytes , field . getBytes ( ) )
testPermgenSun ( ) { org . jboss . as . host . controller . model . jvm . JvmElement element = org . jboss . as . host . controller . model . jvm . JvmElementTestUtils . create ( JvmType . ORACLE ) ; org . jboss . as . host . controller . model . jvm . JvmElementTestUtils . setPermgenSize ( element , "32M" ) ; org . jb...
org . junit . Assert . assertEquals ( 0 , command . size ( ) )
testConnection ( ) { when ( mockConnectivityTestingStrategy . testConnectivity ( fakeConnectivityTestingObject ) ) . thenReturn ( success ( ) ) ; org . mule . runtime . api . connection . ConnectionValidationResult validationResult = connectivityTestingService . testConnection ( builder ( ) . globalName ( org . mule . ...
org . junit . Assert . assertThat ( validationResult . isValid ( ) , org . hamcrest . core . Is . is ( true ) )
testRootToString ( ) { org . scijava . log . LogSource source = org . scijava . log . LogSource . newRoot ( ) ; java . lang . String result = source . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( super . toString ( ) ) + "\n\tsource<sp>=<sp>" ) + ( source ) ) + "\n\toutput<sp>=<sp>" ) + ( ...
org . junit . Assert . assertEquals ( "" , result )
testDayOfWeek ( ) { org . apache . cayenne . exp . Expression exp = org . apache . cayenne . exp . ExpressionFactory . exp ( "dayOfWeek(dateColumn)<sp>in<sp>(2,<sp>3)" ) ; try { long res = org . apache . cayenne . query . ObjectSelect . query ( org . apache . cayenne . testdo . date_time . DateTestEntity . class , exp ...
org . junit . Assert . assertEquals ( 1 , res )
testClassWithTypeParamAndOtherField ( ) { final java . lang . String ClassWithTypeParamAndOtherFieldName = uk . gov . gchq . gaffer . serialisation . util . JsonSerialisationUtilTest . ClassWithTypeParamAndOtherField . class . getName ( ) ; final java . util . Map < java . lang . String , java . lang . String > expecte...
org . junit . Assert . assertEquals ( expectedValues . entrySet ( ) , result . entrySet ( ) )
testCustomizeLongPollQPS ( ) { int someQPS = 1 ; java . lang . System . setProperty ( "apollo.longPollQPS" , java . lang . String . valueOf ( someQPS ) ) ; com . ctrip . framework . apollo . util . ConfigUtil configUtil = new com . ctrip . framework . apollo . util . ConfigUtil ( ) ; "<AssertPlaceHolder>" ; } getLongPo...
org . junit . Assert . assertEquals ( someQPS , configUtil . getLongPollQPS ( ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . dynamic . data . mapping . model . DDMStructureLink > ddmStructureLinks = _persistence . ...
org . junit . Assert . assertTrue ( ddmStructureLinks . isEmpty ( ) )
testBepaalTijdstipLaatsteWijziging ( ) { final java . time . ZonedDateTime tijdstipLaatsteWijziging = nl . bzk . algemeenbrp . util . common . DatumUtil . nuAlsZonedDateTime ( ) ; final nl . bzk . brp . domain . leveringmodel . MetaObject persoon = nl . bzk . brp . domain . leveringmodel . MetaObject . maakBuilder ( ) ...
org . junit . Assert . assertThat ( persoonslijst . bepaalTijdstipLaatsteWijziging ( ) , org . hamcrest . core . Is . is ( tijdstipLaatsteWijziging ) )
startProcess ( ) { org . activiti . engine . RepositoryService repositoryService = activitiRule . getRepositoryService ( ) ; repositoryService . createDeployment ( ) . addInputStream ( "multiSubProcess1.bpmn20.xml" , new java . io . FileInputStream ( filename ) ) . deploy ( ) ; org . activiti . engine . RuntimeService ...
org . junit . Assert . assertNotNull ( processInstance . getId ( ) )
shouldReturnNullPreAggFilterIfNoPreAggFilters ( ) { final uk . gov . gchq . gaffer . accumulostore . AccumuloStore store = mock ( uk . gov . gchq . gaffer . accumulostore . AccumuloStore . class ) ; final uk . gov . gchq . gaffer . store . schema . Schema schema = createSchema ( ) ; final uk . gov . gchq . gaffer . dat...
org . junit . Assert . assertNull ( iterator )
notAllowedPayloadPosition ( ) { wsattacker . library . intelligentdos . helper . IterateModel iterateModel = wsattacker . library . intelligentdos . helper . IterateModel . custom ( ) . startAt ( 2 ) . stopAt ( 2 ) . build ( ) ; xmlEntityExpansion . setNumberOfEntityElementsIterator ( iterateModel ) ; "<AssertPlaceHold...
org . junit . Assert . assertThat ( xmlEntityExpansion . hasFurtherParams ( ) , org . hamcrest . CoreMatchers . is ( true ) )
consumableTest ( ) { org . marc . everest . rmim . uv . cdar2 . pocd_mt000040uv . SubstanceAdministration substanceAdministration = substanceAdministrationHelper ( org . oscarehr . e2e . model . export . template . MedicationPrescriptionEventModelTest . drug ) ; org . marc . everest . rmim . uv . cdar2 . pocd_mt000040u...
org . junit . Assert . assertNotNull ( consumable )
testGetAggregatedPrivilegeNamesNestedWithCache ( ) { com . google . common . collect . ImmutableSet < java . lang . String > values = com . google . common . collect . ImmutableSet . of ( org . apache . jackrabbit . oak . spi . security . privilege . JCR_READ , org . apache . jackrabbit . oak . spi . security . privile...
org . junit . Assert . assertEquals ( expected , com . google . common . collect . ImmutableSet . copyOf ( result ) )
testFindArticle ( ) { java . util . List < com . github . emailtohl . building . site . entities . cms . Article > ls = cmsService . recentArticles ( ) ; com . github . emailtohl . building . site . entities . cms . Article a = ls . get ( 0 ) ; "<AssertPlaceHolder>" ; } getArticle ( long ) { return articlefilter ( arti...
org . junit . Assert . assertEquals ( a , cmsService . getArticle ( a . getId ( ) ) )
forEventSourceOnAttach ( ) { final jetbrains . jetpad . base . Value < java . lang . Integer > runNum = new jetbrains . jetpad . base . Value ( 0 ) ; jetbrains . jetpad . model . property . Property < java . lang . Boolean > prop = new jetbrains . jetpad . model . property . ValueProperty ( ) ; final jetbrains . jetpad...
org . junit . Assert . assertEquals ( 1 , ( ( int ) ( runNum . get ( ) ) ) )
shouldMatchEqualObjectsIfNoKeyFunctionIsSpecified ( ) { java . lang . Integer testValue = 3 ; java . util . List < java . lang . Integer > testList = com . google . common . collect . Lists . newArrayList ( 1 , 2 , 3 , 4 , 3 ) ; uk . gov . gchq . gaffer . store . operation . handler . join . match . KeyFunctionMatch ma...
org . junit . Assert . assertEquals ( expected , match . matching ( testValue ) )
createLocatorCanSetContentAccessComponent ( ) { java . lang . String expectedContentAccessComponent = "testExpectedContentAccessComponent" ; com . microsoft . windowsazure . services . media . entityoperations . EntityCreateOperation < com . microsoft . windowsazure . services . media . models . LocatorInfo > creator =...
org . junit . Assert . assertEquals ( expectedContentAccessComponent , locatorType . getContentAccessComponent ( ) )
validateLoadProperties ( ) { java . lang . System . setProperty ( "hikaricp.configurationFile" , "/propfile1.properties" ) ; com . zaxxer . hikari . HikariConfig config = com . zaxxer . hikari . pool . TestElf . newHikariConfig ( ) ; java . lang . System . clearProperty ( "hikaricp.configurationFile" ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( 5 , config . getMinimumIdle ( ) )
testLazyFlatMapKeepSize ( ) { java . util . List < java . lang . Integer > eval = org . opencastproject . util . data . Monadics . mlazy ( java . util . Arrays . asList ( 1 ) ) . flatMap ( new org . opencastproject . util . data . Function < java . lang . Integer , java . util . Iterator < java . lang . Integer > > ( )...
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 2 } , eval . toArray ( new java . lang . Integer [ 0 ] ) )
testSetAlpha_Color_int ( ) { System . out . println ( "setAlpha" ) ; java . awt . Color COLOR = new java . awt . Color ( 255 , 0 , 0 , 255 ) ; int ALPHA = 128 ; eu . hansolo . steelseries . tools . Util instance = Util . INSTANCE ; int expResult = 128 ; int result = instance . setAlpha ( COLOR , ALPHA ) . getAlpha ( ) ...
org . junit . Assert . assertEquals ( expResult , result )
testLengthStripArray ( ) { org . stringtemplate . v4 . ST e = new org . stringtemplate . v4 . ST ( "<length(strip(names))>" ) ; e . add ( "names" , new java . lang . String [ ] { null , "Tom" , null , null , "Sriram" , null } ) ; java . lang . String expecting = "2" ; "<AssertPlaceHolder>" ; } render ( ) { return rende...
org . junit . Assert . assertEquals ( expecting , e . render ( ) )
testToEnd2 ( ) { net . openhft . chronicle . queue . impl . single . File dir = getTmpDir ( ) ; try ( net . openhft . chronicle . queue . impl . single . ChronicleQueue chronicle = builder ( dir , wireType ) . build ( ) ; net . openhft . chronicle . queue . impl . single . ChronicleQueue chronicle2 = builder ( dir , wi...
org . junit . Assert . assertTrue ( tailer . readDocument ( ( w ) -> w . read ( ( ) -> "test" ) . text ( "text" , org . junit . Assert . Assert :: assertEquals ) ) )
testGetValidNodeLayouts ( ) { java . util . Set < co . cask . coopr . layout . NodeLayout > expected = com . google . common . collect . ImmutableSet . of ( new co . cask . coopr . layout . NodeLayout ( "large-mem" , "large-mem" 5 , com . google . common . collect . ImmutableSet . of ( "large-mem" 4 , "large-mem" 3 , "...
org . junit . Assert . assertEquals ( expected , nodeLayoutGenerator . findValidNodeLayouts ( validServiceSets ) )
shouldDetermineOperationChainOutputType ( ) { final uk . gov . gchq . gaffer . operation . Operation operation1 = mock ( uk . gov . gchq . gaffer . operation . Operation . class ) ; final uk . gov . gchq . gaffer . operation . impl . get . GetElements operation2 = mock ( uk . gov . gchq . gaffer . operation . impl . ge...
org . junit . Assert . assertSame ( typeRef , opChain . getOutputTypeReference ( ) )
testMemoryAddress ( ) { io . netty . buffer . ByteBuf buf = buffer ( allocate ( 8 ) . asReadOnlyBuffer ( ) ) ; try { "<AssertPlaceHolder>" ; buf . memoryAddress ( ) ; } finally { buf . release ( ) ; } } hasMemoryAddress ( ) { throw new java . lang . UnsupportedOperationException ( ) ; }
org . junit . Assert . assertTrue ( buf . hasMemoryAddress ( ) )
testUpdateDrugGroupShouldChangeDrugGroup ( ) { org . raxa . module . raxacore . DrugGroup drugGroup = s . getDrugGroup ( 1 ) ; drugGroup . setName ( "NewNameDrugGroup" ) ; s . updateDrugGroup ( drugGroup ) ; java . lang . String name = s . getDrugGroup ( 1 ) . getName ( ) ; "<AssertPlaceHolder>" ; } getName ( ) { retur...
org . junit . Assert . assertEquals ( name , "NewNameDrugGroup" )
bgpIsValid ( ) { log . debug ( "Testing<sp>bgpIsValid..." ) ; org . opennaas . gui . vcpe . entities . BGP bgp = new org . opennaas . gui . vcpe . entities . BGP ( ) ; bgp . setClientASNumber ( "65535" ) ; bgp . setNocASNumber ( "4294967295" ) ; java . util . ArrayList < java . lang . String > clientPrefixes = new java...
org . junit . Assert . assertEquals ( 0 , constraintViolations . size ( ) )
testSelfTestIsFalseByDefault ( ) { "<AssertPlaceHolder>" ; } isSelfTest ( ) { return selfTest ; }
org . junit . Assert . assertFalse ( configuration . isSelfTest ( ) )
shouldGetAllVariableValuesWhenAllPresent ( ) { final uk . gov . gchq . gaffer . store . Context context = mock ( uk . gov . gchq . gaffer . store . Context . class ) ; given ( context . getVariable ( key1 ) ) . willReturn ( val1 ) ; given ( context . getVariable ( key2 ) ) . willReturn ( val2 ) ; given ( context . getV...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableMap . of ( key1 , val1 , key2 , val2 , key3 , val3 ) , resultMap )
testNodeOrderingRegression ( ) { com . graphhopper . storage . GraphHopperStorage g = createStorage ( em ) ; g . edge ( 1 , 2 , 1 , false ) ; g . edge ( 2 , 0 , 1 , false ) ; com . graphhopper . routing . subnetwork . PrepareRoutingSubnetworks instance = new com . graphhopper . routing . subnetwork . PrepareRoutingSubn...
org . junit . Assert . assertEquals ( 2 , removedEdges )
GetSubjectSTMT ( ) { com . mysema . rdfbean . model . STMT stmt = dialect . createStatement ( RDFS . label , RDF . type , RDF . Property , RDFS . label ) ; "<AssertPlaceHolder>" ; } getSubject ( com . mysema . rdfbean . model . STMT ) { return statement . getSubject ( ) ; }
org . junit . Assert . assertEquals ( RDFS . label , dialect . getSubject ( stmt ) )
test_readAttribute_notExisted ( ) { final org . dom4j . DocumentFactory docFactory = org . dom4j . DocumentFactory . getInstance ( ) ; final org . dom4j . Element component = docFactory . createElement ( ComponentIndexManager . ELEM_COMPONENT ) ; org . talend . updates . runtime . nexus . component . ComponentIndexBean...
org . junit . Assert . assertNull ( product )
testGetValue ( ) { org . kie . workbench . common . stunner . bpmn . definition . property . cm . CaseFileVariables tested = new org . kie . workbench . common . stunner . bpmn . definition . property . cm . CaseFileVariables ( _value ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return rootPath ; }
org . junit . Assert . assertEquals ( _value , tested . getValue ( ) )
testAddAlias ( ) { axisMapping . addAlias ( "chl" ) ; "<AssertPlaceHolder>" ; } getAliasNames ( ) { final java . util . Set < java . lang . String > names = new java . util . TreeSet ( ) ; names . addAll ( insituMap . keySet ( ) ) ; names . addAll ( rasterMap . keySet ( ) ) ; return names ; }
org . junit . Assert . assertEquals ( "chl" , axisMapping . getAliasNames ( ) . iterator ( ) . next ( ) )
testIsAssignmentBookableFalseAfterDeadline ( ) { net . rrm . ehour . project . status . ProjectAssignmentStatus status = new net . rrm . ehour . project . status . ProjectAssignmentStatus ( ) ; status . addStatus ( ProjectAssignmentStatus . Status . AFTER_DEADLINE ) ; status . addStatus ( ProjectAssignmentStatus . Stat...
org . junit . Assert . assertFalse ( status . isAssignmentBookable ( ) )
should_send_email_when_probation_period_expires_in_1_day ( ) { com . autentia . tnt . businessobject . User user = com . autentia . tnt . test . utils . SpringUtilsForTesting . createUser ( "probation-1d" ) ; user . setEndTestPeriodDate ( java . util . Date . from ( java . time . LocalDate . now ( ) . plusDays ( 1 ) . ...
org . junit . Assert . assertThat ( userCount , is ( 1 ) )
testPermissionStringPrefixProp ( ) { java . lang . String prefix = "foo" ; resolver . setPermissionStringPrefix ( prefix ) ; "<AssertPlaceHolder>" ; } getPermissionStringPrefix ( ) { return permissionStringPrefix ; }
org . junit . Assert . assertEquals ( prefix , resolver . getPermissionStringPrefix ( ) )
supports_withoutHandlerMethod_noException ( ) { capital . scalable . restdocs . webflux . WebTestClientInitializer testInstance = new capital . scalable . restdocs . webflux . WebTestClientInitializer ( ) ; java . lang . String noHandlerMethod = "string<sp>value<sp>just<sp>for<sp>unit<sp>test" ; boolean result = testIn...
org . junit . Assert . assertFalse ( result )
testEqualsImaginaryDifference ( ) { org . apache . commons . math3 . complex . Complex x = new org . apache . commons . math3 . complex . Complex ( 0.0 , 0.0 ) ; org . apache . commons . math3 . complex . Complex y = new org . apache . commons . math3 . complex . Complex ( 0.0 , ( 0.0 + ( Double . MIN_VALUE ) ) ) ; "<A...
org . junit . Assert . assertFalse ( x . equals ( y ) )
testClear ( ) { org . apache . log4j . NDC . push ( "clear" ) ; org . apache . log4j . NDC . clear ( ) ; "<AssertPlaceHolder>" ; } getDepth ( ) { int i = 0 ; while ( true ) { java . lang . String val = org . apache . log4j . MDC . get ( ( ( org . apache . log4j . NDC . PREFIX ) + i ) ) ; if ( val != null ) { i ++ ; } e...
org . junit . Assert . assertEquals ( 0 , org . apache . log4j . NDC . getDepth ( ) )