input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testConsumerCountUnsubscribed ( ) { java . lang . String topic = "some:topic" ; io . github . tcdl . msb . api . ResponderOptions responderOptions = new io . github . tcdl . msb . api . ResponderOptions . Builder ( ) . build ( ) ; channelManager . subscribe ( topic , responderOptions , ( message , acknowledgeHandler ) ...
org . junit . Assert . assertEquals ( java . util . Optional . empty ( ) , result )
testUpdatingPasswordNonexistingUser ( ) { g7w14 . test . UserManagerTest . user . setUserId ( 50000L ) ; "<AssertPlaceHolder>" ; } update ( ) { java . lang . String selectStatement = "Update<sp>users<sp>set<sp>password=?<sp>where<sp>UserId=?<sp>" ; int result = 0 ; try { result = ud . update ( selectStatement , user . ...
org . junit . Assert . assertTrue ( ( ( g7w14 . test . UserManagerTest . manager . update ( ) ) == 0 ) )
multipleIdWithSessionCheck ( ) { log . info ( "...<sp>multipleIdWithSessionCheck<sp>..." ) ; javax . persistence . EntityManager em = emf . createEntityManager ( ) ; em . getTransaction ( ) . begin ( ) ; org . hibernate . Session session = em . unwrap ( org . hibernate . Session . class ) ; @ org . thoughts . on . java...
org . junit . Assert . assertEquals ( 3 , books . size ( ) )
setInterval ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveWakeUpCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveWakeUpCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS_WAKE_UP ) ) ) ; org . openhab . binding . zwave . i...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( msg . getPayloadBuffer ( ) , expectedResponseV1 ) )
testGeenFilterGewoneAfnemerindicatie ( ) { final int leveringAutorisatieId = 1 ; org . mockito . Mockito . when ( leveringsautorisatieService . geefLeveringautorisatie ( leveringAutorisatieId ) ) . thenReturn ( bouwLeveringsautorisatieNietGeheim ( leveringAutorisatieId ) ) ; final nl . bzk . brp . domain . leveringmode...
org . junit . Assert . assertTrue ( berichtgegevens . isGeautoriseerd ( afnemerIndicatie ) )
testSpellWithCorrectWords ( ) { java . lang . String [ ] correctWords = new java . lang . String [ ] { "words" , "good" , "Pegasus" , "test" } ; for ( java . lang . String word : correctWords ) { "<AssertPlaceHolder>" ; } } spell ( java . lang . String ) { checkHandle ( ) ; checkWord ( "word" , word ) ; org . bridj . P...
org . junit . Assert . assertThat ( word , unit . spell ( word ) , org . hamcrest . CoreMatchers . is ( true ) )
testDefaultConstructor ( ) { org . orbisgis . legend . thematic . recode . RecodedArea ar = new org . orbisgis . legend . thematic . recode . RecodedArea ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
shouldGetSTREAMFromTextWithDefaults ( ) { java . io . ByteArrayOutputStream stream = net . glxn . qrgen . javase . QRCode . from ( "Hello<sp>World" ) . stream ( ) ; "<AssertPlaceHolder>" ; } from ( java . lang . String ) { return new net . glxn . qrgen . javase . QRCode ( text ) ; }
org . junit . Assert . assertNotNull ( stream )
test_SEI ( ) { bus . loadProgram ( 120 ) ; cpu . step ( ) ; "<AssertPlaceHolder>" ; } getIrqDisableFlag ( ) { return state . irqDisableFlag ; }
org . junit . Assert . assertTrue ( cpu . getIrqDisableFlag ( ) )
testMin ( ) { System . out . println ( "min" ) ; jsat . distributions . Cauchy instance = new jsat . distributions . Cauchy ( ) ; "<AssertPlaceHolder>" ; } min ( ) { return Double . NEGATIVE_INFINITY ; }
org . junit . Assert . assertTrue ( ( ( Double . NEGATIVE_INFINITY ) == ( instance . min ( ) ) ) )
shouldGiveErrorsIfBillDetailsEmpty ( ) { billRegister . getBillDetails ( ) . clear ( ) ; billRegister . getBillPayeeDetails ( ) . clear ( ) ; errors = billService . validateBillRegister ( billRegister ) ; "<AssertPlaceHolder>" ; } size ( ) { return messages . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , errors . size ( ) )
enforceCssImportLinkRewritten ( ) { java . lang . String markup = "<style<sp>type=\"text/css\">@import<sp>url(\'www.evil.com/x.js\');</style>" ; java . lang . String sanitized = "<html><head><style>" + ( ( "@import<sp>url('http://host.com/proxy?url=http%3A%2F%2Fwww.example.org%2Fwww.evil.com%2Fx.js&" + "sanitize=1&rewr...
org . junit . Assert . assertEquals ( sanitized , rewritten )
testBlockCache ( ) { int blocksInTest = 2000000 ; int blockSize = 1024 ; int slabSize = blockSize * 4096 ; long totalMemory = 2 * slabSize ; com . nearinfinity . blur . store . blockcache . BlockCache blockCache = new com . nearinfinity . blur . store . blockcache . BlockCache ( new com . nearinfinity . blur . metrics ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( testData , buffer ) )
testModPartitionWithLambda ( ) { org . apache . beam . sdk . values . PCollectionList < java . lang . Integer > outputs = pipeline . apply ( org . apache . beam . sdk . transforms . Create . of ( 1 , 2 , 4 , 5 ) ) . apply ( org . apache . beam . sdk . transforms . Partition . of ( 3 , ( element , numPartitions ) -> ele...
org . junit . Assert . assertEquals ( 3 , outputs . size ( ) )
test ( ) { owltools . gaf . GafDocument gafdoc = loadGaf ( "test_gene_association_mgi.gaf" ) ; owltools . gaf . rules . AnnotationRule rule = new owltools . gaf . rules . go . GoBindingCheckWithFieldRule ( eco ) ; java . util . List < owltools . gaf . GeneAnnotation > annotations = gafdoc . getGeneAnnotations ( ) ; jav...
org . junit . Assert . assertEquals ( 0 , allViolations . size ( ) )
testGetSUBSET ( ) { java . lang . String actual = table . getSUBSET ( ) ; java . lang . String expected = "subset" ; "<AssertPlaceHolder>" ; } getSUBSET ( ) { return "subset" ; }
org . junit . Assert . assertEquals ( expected , actual )
testHexCharacter ( ) { net . sourceforge . pmd . cpd . Tokens tokens = parse ( ( "if<sp>(*pbuf<sp>==<sp>\'\\0x05\')" + ( net . sourceforge . pmd . PMD . EOL ) ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return rules . size ( ) ; }
org . junit . Assert . assertEquals ( 8 , tokens . size ( ) )
testSizeZeroOnLineByItselfGetsNoOutput ( ) { org . stringtemplate . v4 . ST t = new org . stringtemplate . v4 . ST ( ( "begin\n" + ( ( ( "<name>\n" + "<users>\n" ) + "<users>\n" ) + "end\n" ) ) ) ; java . lang . String expecting = ( ( "begin" + ( newline ) ) + "end" ) + ( newline ) ; java . lang . String result = t . r...
org . junit . Assert . assertEquals ( expecting , result )
get_returnsNullForNonExistingMember ( ) { "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { return wrappedMap . get ( new org . eclipse . jface . internal . databinding . viewers . ViewerElementWrapper ( key , comparer ) ) ; }
org . junit . Assert . assertNull ( object . get ( "foo" ) )
unregisterRemovesSessionId ( ) { java . lang . String sessionId = "session<sp>ID" ; java . lang . Long hostId = 1L ; org . apache . ambari . server . state . Host host = org . easymock . EasyMock . createNiceMock ( org . apache . ambari . server . state . Host . class ) ; expect ( host . getHostId ( ) ) . andReturn ( h...
org . junit . Assert . assertFalse ( underTest . isRegistered ( sessionId ) )
testToConnectOptionalPrimitiveWithConnectMetadata ( ) { org . apache . kafka . connect . data . Schema schema = org . apache . kafka . connect . data . SchemaBuilder . string ( ) . doc ( "doc" ) . defaultValue ( "foo" ) . name ( "io.confluent.stringtype" ) . version ( 2 ) . optional ( ) . parameter ( "foo" , "bar" ) . ...
org . junit . Assert . assertEquals ( new org . apache . kafka . connect . data . SchemaAndValue ( schema , "string" ) , avroData . toConnectData ( avroSchema , "string" ) )
testPutGetRangeAsyncBuilder ( ) { java . lang . String indexName = "put-index" ; java . lang . String docId = "testPutDocs" ; com . google . appengine . api . search . Index index = createIndex ( indexName , docId ) ; com . google . appengine . api . search . GetIndexesRequest request = com . google . appengine . api ....
org . junit . Assert . assertEquals ( futurDocs . get ( ) . getResults ( ) . size ( ) , 2 )
canGetEntry ( ) { dummyLogin . login ( org . nuxeo . directory . test . TestDirectorySecurityContrib . READER_USER ) ; try ( org . nuxeo . ecm . directory . Session userDirSession = getSession ( DirectoryFeature . USER_DIRECTORY_NAME ) ) { org . nuxeo . ecm . core . api . DocumentModel entry = userDirSession . getEntry...
org . junit . Assert . assertNotNull ( entry )
testToEbXMLEmpty ( ) { transformer . toEbXML ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetSubmissionSetAndContentsQuery ( ) , ebXML ) ; "<AssertPlaceHolder>" ; } getSlots ( ) { return getSlotList ( ) . getSlots ( ) ; }
org . junit . Assert . assertEquals ( 0 , ebXML . getSlots ( ) . size ( ) )
testDateFormatCache ( ) { java . util . TimeZone utcTimeZone = java . util . TimeZone . getTimeZone ( "UTC" ) ; java . lang . String test = "%c" ; org . apache . flume . formatter . output . BucketPath . escapeString ( test , headers , utcTimeZone , false , Calendar . HOUR_OF_DAY , 12 , false ) ; java . lang . String e...
org . junit . Assert . assertEquals ( expectedString , escapedString )
testGetMessageVariables ( ) { java . util . Map < java . lang . String , java . lang . Object > vars = customValueFormatter . getMessageVariables ( ) ; "<AssertPlaceHolder>" . containsKey ( "trueValues" ) . containsKey ( "falseValues" ) . containsEntry ( "ignoreCase" , false ) . containsEntry ( "failToFalse" , false ) ...
org . junit . Assert . assertThat ( vars )
testExpiration ( ) { com . supaham . commons . utils . ExpiringSet < java . lang . String > strings = new com . supaham . commons . utils . ExpiringSet ( 1 , java . util . concurrent . TimeUnit . SECONDS ) ; java . lang . String string = "Hi!<sp>:)" ; strings . add ( string ) ; java . lang . Thread . sleep ( 1001 ) ; "...
org . junit . Assert . assertTrue ( ( ! ( strings . contains ( string ) ) ) )
shouldInheritAllowTypeFromParentIfEmpty ( ) { org . nuxeo . ecm . core . api . DocumentModel workspace = session . getDocument ( org . nuxeo . ecm . platform . types . localconfiguration . TestLocalConfiguration . PARENT_WORKSPACE_REF ) ; setAllowedTypes ( workspace , "File" ) ; org . nuxeo . ecm . core . api . Documen...
org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( "File" ) , configuration . getAllowedTypes ( ) )
testStream11 ( ) { final java . net . InetSocketAddress serverAddress = util . UnitHelp . localSocketAddress ( ) ; final com . barchart . udt . net . StreamServer server = new com . barchart . udt . net . StreamServer ( com . barchart . udt . TypeUDT . DATAGRAM , serverAddress , factory1 ) ; final com . barchart . udt ...
org . junit . Assert . assertEquals ( value , index )
testBuildWithDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . degree . type . DegreeType context = new org . lnu . is . domain . degree . type . DegreeType ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>DegreeType<sp>e<sp>WHERE<sp>e.status=:status<sp>" ; org ...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testByRefClone ( ) { com . ochafik . lang . jnaerator . runtime . StructureTest . TestStruct s = new com . ochafik . lang . jnaerator . runtime . StructureTest . TestStruct ( ) ; s . value = 10 ; com . ochafik . lang . jnaerator . runtime . StructureTest . TestStruct . ByReference r = s . byReference ( ) ; r . autoWrit...
org . junit . Assert . assertEquals ( s . value , r . value )
testPayload ( ) { java . lang . Object payload = "funkyPayload" ; org . r10r . doctester . testbrowser . Request request = org . r10r . doctester . testbrowser . Request . GET ( ) . payload ( payload ) ; "<AssertPlaceHolder>" ; } payload ( java . lang . Object ) { this . payload = payload ; return this ; }
org . junit . Assert . assertThat ( request . payload , org . hamcrest . CoreMatchers . equalTo ( payload ) )
fromCodeNotAllowedUnknownOutputPassingOption ( ) { com . microsoft . windowsazure . services . media . implementation . templates . playreadylicense . UnknownOutputPassingOption expectedUnknownOutputPassingOption = com . microsoft . windowsazure . services . media . implementation . templates . playreadylicense . Unkno...
org . junit . Assert . assertEquals ( expectedUnknownOutputPassingOption , unknownOutputPassingOptionResult )
createMock ( ) { java . util . List < java . lang . String > list = mock ( java . util . List . class ) ; when ( list . size ( ) ) . thenReturn ( 0 ) ; int size = list . size ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return artifacts . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , size )
shouldFailIfAnyDrugOrderFrequenciesNotMappedToConceptsAreFound ( ) { upgradeTestUtil . executeDataset ( org . openmrs . util . databasechange . Database1_9_7UpgradeIT . STANDARD_TEST_1_9_7_DATASET ) ; java . util . Set < java . lang . String > uniqueFrequencies = org . openmrs . util . DatabaseUtil . getUniqueNonNullCo...
org . junit . Assert . assertTrue ( ( ( uniqueFrequencies . size ( ) ) > 0 ) )
testPriorityLevel2 ( ) { int n = jannovar . common . VariantType . priorityLevel ( VariantType . FS_INSERTION ) ; "<AssertPlaceHolder>" ; } priorityLevel ( jannovar . common . VariantType ) { switch ( vt ) { case FS_DELETION : case FS_INSERTION : case NON_FS_SUBSTITUTION : case FS_SUBSTITUTION : case MISSENSE : case NO...
org . junit . Assert . assertEquals ( 1 , n )
assertGetQuoteCharacterWithEmptyValue ( ) { "<AssertPlaceHolder>" ; } getQuoteCharacter ( java . lang . String ) { if ( com . google . common . base . Strings . isNullOrEmpty ( value ) ) { return org . apache . shardingsphere . core . parse . antlr . constant . QuoteCharacter . NONE ; } for ( org . apache . shardingsph...
org . junit . Assert . assertThat ( org . apache . shardingsphere . core . parse . antlr . constant . QuoteCharacter . getQuoteCharacter ( "" ) , org . hamcrest . CoreMatchers . is ( QuoteCharacter . NONE ) )
testSetMethods ( ) { B . set ( ib , jb , 0.0 ) ; double tmp = B . get ( ib , jb ) ; "<AssertPlaceHolder>" ; } get ( int , int ) { return A [ i ] [ j ] ; }
org . junit . Assert . assertEquals ( 0.0 , tmp , 0.0 )
testSetChunkingGreaterThanMax ( ) { inputProperties . chunkSize . setValue ( ( ( org . talend . components . salesforce . tsalesforceinput . TSalesforceInputProperties . MAX_CHUNK_SIZE ) + 10000 ) ) ; runtime . setChunkProperties ( inputProperties ) ; "<AssertPlaceHolder>" ; } getChunkSize ( ) { return chunkSize ; }
org . junit . Assert . assertEquals ( TSalesforceInputProperties . MAX_CHUNK_SIZE , runtime . getChunkSize ( ) )
testCallCustomArgObjectReturnCustomizedValidation ( ) { java . lang . String method = "echoObject3" ; final remoting . amfclient . ClientCustomType methodArg = new remoting . amfclient . ClientCustomType ( ) ; methodArg . setId ( 1 ) ; try { internalTestCall ( flex . messaging . io . amf . client . AMFDataTypeIT . getO...
org . junit . Assert . assertEquals ( 1 , temp2 . getId ( ) )
testleverNietsVoorLo3 ( ) { final nl . bzk . brp . model . operationeel . kern . AdministratieveHandelingModel handeling = maakAdministratieveHandeling ( ) ; final nl . bzk . brp . model . hisvolledig . kern . PersoonHisVolledig persoon = nl . bzk . brp . util . testpersoonbouwers . TestPersoonJohnnyJordaan . maak ( ) ...
org . junit . Assert . assertTrue ( resultaat . isSuccesvol ( ) )
testBijhoudingspartijVoorBijhoudingsplan ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon bijhoudingPersoon = new nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon ( ) ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . Partij partij = new nl . bzk . algemeenbrp ....
org . junit . Assert . assertEquals ( partij , bijhoudingPersoon . getBijhoudingspartijVoorBijhoudingsplan ( ) )
testParseSimpleWithDecimals ( ) { java . lang . String source = ( ( ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "23;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "43;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "63}" ; org . apache . commons . math3 . geometry . euclidean . threed . Vector3D expected = new org . apache . c...
org . junit . Assert . assertEquals ( expected , actual )
testVerwijzingVanUitMeldingen ( ) { nl . bzk . brp . model . bericht . kern . PersoonBericht persoon1 = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; persoon1 . setCommunicatieID ( "p1" ) ; nl . bzk . brp . model . bericht . ber . AdministratieveHandelingGedeblokkeerdeMeldingBericht deblokkeerMeldi...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
responseStatusCodeSuccessful_invalidStatus ( ) { final boolean successful = samlLogoutResponseValidator . responseStatusCodeSuccessful ( FILE_UNSIGNED_LOGOUT_RESPONSE_INVALID_STATUS ) ; "<AssertPlaceHolder>" ; } responseStatusCodeSuccessful ( java . lang . String ) { final java . lang . String statusCode = samlResponse...
org . junit . Assert . assertFalse ( successful )
testMatchMake ( ) { org . crosswire . common . diff . Patch p = new org . crosswire . common . diff . Patch ( "@@<sp>-1,11<sp>+1,12<sp>@@\n<sp>Th\n-e\n+at\n<sp>quick<sp>b\n@@<sp>-21,18<sp>+22,17<sp>@@\n<sp>jump\n-s\n+ed\n<sp>over<sp>\n-the\n+a\n<sp>laz\n" 2 , "That<sp>quick<sp>brown<sp>fox<sp>jumped<sp>over<sp>a<sp>laz...
org . junit . Assert . assertEquals ( "@@<sp>-1,11<sp>+1,12<sp>@@\n<sp>Th\n-e\n+at\n<sp>quick<sp>b\n@@<sp>-21,18<sp>+22,17<sp>@@\n<sp>jump\n-s\n+ed\n<sp>over<sp>\n-the\n+a\n<sp>laz\n" 1 , "@@<sp>-1,11<sp>+1,12<sp>@@\n<sp>Th\n-e\n+at\n<sp>quick<sp>b\n@@<sp>-21,18<sp>+22,17<sp>@@\n<sp>jump\n-s\n+ed\n<sp>over<sp>\n-the\n+...
testCountFilesAndCollectionsUnderPathInAnotherZone ( ) { if ( ! ( org . irods . jargon . core . pub . FederatedCollectionAndDataObjectListAndSearchAOImplTest . testingPropertiesHelper . isTestFederatedZone ( org . irods . jargon . core . pub . FederatedCollectionAndDataObjectListAndSearchAOImplTest . testingProperties ...
org . junit . Assert . assertEquals ( ( count * 2 ) , ctr )
updateGroup ( ) { wireMockRule . stubFor ( post ( urlEqualTo ( "/group" ) ) . willReturn ( aResponse ( ) . withStatus ( 200 ) . withBody ( "" ) ) ) ; final org . apache . cloudstack . cloudian . client . CloudianGroup group = getTestGroup ( ) ; boolean result = client . updateGroup ( group ) ; "<AssertPlaceHolder>" ; v...
org . junit . Assert . assertTrue ( result )
testGetAllEntities ( ) { context . setEntityType ( TimelineEntityType . YARN_CONTAINER . toString ( ) ) ; timelineReader . serviceInit ( conf ) ; org . apache . hadoop . yarn . server . timelineservice . reader . TimelineDataToRetrieve dataToRetrieve = new org . apache . hadoop . yarn . server . timelineservice . reade...
org . junit . Assert . assertEquals ( entities . size ( ) , actualEntities . size ( ) )
testSettingFieldBoostingInQuerqyBoostQueriesToOn ( ) { org . apache . solr . common . params . ModifiableSolrParams params = new org . apache . solr . common . params . ModifiableSolrParams ( ) ; params . add ( QuerqyDismaxParams . QBOOST_FIELD_BOOST , QuerqyDismaxParams . QBOOST_FIELD_BOOST_ON ) ; when ( request . get...
org . junit . Assert . assertTrue ( adapter . useFieldBoostingInQuerqyBoostQueries ( ) )
testTargetObjectWithArbitraryId ( ) { java . lang . String id = "ID" ; org . eclipselabs . mongoemf . junit . model . TargetObject targetObject = ModelFactory . eINSTANCE . createTargetObject ( ) ; targetObject . setSingleAttribute ( "junit" ) ; saveObject ( targetObject , createObjectURI ( targetObject . eClass ( ) , ...
org . junit . Assert . assertThat ( org . eclipselabs . mongoemf . junit . support . EChecker . getID ( actual ) , org . hamcrest . CoreMatchers . is ( id ) )
shiftLocalHourToUTCWithoutRangeChangePosShiftTest ( ) { int hourShift = SchedulingUtils . cachedHourShift = 2 ; int startHour = 24 - hourShift ; "<AssertPlaceHolder>" ; } shiftLocalHourToUTC ( int ) { org . threadly . util . ArgumentVerifier . assertLessThan ( hour , TimeUnit . DAYS . toHours ( 1 ) , "hour" ) ; org . t...
org . junit . Assert . assertEquals ( ( startHour - hourShift ) , org . threadly . concurrent . SchedulingUtils . shiftLocalHourToUTC ( startHour ) )
testIndicatieConversieVoorLeeg ( ) { nl . bzk . brp . model . operationeel . kern . PersistentPersoon dbPersoon = new nl . bzk . brp . model . operationeel . kern . PersistentPersoon ( ) ; dbPersoon . setPersoonIndicaties ( new java . util . HashSet < nl . bzk . brp . model . operationeel . kern . PersistentPersoonIndi...
org . junit . Assert . assertTrue ( persoon . getIndicaties ( ) . isEmpty ( ) )
matchingDescendant_false_sameLength ( ) { T p = createPath ( ) ; if ( ( segments ) != null ) { com . redhat . lightblue . util . Path compare = p . mutableCopy ( ) . setLast ( "nope" ) ; "<AssertPlaceHolder>" ; } } matchingDescendant ( com . redhat . lightblue . util . Path ) { int n = pattern . numSegments ( ) ; if ( ...
org . junit . Assert . assertFalse ( p . matchingDescendant ( compare ) )
testGetCurrentDiagramNamespaceWhenPageProviderIsPresent ( ) { final java . lang . String expectedNamespace = "://namespace" ; when ( pageProvider . getCurrentDiagramNamespace ( ) ) . thenReturn ( expectedNamespace ) ; state . init ( pageProvider ) ; final java . lang . String actualNamespace = state . getCurrentDiagram...
org . junit . Assert . assertEquals ( expectedNamespace , actualNamespace )
testJoinfromViewfronLexicons ( ) { System . out . println ( "In<sp>testJoinInnerWithInnerDocMixed<sp>method" ) ; com . marklogic . client . row . RowManager rowMgr = com . marklogic . client . functionaltest . TestOpticOnMixedViews . client . newRowManager ( ) ; com . marklogic . client . expression . PlanBuilder p = r...
org . junit . Assert . assertTrue ( "Number<sp>of<sp>Elements<sp>after<sp>plan<sp>execution<sp>is<sp>incorrect.<sp>Should<sp>be<sp>2" , ( 2 == ( jsonBindingsNodes . size ( ) ) ) )
lsar_MultipleLsarEnumerateAccountsWithUserRightResponse ( ) { com . rapid7 . client . dcerpc . mslsad . messages . LsarEnumerateAccountsWithUserRightResponse response = new com . rapid7 . client . dcerpc . mslsad . messages . LsarEnumerateAccountsWithUserRightResponse ( ) ; java . lang . String hexString = "04000000000...
org . junit . Assert . assertEquals ( expectedSids [ i ] , sids [ i ] )
shouldSaveAndRestoreState ( ) { java . util . Map < java . lang . String , java . lang . String > m = java . util . Collections . singletonMap ( "k" , "v" ) ; org . springframework . springfaces . mvc . model . SpringFacesModelHolder h1 = new org . springframework . springfaces . mvc . model . SpringFacesModelHolder ( ...
org . junit . Assert . assertThat ( h2 . getModel ( ) . get ( "k" ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( ( ( java . lang . Object ) ( "v" ) ) ) ) )
testRequestAnnotation ( ) { java . io . File f = new java . io . File ( "/home/cedr/Bureau/GeoXACML/example/request.xml" ) ; if ( f . exists ( ) ) { final java . lang . Object request = unmarshaller . unmarshal ( f ) ; "<AssertPlaceHolder>" ; } else { logger . info ( "unable<sp>to<sp>find<sp>file<sp>skipping<sp>test" )...
org . junit . Assert . assertNotNull ( request )
testSetNeuron ( ) { instance . setNeuron ( 1 , testneuron3 ) ; java . util . List < org . neuroph . core . Neuron > lst = instance . getNeurons ( ) ; "<AssertPlaceHolder>" ; } get ( int ) { return rows . get ( index ) ; }
org . junit . Assert . assertEquals ( testneuron3 , lst . get ( 1 ) )
shouldReturnBoundaryForSemiColon ( ) { edu . stanford . bmir . protege . web . shared . entity . EntityNameCharType type = edu . stanford . bmir . protege . web . shared . entity . EntityNameCharType . getType ( 0 , ';' , 1 ) ; "<AssertPlaceHolder>" ; } getType ( int , char , int ) { if ( java . lang . Character . isUp...
org . junit . Assert . assertEquals ( EntityNameCharType . BOUNDARY , type )
testProducerConsumerLoop ( ) { final int ITERATIONS = 500 ; int received = 0 ; for ( int i = 1 ; i <= ( ITERATIONS * 2 ) ; i += 2 ) { if ( ( doTestProducerConsumer ( i ) ) != null ) { received ++ ; } } "<AssertPlaceHolder>" ; } doTestProducerConsumer ( int ) { java . lang . String message = null ; org . junit . Assert ...
org . junit . Assert . assertEquals ( ITERATIONS , received )
implicits ( ) { java . lang . String html = rocker . ImplicitC . template ( ) . implicit ( "a" ) . render ( ) . toString ( ) ; java . lang . String expected = "1a" ; "<AssertPlaceHolder>" ; } toString ( ) { byte [ ] bytes = toByteArray ( ) ; return new java . lang . String ( bytes , this . charset ) ; }
org . junit . Assert . assertEquals ( expected , html )
testGetMseaUniEvcServiceMseaUniEvcServiceOpParamNetconfSession ( ) { org . onosproject . yang . gen . v1 . mseaunievcservice . rev20160317 . mseaunievcservice . MefServices mefServices = new org . onosproject . yang . gen . v1 . mseaunievcservice . rev20160317 . mseaunievcservice . DefaultMefServices ( ) ; mefServices ...
org . junit . Assert . assertNotNull ( result )
testAbstractDecoratorApplied ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( false )
testIntModAssign ( ) { executeWithDefaultScope ( "intVar=42" ) ; executeWithDefaultScope ( "intVar%=1" ) ; "<AssertPlaceHolder>" ; } getIntValue ( ) { return context . getVariable ( "intVar" ) . getValue ( ) ; }
org . junit . Assert . assertEquals ( 0L , getIntValue ( ) )
testGetConfirmSessionClose ( ) { classUnderTest . setConfirmSessionClose ( true ) ; "<AssertPlaceHolder>" ; } getConfirmSessionClose ( ) { return _confirmSessionClose ; }
org . junit . Assert . assertEquals ( true , classUnderTest . getConfirmSessionClose ( ) )
testSystemUnderTestIsProperlyMarshalled ( ) { info . novatec . testit . livingdoc . server . domain . Runner runner = info . novatec . testit . livingdoc . server . domain . Runner . newInstance ( "RUNNER-1" ) ; info . novatec . testit . livingdoc . server . domain . SystemUnderTest sut = info . novatec . testit . livi...
org . junit . Assert . assertEquals ( params , sut . marshallize ( ) )
testInformQuorumAchieved ( ) { broadcaster . informQuorumAchieved ( ) ; "<AssertPlaceHolder>" ; } informQuorumAchieved ( ) { }
org . junit . Assert . assertEquals ( 1 , application . informQuorumAchieved . get ( ) )
testResetContent ( ) { org . robolectric . Robolectric . getFakeHttpLayer ( ) . interceptHttpRequests ( false ) ; java . lang . String subpath = "/resetcontent" ; stubFor ( get ( urlEqualTo ( subpath ) ) . willReturn ( aResponse ( ) . withStatus ( 205 ) ) ) ; java . lang . String response = responseEndpoint . resetCont...
org . junit . Assert . assertNull ( response )
shouldNotSnapshotPopulatingIndexes ( ) { java . util . concurrent . CountDownLatch populatorLatch = new java . util . concurrent . CountDownLatch ( 1 ) ; org . neo4j . kernel . api . index . IndexAccessor indexAccessor = mock ( org . neo4j . kernel . api . index . IndexAccessor . class ) ; int indexId = 1 ; int indexId...
org . junit . Assert . assertThat ( asCollection ( files ) , org . hamcrest . Matchers . equalTo ( asCollection ( iterator ( theFile ) ) ) )
testRequiredConfig ( ) { org . dcache . gplazma . strategies . AuthenticationStrategy strategy = strategyFactory . newAuthenticationStrategy ( ) ; "<AssertPlaceHolder>" ; strategy . setPlugins ( successRequiredPlugins ) ; java . util . Set < java . lang . Object > publicCredential = com . google . common . collect . Se...
org . junit . Assert . assertNotNull ( strategy )
testSerialization ( ) { org . jfree . data . xy . XYInterval i1 = new org . jfree . data . xy . XYInterval ( 1.0 , 2.0 , 3.0 , 2.5 , 3.5 ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutputStream ( buffer ) ; out . writeOb...
org . junit . Assert . assertEquals ( i1 , i2 )
testEstimateSizeInBytesShort ( ) { org . sagebionetworks . repo . model . dbo . dao . migration . ByteSizeUtilsTest . AllKinds object = new org . sagebionetworks . repo . model . dbo . dao . migration . ByteSizeUtilsTest . AllKinds ( ) ; object . setShortField ( ( ( short ) ( 1 ) ) ) ; org . springframework . jdbc . co...
org . junit . Assert . assertEquals ( expected , size )
filteringAffectsPlan ( ) { org . junit . runner . Runner runner = org . junit . runner . Request . method ( org . junit . tests . manipulation . SingleMethodTest . OneTimeSetup . class , "one" ) . getRunner ( ) ; "<AssertPlaceHolder>" ; } testCount ( ) { if ( isTest ( ) ) { return 1 ; } int result = 0 ; for ( org . jun...
org . junit . Assert . assertEquals ( 1 , runner . testCount ( ) )
testLeegZonderWaarde ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . PERSOON_GEBOORTE_DATUM . getId ( ) ) ; final nl . bzk . brp . service . bevraging . zoekpersoongeneriek . AbstractZoekPersoonVerzoek bevragingVerzoek = maakBevragingVerzoek ( attribuu...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
fetchVersionFromExistingNoFound ( ) { final long vh = 10 ; final byte [ ] source = new byte [ ] { ( ( byte ) ( com . persistit . MVV . TYPE_MVV ) ) , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 3 , 10 , 11 , 12 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 2 , 0 , 2 , 13 , 14 } ; final byte [ ] target = new byte [ ] { } ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( MVV . VERSION_NOT_FOUND , com . persistit . MVV . fetchVersion ( source , source . length , vh , target ) )
withMoreVertex ( ) { treegraph . Digraph digraph = new treegraph . Digraph ( 5 ) ; digraph . addEdge ( 0 , 1 ) ; digraph . addEdge ( 0 , 2 ) ; digraph . addEdge ( 2 , 3 ) ; digraph . addEdge ( 2 , 4 ) ; treegraph . _04_01_RouteBetweenNodes routeBetweenNodes = new treegraph . _04_01_RouteBetweenNodes ( digraph ) ; "<Ass...
org . junit . Assert . assertTrue ( routeBetweenNodes . hasRoute ( 0 , 4 ) )
testRemoveToken ( ) { org . apache . jackrabbit . oak . spi . security . authentication . token . TokenInfo info = tokenProvider . createToken ( userId , java . util . Collections . < java . lang . String , java . lang . Object > emptyMap ( ) ) ; "<AssertPlaceHolder>" ; } remove ( ) { com . google . common . base . Pre...
org . junit . Assert . assertTrue ( info . remove ( ) )
testSetInterval ( ) { org . opengis . util . InternationalString result = temporalCoordinateSystem1 . getInterval ( ) ; ( ( org . geotools . temporal . reference . DefaultTemporalCoordinateSystem ) ( temporalCoordinateSystem1 ) ) . setInterval ( new org . geotools . util . SimpleInternationalString ( "hour" ) ) ; "<Ass...
org . junit . Assert . assertFalse ( temporalCoordinateSystem1 . getInterval ( ) . equals ( result ) )
testSerialization ( ) { org . jfree . chart . renderer . category . GradientBarPainter p1 = new org . jfree . chart . renderer . category . GradientBarPainter ( 0.1 , 0.2 , 0.3 ) ; org . jfree . chart . renderer . category . GradientBarPainter p2 = ( ( org . jfree . chart . renderer . category . GradientBarPainter ) ( ...
org . junit . Assert . assertEquals ( p1 , p2 )
testActivityInstanceTreeForNestedAsyncBeforeStartEvent ( ) { org . camunda . bpm . engine . runtime . ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "oneTaskProcess" ) ; org . camunda . bpm . engine . runtime . ActivityInstance tree = runtimeService . getActivityInstance ( processInstanc...
org . junit . Assert . assertThat ( tree )
testSendKafkaMessage ( ) { org . apache . samoa . streams . kafka . KafkaUtilsTest . logger . log ( Level . INFO , "sendKafkaMessage" ) ; org . apache . samoa . streams . kafka . KafkaUtilsTest . logger . log ( Level . INFO , "Initialising<sp>producer" ) ; org . apache . samoa . streams . kafka . KafkaUtils instance = ...
org . junit . Assert . assertArrayEquals ( sent . toArray ( ) , consumed . toArray ( ) )
testAllValid ( ) { org . kie . workbench . common . stunner . bpmn . definition . BPMNDiagramImpl BPMNDiagramImpl = createValidBpmnDiagram ( ) ; java . util . Set < javax . validation . ConstraintViolation < org . kie . workbench . common . stunner . bpmn . definition . BPMNDiagramImpl > > violations = this . validator...
org . junit . Assert . assertTrue ( violations . isEmpty ( ) )
collapseConsecutiveWhiteSpacesTrailingWhiteSpaceTest ( ) { java . lang . String toCollapse = "A<sp>B<sp>" ; java . lang . String actual = com . itextpdf . styledxmlparser . util . WhiteSpaceUtil . collapseConsecutiveSpaces ( toCollapse ) ; java . lang . String expected = "A<sp>B<sp>" ; "<AssertPlaceHolder>" ; } collaps...
org . junit . Assert . assertEquals ( expected , actual )
test ( ) { try ( edu . umass . cs . surveyman . server . StaticAnalysisServer sas = new edu . umass . cs . surveyman . server . StaticAnalysisServer ( edu . umass . cs . surveyman . server . StaticAnalysisServerTest . TESTING_PORT ) ) { java . lang . String url = sas . getURL ( ) ; sas . startServer ( ) ; java . lang ....
org . junit . Assert . assertEquals ( 200 , statusLine . getStatusCode ( ) )
deveObterIcms10ComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS icms = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS ( ) ; final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImposto...
org . junit . Assert . assertEquals ( icms10 , icms . getIcms10 ( ) )
testUnmodifiableBuffer ( ) { "<AssertPlaceHolder>" ; } unmodifiableBuffer ( io . netty . buffer . ByteBuf ) { java . nio . ByteOrder endianness = buffer . order ( ) ; if ( endianness == ( io . netty . buffer . Unpooled . BIG_ENDIAN ) ) { return new io . netty . buffer . ReadOnlyByteBuf ( buffer ) ; } return new io . ne...
org . junit . Assert . assertTrue ( ( ( io . netty . buffer . Unpooled . unmodifiableBuffer ( io . netty . buffer . Unpooled . buffer ( 1 ) ) ) instanceof io . netty . buffer . ReadOnlyByteBuf ) )
invokeSigning_whenOverridingBDocContainerFormat ( ) { org . digidoc4j . test . CustomContainer . type = "BDOC" ; org . digidoc4j . ContainerBuilder . setContainerImplementation ( "BDOC" , org . digidoc4j . test . CustomContainer . class ) ; org . digidoc4j . SignatureBuilder . setSignatureBuilderForContainerType ( "BDO...
org . junit . Assert . assertNotNull ( signature )
keyRecovery ( ) { org . bitcoinj . core . ECKey key = new org . bitcoinj . core . ECKey ( ) ; java . lang . String message = "Hello<sp>World!" ; org . bitcoinj . core . Sha256Hash hash = org . bitcoinj . core . Sha256Hash . of ( message . getBytes ( ) ) ; org . bitcoinj . core . ECKey . ECDSASignature sig = key . sign ...
org . junit . Assert . assertTrue ( found )
testGetters ( ) { org . hyperledger . fabric . sdk . Channel channel = createTestChannel ( "channel1" ) ; org . hyperledger . fabric . sdk . User user = org . hyperledger . fabric . sdk . transaction . TransactionContextTest . hfclient . getUserContext ( ) ; org . hyperledger . fabric . sdk . security . CryptoSuite cry...
org . junit . Assert . assertEquals ( cryptoSuite , cryptoPrimitives )
testTocNumberOfPagesAddBlank ( ) { org . sejda . model . parameter . MergeParameters params = new org . sejda . model . parameter . MergeParameters ( ) ; params . setBlankPageIfOdd ( true ) ; params . setTableOfContentsPolicy ( ToCPolicy . DOC_TITLES ) ; params . addInput ( new org . sejda . model . input . PdfMergeInp...
org . junit . Assert . assertEquals ( 2 , victim . tocNumberOfPages ( ) )
testHashBaseForItemAnswersPreservesNullsLiterally ( ) { final org . sakaiproject . tool . assessment . data . dao . assessment . ItemData item = new org . sakaiproject . tool . assessment . data . dao . assessment . ItemData ( ) ; item . setTypeId ( TypeIfc . FILL_IN_BLANK ) ; final org . apache . commons . lang3 . tup...
org . junit . Assert . assertThat ( actualHashBase . toString ( ) , org . hamcrest . CoreMatchers . equalTo ( expectedHashBase . toString ( ) ) )
testEmptyIntersection ( ) { org . antlr . misc . IntervalSet s = org . antlr . misc . IntervalSet . of ( 'a' , 'z' ) ; org . antlr . misc . IntervalSet s2 = org . antlr . misc . IntervalSet . of ( '0' , '9' ) ; java . lang . String expecting = "{}" ; java . lang . String result = s . and ( s2 ) . toString ( ) ; "<Asser...
org . junit . Assert . assertEquals ( result , expecting )
testPullMergeNothingToFetch ( ) { insertAndAdd ( remoteGeogig . geogig , lines3 ) ; org . locationtech . geogig . model . RevCommit commit = commit ( remoteGeogig . repo , "lines3" ) ; expectedMaster . addFirst ( commit ) ; fetchOp ( ) . call ( ) ; org . locationtech . geogig . remotes . PullOp pull = pullOp ( ) ; pull...
org . junit . Assert . assertEquals ( expectedMaster , logged )
testTwoVersionsNoChange ( ) { japicmp . maven . VersionChange vc = new japicmp . maven . VersionChange ( java . util . Arrays . asList ( new japicmp . cmp . JApiCmpArchive ( new java . io . File ( "liba-1.2.3.jar" ) , "1.2.3" ) , new japicmp . cmp . JApiCmpArchive ( new java . io . File ( "libb-1.2.3.jar" ) , "1.2.3" )...
org . junit . Assert . assertThat ( vc . computeChangeType ( ) . get ( ) , org . hamcrest . core . Is . is ( SemanticVersion . ChangeType . UNCHANGED ) )
shouldReturnHBaseRetriever ( ) { final uk . gov . gchq . gaffer . store . Context context = mock ( uk . gov . gchq . gaffer . store . Context . class ) ; final uk . gov . gchq . gaffer . user . User user = mock ( uk . gov . gchq . gaffer . user . User . class ) ; final uk . gov . gchq . gaffer . hbasestore . HBaseStore...
org . junit . Assert . assertSame ( hbaseRetriever , result )
testTransformWithNullMap ( ) { doReturn ( new io . cloudslang . lang . compiler . modeller . result . BasicTransformModellingResult ( newArrayList ( new io . cloudslang . lang . compiler . modeller . model . SeqStep ( ) ) , new java . util . ArrayList ( ) ) ) . when ( seqStepsTransformer ) . transform ( any ( ) , any (...
org . junit . Assert . assertNull ( actualSeqActionSimple )
testMultiLayerSpaceJson ( ) { org . deeplearning4j . arbiter . MultiLayerSpace mls = new org . deeplearning4j . arbiter . MultiLayerSpace . Builder ( ) . optimizationAlgo ( OptimizationAlgorithm . STOCHASTIC_GRADIENT_DESCENT ) . updater ( new org . deeplearning4j . arbiter . conf . updater . SgdSpace ( new org . deeple...
org . junit . Assert . assertEquals ( mls , fromJson )
testCalcErrorDiffValuesErrorCallRadio2InZero ( ) { org . ebayopensource . turmeric . monitoring . provider . model . ExtendedErrorViewData errorViewData = new org . ebayopensource . turmeric . monitoring . provider . model . ExtendedErrorViewData ( ) ; errorViewData . setErrorCount1 ( 1L ) ; errorViewData . setErrorCou...
org . junit . Assert . assertEquals ( expectedValue , java . lang . Double . valueOf ( errorViewData . getRatioDiff ( ) ) )