input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testAppUserRest ( ) { try { uk . me . doitto . webapp . beans . EjbTest . ctx . lookup ( "java:global/classes/AppUserRest" ) ; "<AssertPlaceHolder>" ; } catch ( javax . naming . NamingException e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( "Should<sp>not<sp>reach<sp>here!" ) ; } }
org . junit . Assert . assertTrue ( true )
CalcularIcmsCreditoComQuantidadeDois ( ) { tributos . setValorProduto ( java . math . BigDecimal . valueOf ( 2000 ) ) ; tributos . setQuantidadeProduto ( java . math . BigDecimal . valueOf ( 2 ) ) ; tributos . setPercentualCredito ( java . math . BigDecimal . valueOf ( 17 ) ) ; com . chronos . calc . resultados . IResu...
org . junit . Assert . assertEquals ( valorTest , valor )
testGetTransform_initiallyReturnsIdentityTransform ( ) { org . eclipse . swt . graphics . Transform transform = new org . eclipse . swt . graphics . Transform ( display ) ; gc . getTransform ( transform ) ; float [ ] elements = new float [ 6 ] ; transform . getElements ( elements ) ; "<AssertPlaceHolder>" ; } getElemen...
org . junit . Assert . assertArrayEquals ( new float [ ] { 1 , 0 , 0 , 1 , 0 , 0 } , elements , 0 )
testSplitIntoBundles ( ) { "<AssertPlaceHolder>" ; } splitIntoBundles ( long , org . talend . components . api . container . RuntimeContainer ) { return java . util . Arrays . asList ( this ) ; }
org . junit . Assert . assertEquals ( 1 , source . splitIntoBundles ( 10 , container ) . size ( ) )
flakyTest ( ) { System . out . println ( ( "Running<sp>JUnit<sp>" + ( junit . runner . Version . id ( ) ) ) ) ; boolean current = jiras . surefire1146 . SimpleParameterizedTest . success ; jiras . surefire1146 . SimpleParameterizedTest . success = ! ( jiras . surefire1146 . SimpleParameterizedTest . success ) ; "<Asser...
org . junit . Assert . assertTrue ( current )
testListPlaceholderTildeSignatureAWS4 ( ) { final ch . cyberduck . core . s3 . Path container = new ch . cyberduck . core . s3 . Path ( "test-us-east-1-cyberduck" , java . util . EnumSet . of ( Path . Type . directory , Path . Type . volume ) ) ; container . attributes ( ) . setRegion ( "us-east-1" ) ; final ch . cyber...
org . junit . Assert . assertTrue ( list . isEmpty ( ) )
testMultigame ( ) { java . io . InputStream is = com . goai . sgf . parse . FullParse . class . getResourceAsStream ( "multigame.sgf" ) ; com . goai . sgf . ebnf . GameTreeCollection collection = com . goai . sgf . parse . SGFParser . parse ( is ) ; "<AssertPlaceHolder>" ; } getGametrees ( ) { return gametrees ; }
org . junit . Assert . assertEquals ( 2 , collection . getGametrees ( ) . size ( ) )
MustInCorrectPrepareWhenKeysGetOrAddThrowException ( ) { info . smart_tools . smartactors . iobject . iobject . IObject query = mock ( info . smart_tools . smartactors . iobject . iobject . IObject . class ) ; info . smart_tools . smartactors . iobject . iobject . IObject document = mock ( info . smart_tools . smartact...
org . junit . Assert . assertTrue ( false )
testGetRoles ( ) { java . util . List roles = lookupDao . getRoles ( ) ; log . debug ( roles ) ; "<AssertPlaceHolder>" ; } size ( ) { return users . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( roles . size ( ) ) > 0 ) )
applyTest ( ) { java . lang . String [ ] [ ] tests = new java . lang . String [ ] [ ] { new java . lang . String [ ] { "{{<sp>''<sp>|<sp>upcase<sp>}}" , "" } , new java . lang . String [ ] { "{{<sp>nil<sp>|<sp>upcase<sp>}}" , "" } , new java . lang . String [ ] { "{{<sp>'Abc'<sp>|<sp>upcase<sp>}}" , "ABC" } , new java ...
org . junit . Assert . assertThat ( rendered , org . hamcrest . CoreMatchers . is ( test [ 1 ] ) )
shouldRecognizeAPure440Note ( ) { final int length = 10000 ; final int samplerate = 44100 ; final long [ ] signal = new long [ length ] ; for ( int j = 0 ; j < length ; j ++ ) { signal [ j ] = ( ( long ) ( ( java . lang . Math . sin ( ( ( ( ( j * 440 ) * 2 ) * ( Math . PI ) ) / samplerate ) ) ) * 32768.0 ) ) ; } final ...
org . junit . Assert . assertTrue ( ( ( ( n . getFrequency ( ) ) > ( 440 - 10 ) ) && ( ( n . getFrequency ( ) ) < ( 440 + 10 ) ) ) )
testDescendants ( ) { owltools . graph . OWLGraphWrapper g = getOntologyWrapper ( ) ; org . semanticweb . owlapi . model . OWLClass c = g . getOWLClass ( "http://purl.obolibrary.org/obo/NCBITaxon_10090" ) ; org . semanticweb . owlapi . model . OWLObject i = g . getOWLObject ( "http://purl.obolibrary.org/obo/MGI_101761"...
org . junit . Assert . assertTrue ( ok )
testCyclic_Int ( ) { int n = benzene . getAtomCount ( ) ; org . openscience . cdk . ringsearch . RingSearch ringSearch = new org . openscience . cdk . ringsearch . RingSearch ( benzene ) ; for ( int i = 0 ; i < n ; i ++ ) { "<AssertPlaceHolder>" ; } } cyclic ( int ) { return cyclic . get ( v ) ; }
org . junit . Assert . assertTrue ( ringSearch . cyclic ( i ) )
testCapabilityUtil ( ) { final byte [ ] result = new byte [ ] { 1 , 2 , 4 , 8 } ; final io . netty . buffer . ByteBuf aggregator = io . netty . buffer . Unpooled . buffer ( ) ; org . opendaylight . protocol . bgp . parser . spi . CapabilityUtil . formatCapability ( 1 , io . netty . buffer . Unpooled . wrappedBuffer ( n...
org . junit . Assert . assertArrayEquals ( result , org . opendaylight . protocol . util . ByteArray . getAllBytes ( aggregator ) )
applyTest ( ) { java . lang . String json = "{<sp>\"n\"<sp>:<sp>[1,2,3,4,5]<sp>}" ; java . lang . String [ ] [ ] tests = new java . lang . String [ ] [ ] { new java . lang . String [ ] { "{{<sp>nil<sp>|<sp>escape<sp>}}" , "" } , new java . lang . String [ ] { "{{<sp>42<sp>|<sp>escape<sp>}}" , "42" } , new java . lang ....
org . junit . Assert . assertThat ( rendered , org . hamcrest . CoreMatchers . is ( test [ 1 ] ) )
isTouchedByRangeWithin ( ) { org . wickedsource . docxstamper . replace . IndexedRun run = new org . wickedsource . docxstamper . replace . IndexedRun ( 5 , 10 , 0 , null ) ; "<AssertPlaceHolder>" ; } isTouchedByRange ( int , int ) { return ( ( ( ( startIndex ) >= globalStartIndex ) && ( ( startIndex ) <= globalEndInde...
org . junit . Assert . assertTrue ( run . isTouchedByRange ( 5 , 7 ) )
isValidGaleraConnection ( ) { try ( java . sql . Connection connection = getNewConnection ( false ) ) { "<AssertPlaceHolder>" ; } } isValid ( int ) { if ( ( currentProtocol ) != null ) { if ( currentProtocol . isMasterConnection ( ) ) { boolean valid = currentProtocol . isValid ( timeout ) ; if ( ( secondaryProtocol ) ...
org . junit . Assert . assertTrue ( connection . isValid ( 0 ) )
testModifyUserZoneCheckXML ( ) { java . lang . String userName = "test" ; java . lang . String zone = "<arg9></arg9>\n" 1 ; org . irods . jargon . core . packinstr . GeneralAdminInp pi = org . irods . jargon . core . packinstr . GeneralAdminInp . instanceForModifyUserZone ( userName , zone ) ; java . lang . String tagO...
org . junit . Assert . assertEquals ( "<arg9></arg9>\n" 3 , sb . toString ( ) , tagOut )
testGetEps ( ) { final org . hipparchus . clustering . DBSCANClusterer < org . hipparchus . clustering . DoublePoint > transformer = new org . hipparchus . clustering . DBSCANClusterer < org . hipparchus . clustering . DoublePoint > ( 2.0 , 5 ) ; "<AssertPlaceHolder>" ; } getEps ( ) { return eps ; }
org . junit . Assert . assertEquals ( 2.0 , transformer . getEps ( ) , 0.0 )
testMakeFileStr ( ) { java . io . FileOutputStream fos = info . michaelkohler . helpertools . io . FileHelper . makeFile ( info . michaelkohler . helpertools . FileHelperTest . targetFile ) ; fos . write ( 12 ) ; fos . close ( ) ; "<AssertPlaceHolder>" ; } makeFile ( java . io . File ) { checkNotNull ( file , "file<sp>...
org . junit . Assert . assertTrue ( info . michaelkohler . helpertools . FileHelperTest . targetFile . exists ( ) )
shouldFindEmptyStream ( ) { java . lang . String name = "something" ; org . apache . deltaspike . data . test . java8 . entity . Simple s = new org . apache . deltaspike . data . test . java8 . entity . Simple ( name ) ; entityManager . persist ( s ) ; java . util . stream . Stream < org . apache . deltaspike . data . ...
org . junit . Assert . assertEquals ( emptyList ( ) , found . collect ( toList ( ) ) )
testRefreshCase ( ) { final org . jbpm . workbench . cm . model . CaseInstanceSummary cis = setupCaseInstance ( ) ; presenter . refreshCase ( ) ; final org . mockito . ArgumentCaptor < org . jbpm . workbench . cm . client . events . CaseRefreshEvent > captor = org . mockito . ArgumentCaptor . forClass ( org . jbpm . wo...
org . junit . Assert . assertEquals ( cis . getCaseId ( ) , captor . getValue ( ) . getCaseId ( ) )
getEncountersByPatient_shouldIncludeVoidedEncountersInTheReturnedListIfIncludedVoidedIsTrue ( ) { org . openmrs . api . EncounterService encounterService = org . openmrs . api . context . Context . getEncounterService ( ) ; java . util . List < org . openmrs . Encounter > encounters = encounterService . getEncountersBy...
org . junit . Assert . assertEquals ( 4 , encounters . size ( ) )
testValidateLimits4 ( ) { java . lang . String string = new java . lang . String ( new int [ ] { 1114111 } , 0 , 1 ) ; boolean result = org . oscm . validator . ADMValidator . containsOnlyValidIdChars ( string ) ; "<AssertPlaceHolder>" ; } containsOnlyValidIdChars ( java . lang . String ) { if ( value == null ) { retur...
org . junit . Assert . assertTrue ( result )
testEncodeOtherType ( ) { java . lang . String str = "Meep!" ; ch . writeOutbound ( str ) ; "<AssertPlaceHolder>" ; } readOutbound ( ) { T message = ( ( T ) ( io . netty . channel . embedded . EmbeddedChannel . poll ( outboundMessages ) ) ) ; if ( message != null ) { io . netty . util . ReferenceCountUtil . touch ( mes...
org . junit . Assert . assertThat ( ch . readOutbound ( ) , org . hamcrest . CoreMatchers . is ( ( ( java . lang . Object ) ( str ) ) ) )
test2 ( ) { com . actiontech . dble . route . function . PartitionByFileMap partition = new com . actiontech . dble . route . function . PartitionByFileMap ( ) ; partition . setMapFile ( "partition-hash-int.txt" ) ; partition . setDefaultNode ( 1 ) ; partition . init ( ) ; java . lang . String idVal = "10020" ; "<Asser...
org . junit . Assert . assertEquals ( true , ( 1 == ( partition . calculate ( idVal ) ) ) )
testSchemaId ( ) { requestHeader . setSchemaId ( "id" ) ; "<AssertPlaceHolder>" ; } getSchemaId ( ) { return schemaId ; }
org . junit . Assert . assertEquals ( "id" , requestHeader . getSchemaId ( ) )
levenshteinDistanceShouldWorkForSmallInputs ( ) { for ( int inputSize = org . mafagafogigante . dungeon . commands . StringDistanceMetricsTest . SMALL_INPUT_MINIMUM_SIZE ; inputSize <= ( org . mafagafogigante . dungeon . commands . StringDistanceMetricsTest . SMALL_INPUT_MAXIMUM_SIZE ) ; inputSize *= 2 ) { java . lang ...
org . junit . Assert . assertEquals ( expectedDistance , distance )
testFindByAction ( ) { java . lang . String action1 = "alpha" ; java . lang . String action2 = "bravo" ; org . oscarehr . common . model . ReportProvider reportProvider1 = new org . oscarehr . common . model . ReportProvider ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelCla...
org . junit . Assert . assertTrue ( true )
testSlackService ( ) { org . gitlab4j . api . services . SlackService slackNotifications = org . gitlab4j . api . JsonUtils . unmarshalResource ( org . gitlab4j . api . services . SlackService . class , "slack-notifications.json" ) ; "<AssertPlaceHolder>" ; } compareJson ( T , java . lang . String ) { java . io . Input...
org . junit . Assert . assertTrue ( org . gitlab4j . api . JsonUtils . compareJson ( slackNotifications , "slack-notifications.json" ) )
TestGetPowerStatePaused ( ) { com . vmware . admiral . compute . kubernetes . entities . pods . ContainerStatus status = new com . vmware . admiral . compute . kubernetes . entities . pods . ContainerStatus ( ) ; status . state = new com . vmware . admiral . compute . kubernetes . entities . pods . ContainerState ( ) ;...
org . junit . Assert . assertEquals ( PowerState . PAUSED , state )
testGetDefaultRoles_nullRolesString ( ) { doReturn ( null ) . when ( spyAppConfigProperties ) . getDefaultRolesString ( ) ; java . util . List < java . lang . String > defaultRoles = spyAppConfigProperties . getDefaultRoles ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return getRecurrences ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , defaultRoles . size ( ) )
testSerialization ( ) { org . jfree . chart . annotations . XYImageAnnotation a1 = new org . jfree . chart . annotations . XYImageAnnotation ( 10.0 , 20.0 , getTestImage ( ) ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOu...
org . junit . Assert . assertEquals ( a1 , a2 )
testCompositeApisApiIdDelete ( ) { org . wso2 . carbon . apimgt . rest . api . store . impl . TestUtil . printTestMethodName ( ) ; java . lang . String apiID = java . util . UUID . randomUUID ( ) . toString ( ) ; org . wso2 . carbon . apimgt . rest . api . store . impl . CompositeApisApiServiceImpl compositeApisApiServ...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testComplement ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 100 , 100 ) ; s . add ( 101 , 101 ) ; org . antlr . v4 . runtime . misc . IntervalSet s2 = org . antlr . v4 . runtime . misc . IntervalSet . of ( 100 , 102 ) ; java . lang . String expecting =...
org . junit . Assert . assertEquals ( expecting , result )
testCopyFromInputViewToOutputView ( ) { org . gradoop . common . model . impl . id . GradoopId inputId = org . gradoop . common . model . impl . id . GradoopId . get ( ) ; java . io . ByteArrayOutputStream outputStream = new java . io . ByteArrayOutputStream ( ) ; inputId . write ( new org . apache . flink . core . mem...
org . junit . Assert . assertEquals ( inputId , copy )
testEscapeHTML ( ) { java . lang . String html = "the<sp>quick<sp>brown<sp><script<sp>type=\"text/javascript\">alert(\'hi\');</script><sp>fox" ; java . lang . String expected = "the<sp>quick<sp>brown<sp>&#60;script<sp>type=&#34;text/javascript&#34;&#62;alert('hi');&#60;/script&#62;<sp>fox" ; "<AssertPlaceHolder>" ; } e...
org . junit . Assert . assertEquals ( expected , edu . illinois . library . cantaloupe . util . StringUtils . escapeHTML ( html ) )
generateTspCertificate ( ) { eu . europa . esig . dss . token . DSSPrivateKeyEntry keyEntry = service . generateTspCertificate ( SignatureAlgorithm . RSA_SHA256 ) ; "<AssertPlaceHolder>" ; eu . europa . esig . dss . x509 . CertificateToken certificate = keyEntry . getCertificate ( ) ; org . bouncycastle . tsp . TSPUtil...
org . junit . Assert . assertNotNull ( keyEntry )
testParseNegativeY ( ) { java . lang . String source = ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323}" ; org . apache . commons . math4 . geometry . euclidean . oned . Vector1D expected = new org . apache . commons . math4 . geometry . euclidean . oned . Cartesian1D ( 1.2323 ) ; org . apache . commons . math4 . geomet...
org . junit . Assert . assertEquals ( expected , actual )
testParseLeafeNameSingleKeyValue ( ) { final java . lang . String distinguishedName = "key=value" ; final java . lang . String value = com . cloud . ldap . DistinguishedNameParser . parseLeafName ( distinguishedName ) ; "<AssertPlaceHolder>" ; } parseLeafName ( java . lang . String ) { if ( distinguishedName . contains...
org . junit . Assert . assertThat ( value , org . hamcrest . Matchers . equalTo ( "value" ) )
testParse ( ) { org . junit . Assume . assumeTrue ( org . apache . tika . parser . strings . StringsParserTest . canRun ( ) ) ; java . lang . String resource = "/test-documents/testOCTET_header.dbase3" ; java . lang . String [ ] content = new java . lang . String [ ] { "CLASSNO" , "TITLE" , "ITEMNO" , "LISTNO" , "LISTD...
org . junit . Assert . assertTrue ( handler . toString ( ) . contains ( word ) )
testBrpPersoonslijstGetterZonderInhoud ( ) { final nl . moderniseringgba . isc . esb . message . brp . generated . TransseksualiteitVerzoekType transseksualiteitVerzoekType = new nl . moderniseringgba . isc . esb . message . brp . generated . TransseksualiteitVerzoekType ( ) ; final nl . moderniseringgba . isc . esb . ...
org . junit . Assert . assertNull ( transseksualiteitVerzoekBericht . getBrpPersoonslijst ( ) )
ackingContinousSeqNumsShouldUpdateLatestValidSeqNum ( ) { state . emit ( newRecordWithSequenceNumber ( "01" ) , false ) ; state . emit ( newRecordWithSequenceNumber ( "02" ) , false ) ; state . emit ( newRecordWithSequenceNumber ( "03" ) , false ) ; state . ack ( "02" ) ; state . ack ( "01" ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertThat ( state . getLatestValidSeqNum ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "02" ) ) )
setsEncoderOnV2Tag ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; com . mpatric . mp3agic . ID3v2 id3v2Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v2TagForTesting ( ) ; com . mpatric . mp3agic . ID3Wrapper wrapper = new com . mpatric ...
org . junit . Assert . assertEquals ( "an<sp>encoder" , id3v2Tag . getEncoder ( ) )
shouldFetchChanges ( ) { in . ashwanthkumar . gocd . slack . Server server = mock ( in . ashwanthkumar . gocd . slack . Server . class ) ; in . ashwanthkumar . gocd . slack . Pipeline pipeline1 = new in . ashwanthkumar . gocd . slack . Pipeline ( ) ; { pipeline1 . buildCause = new in . ashwanthkumar . gocd . slack . Bu...
org . junit . Assert . assertThat ( revisions . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
custom ( ) { final java . util . concurrent . atomic . AtomicReference < java . lang . String > method = new java . util . concurrent . atomic . AtomicReference < java . lang . String > ( ) ; final org . apache . openejb . server . httpd . HttpListenerRegistry registry = org . apache . openejb . loader . SystemInstance...
org . junit . Assert . assertEquals ( "OPTIONS" , method . get ( ) )
moidfyWithExpression01 ( ) { com . ebay . cloud . cms . metadata . model . MetaAttribute attribute = new com . ebay . cloud . cms . metadata . model . MetaAttribute ( false ) ; attribute . setName ( "newCalName" ) ; attribute . setDataType ( DataTypeEnum . STRING ) ; attribute . setExpression ( "$name<sp>+<sp>$archTier...
org . junit . Assert . assertEquals ( ( ( getApp . getFieldValues ( "name" ) . get ( 0 ) . toString ( ) ) + ( getApp . getFieldValues ( "archTier" ) . get ( 0 ) . toString ( ) ) ) , getApp . getFieldValues ( "newCalName" ) . get ( 0 ) )
filterNot_A$Function1_Nil ( ) { com . m3 . scalaflavor4j . ForkJoinParSeq < java . lang . String > target = com . m3 . scalaflavor4j . ForkJoinParSeq . apply ( emptyList ) ; com . m3 . scalaflavor4j . ParSeq < java . lang . String > actual = target . filterNot ( new com . m3 . scalaflavor4j . F1 < java . lang . String ...
org . junit . Assert . assertThat ( actual . toSeq ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 0 ) ) )
testCall1 ( ) { @ eu . toolchain . concurrent . SuppressWarnings ( "unchecked" ) final java . util . concurrent . Callable < java . lang . Object > callable = mock ( java . util . concurrent . Callable . class ) ; doReturn ( executor ) . when ( underTest ) . executor ( ) ; doReturn ( completable ) . when ( underTest ) ...
org . junit . Assert . assertEquals ( future , underTest . call ( callable ) )
testSingleQuotedStringCAProcessor ( ) { org . eclipse . jface . text . contentassist . IContentAssistProcessor processor = fConfig . getContentAssistProcessor ( null , RubySourceConfiguration . STRING_SINGLE ) ; "<AssertPlaceHolder>" ; } getContentAssistProcessor ( org . eclipse . jface . text . source . ISourceViewer ...
org . junit . Assert . assertNull ( processor )
testRegisterEditorDiscardsEditorInstance ( ) { provider . registerEditor ( org . uberfire . client . authz . EditorTreeProviderTest . EDITOR1_ID , org . uberfire . client . authz . EditorTreeProviderTest . EDITOR1_NAME ) ; verify ( iocManager ) . destroyBean ( editorActivityCaptor . capture ( ) ) ; final org . uberfire...
org . junit . Assert . assertEquals ( org . uberfire . client . authz . EditorTreeProviderTest . EDITOR1_ID , editorActivity . getIdentifier ( ) )
shouldThrowProcessorStateExceptionOnOpeningReadOnlyDir ( ) { final java . io . File tmpDir = org . apache . kafka . test . TestUtils . tempDirectory ( ) ; final org . apache . kafka . test . InternalMockProcessorContext tmpContext = new org . apache . kafka . test . InternalMockProcessorContext ( tmpDir , new org . apa...
org . junit . Assert . assertTrue ( tmpDir . setReadOnly ( ) )
returnBrokerDiscountTest ( ) { org . openl . rules . testmethod . TestDataAccessFieldTest . ITestDataAccessField instance = org . openl . rules . TestUtils . create ( org . openl . rules . testmethod . TestDataAccessFieldTest . FILE_NAME , org . openl . rules . testmethod . TestDataAccessFieldTest . ITestDataAccessFiel...
org . junit . Assert . assertEquals ( 2 , result . getNumberOfFailures ( ) )
testResponsesWithMalformedDateHeadersAreNotCacheableUsingSharedPublicCache ( ) { policy = new org . apache . hc . client5 . http . impl . cache . ResponseCachingPolicy ( 0 , true , false , false ) ; request . setHeader ( "Authorization" , "Basic<sp>QWxhZGRpbjpvcGVuIHNlc2FtZQ==" ) ; response . setHeader ( "Cache-Control...
org . junit . Assert . assertFalse ( policy . isResponseCacheable ( request , response ) )
usesCustomHash ( ) { final java . lang . RuntimeException exception = new java . lang . RuntimeException ( ) ; hudson . util . ConsistentHash . Hash < java . lang . String > hashFunction = new hudson . util . ConsistentHash . Hash < java . lang . String > ( ) { public java . lang . String hash ( java . lang . String st...
org . junit . Assert . assertSame ( exception , e )
testFieldsIsSet ( ) { boolean result = fixture . fieldsIsSet ( ) ; "<AssertPlaceHolder>" ; } fieldsIsSet ( ) { return ( fFields ) != null ; }
org . junit . Assert . assertTrue ( result )
testGetCode ( ) { final nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3GemeenteCode gemeenteCode = new nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3GemeenteCode ( "testGetCode" ) ; "<AssertPlaceHolder>" ; } getCode ( ) { return code ; }
org . junit . Assert . assertEquals ( "testGetCode" , gemeenteCode . getCode ( ) )
givenProcess_whenCreatingViaProcessBuilder_shouldSucceed ( ) { java . lang . ProcessBuilder builder = new java . lang . ProcessBuilder ( ) ; if ( org . baeldung . java . shell . JavaProcessUnitIntegrationTest . IS_WINDOWS ) { builder . command ( "cmd.exe" , "/c" , "dir" ) ; } else { builder . command ( "sh" , "-c" , "l...
org . junit . Assert . assertEquals ( 0 , exitCode )
inverseMatching ( ) { dakara . eclipse . plugin . kavi . picklist . InputCommand inputCommand = dakara . eclipse . plugin . kavi . picklist . InputCommand . parse ( "!5,def" ) ; java . util . List < dakara . eclipse . plugin . stringscore . RankedItem < dakara . eclipse . plugin . kavi . picklist . ListRankAndSelectorT...
org . junit . Assert . assertEquals ( 5 , listItems . size ( ) )
failedPolicyCheck ( ) { org . hl7 . v3 . PRPAIN201305UV02 request = new org . hl7 . v3 . PRPAIN201305UV02 ( ) ; gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = new gov . hhs . fha . nhinc . common . nhinccommon . AssertionType ( ) ; org . hl7 . v3 . MCCIIN000002UV01 expectedErrorResponse = ne...
org . junit . Assert . assertSame ( expectedErrorResponse , actualResponse )
whenMultipleResultsVersionCalledForNonExistingTitle_aCollectionWithNoValuesIsReturned ( ) { java . util . List < java . lang . String > isbnCodes = books . entrySet ( ) . stream ( ) . filter ( ( e ) -> e . getValue ( ) . startsWith ( "Spring" ) ) . map ( java . util . Map . Entry :: getKey ) . collect ( java . util . s...
org . junit . Assert . assertTrue ( isbnCodes . isEmpty ( ) )
testMetacardTransform ( ) { ddf . catalog . impl . MockEventProcessor eventAdmin = new ddf . catalog . impl . MockEventProcessor ( ) ; ddf . catalog . impl . MockMemoryProvider provider = new ddf . catalog . impl . MockMemoryProvider ( "Provider" , "Provider" , "v1.0" , "DDF" , new java . util . HashSet < ddf . catalog...
org . junit . Assert . assertNotNull ( content )
testFindByCriteria ( ) { try { qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestDocumentResourceFacadeImp . documentDTO . setHasHumanLabels ( true ) ; qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestDocumentResourceFacadeImp . entityManager . getTransaction ( ) . begin ( ) ; qa . qcri ....
org . junit . Assert . assertEquals ( value , result . get ( 0 ) . getHasHumanLabels ( ) )
notEmpty ( ) { "<AssertPlaceHolder>" ; } newWith ( ) { org . eclipse . collections . api . bag . ImmutableBag < java . lang . String > bag = this . newBag ( ) ; org . eclipse . collections . api . bag . ImmutableBag < java . lang . String > newBag = bag . newWith ( "1" ) ; org . junit . Assert . assertNotEquals ( bag ,...
org . junit . Assert . assertFalse ( this . newWith ( ) . notEmpty ( ) )
testSetLunDescription ( ) { com . iwave . ext . netapp . Lun lun = new com . iwave . ext . netapp . Lun ( com . iwave . ext . netapp . LunTest . server , com . iwave . ext . netapp . LunTest . LUN_PATH ) ; lun . setLunDescription ( "testing" ) ; "<AssertPlaceHolder>" ; } setLunDescription ( java . lang . String ) { net...
org . junit . Assert . assertTrue ( true )
testWriterIsClosed_GoodCase ( ) { java . io . PrintWriter pw = mock ( java . io . PrintWriter . class ) ; org . oscm . operatorsvc . client . commands . GetUserOperationLogCommand comm = spy ( new org . oscm . operatorsvc . client . commands . GetUserOperationLogCommand ( ) ) ; doReturn ( pw ) . when ( comm ) . createP...
org . junit . Assert . assertTrue ( comm . run ( ctx ) )
testExecutePersonSubscribed ( ) { sut = new org . eurekastreams . server . persistence . mappers . db . notification . GetStreamActivitySubscriptionDbMapper ( org . eurekastreams . server . domain . EntityType . PERSON ) ; ( ( org . eurekastreams . server . persistence . mappers . BaseDomainMapper ) ( sut ) ) . setEnti...
org . junit . Assert . assertTrue ( sut . execute ( request ) )
toString_bindingsSubsetOfVarOrder ( ) { final org . eclipse . rdf4j . query . impl . MapBindingSet originalBindingSet = new org . eclipse . rdf4j . query . impl . MapBindingSet ( ) ; originalBindingSet . addBinding ( "x" , org . apache . rya . indexing . pcj . storage . accumulo . BindingSetStringConverterTest . VF . c...
org . junit . Assert . assertEquals ( expected , bindingSetString )
whenSetToTakesValues ( ) { final org . tessell . tests . model . dsl . BooleanProperty b = booleanProperty ( "b" , false ) ; final org . tessell . gwt . dom . client . StubElement e = new org . tessell . gwt . dom . client . StubElement ( ) ; binder . when ( b ) . is ( true ) . set ( textOf ( e ) ) . to ( "t" ) ; b . s...
org . junit . Assert . assertThat ( e . getInnerText ( ) , org . hamcrest . CoreMatchers . is ( "t" ) )
testNewMultimapWith ( ) { com . gs . collections . api . tuple . Pair < java . lang . Integer , java . lang . String > pair1 = com . gs . collections . impl . tuple . Tuples . pair ( 1 , "One" ) ; com . gs . collections . api . tuple . Pair < java . lang . Integer , java . lang . String > pair2 = com . gs . collections...
org . junit . Assert . assertEquals ( expected , actual )
testGetBytesOffset ( ) { final zmq . Msg msg = initMsg ( ) ; final byte [ ] dst = new byte [ 6 ] ; msg . getBytes ( 3 , dst , 1 , 2 ) ; "<AssertPlaceHolder>" ; } getBytes ( int , byte [ ] , int , int ) { int count = java . lang . Math . min ( len , ( ( size ) - index ) ) ; if ( ( data ) == null ) { java . nio . ByteBuf...
org . junit . Assert . assertThat ( dst , org . hamcrest . CoreMatchers . is ( new byte [ ] { 0 , 3 , 4 , 0 , 0 , 0 } ) )
test37 ( ) { net . pms . formats . SUP sUP0 = new net . pms . formats . SUP ( ) ; boolean b1 = net . pms . formats . FormatFactory . addFormat ( sUP0 ) ; "<AssertPlaceHolder>" ; } addFormat ( net . pms . formats . Format ) { if ( format == null ) { throw new java . lang . NullPointerException ( "format<sp>cannot<sp>be<...
org . junit . Assert . assertTrue ( ( b1 == true ) )
iterate_loop ( ) { final org . exist . xquery . value . EmptySequence emptySequence = ( ( org . exist . xquery . value . EmptySequence ) ( Sequence . EMPTY_SEQUENCE ) ) ; final org . exist . xquery . value . SequenceIterator it = emptySequence . iterate ( ) ; int count = 0 ; while ( it . hasNext ( ) ) { it . nextItem (...
org . junit . Assert . assertEquals ( 0 , count )
shouldThrowExceptionWhenUsedMethodScopeInjectionOnArquillianResource ( ) { java . lang . reflect . Method resourceMethod = org . jboss . arquillian . test . impl . enricher . resource . ArquillianResourceTestEnricherTestCase . ObjectClass3 . class . getMethod ( "testWithInjectionQualifier" , java . lang . Object . clas...
org . junit . Assert . assertEquals ( org . jboss . arquillian . test . impl . enricher . resource . IllegalStateException . class , cause . getClass ( ) )
testGetHandsComp ( ) { int [ ] expected = new int [ ] { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 2 , 1 , 1 , 1 , 1 , 1 } ; "<AssertPlaceHolder>" ; } getHandsComp ( ) { return handsComp ; }
org . junit . Assert . assertArrayEquals ( expected , actual . getHandsComp ( ) )
testRevokeAllPrivilege ( ) { java . lang . String roleName = "r1" ; org . apache . sentry . provider . db . generic . service . persistent . PrivilegeObject allPrivilege = new org . apache . sentry . provider . db . generic . service . persistent . PrivilegeObject . Builder ( queryPrivilege ) . setAction ( SearchConsta...
org . junit . Assert . assertEquals ( com . google . common . collect . Sets . newHashSet ( ) , sentryStore . getPrivilegesByRole ( org . apache . sentry . provider . db . generic . service . persistent . TestPrivilegeOperatePersistence . SEARCH , com . google . common . collect . Sets . newHashSet ( roleName ) ) )
testMaxTag ( ) { io . protostuff . runtime . RuntimeSchema < io . protostuff . runtime . RuntimeSchemaTagTest . MaxTag > schema = io . protostuff . runtime . RuntimeSchema . createFrom ( io . protostuff . runtime . RuntimeSchemaTagTest . MaxTag . class ) ; "<AssertPlaceHolder>" ; } createFrom ( java . lang . Class ) { ...
org . junit . Assert . assertNotNull ( schema )
testLocalVariableLevelSuppression ( ) { net . sourceforge . pmd . Report rpt = new net . sourceforge . pmd . Report ( ) ; runTestFromString ( net . sourceforge . pmd . lang . apex . SuppressWarningsTest . TEST8 , new net . sourceforge . pmd . lang . apex . FooRule ( ) , rpt , net . sourceforge . pmd . lang . LanguageRe...
org . junit . Assert . assertEquals ( 1 , rpt . size ( ) )
testOpschonenVoiscBerichtenNullDate ( ) { final java . util . Date ouderDan = null ; final int aantalOpgeschoond = subject . opschonenVoiscBerichten ( ouderDan ) ; org . mockito . Mockito . verifyNoMoreInteractions ( voiscDatabase , voiscConfiguratie , voiscMailbox , voiscQueue ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 0 , aantalOpgeschoond )
ensureLazy ( ) { org . eclipse . collections . impl . lazy . CompositeIterable < java . lang . Integer > iterables = new org . eclipse . collections . impl . lazy . CompositeIterable ( ) ; java . util . List < java . lang . Integer > expected = org . eclipse . collections . impl . list . Interval . oneTo ( 5 ) ; iterab...
org . junit . Assert . assertEquals ( expected , iterables . take ( expected . size ( ) ) . toList ( ) )
shouldReadIscChildIdentityXml ( ) { net . ripe . rpki . commons . provisioning . x509 . ProvisioningIdentityCertificate childCert = extractCarolIdentityCert ( ) ; "<AssertPlaceHolder>" ; } extractCarolIdentityCert ( ) { java . lang . String childIdXml = com . google . common . io . Files . toString ( new java . io . Fi...
org . junit . Assert . assertNotNull ( childCert )
testIsolated_NonCyclic ( ) { int [ ] [ ] g = new int [ ] [ ] { new int [ ] { 1 } , new int [ ] { 0 , 2 } , new int [ ] { 1 , 3 } , new int [ ] { 2 , 4 } , new int [ ] { 3 } } ; org . openscience . cdk . ringsearch . CyclicVertexSearch search = new org . openscience . cdk . ringsearch . RegularCyclicVertexSearch ( g ) ;...
org . junit . Assert . assertThat ( search . cyclic ( ) , org . hamcrest . CoreMatchers . is ( new int [ 0 ] ) )
testContainsWithIn ( ) { au . gov . ga . earthsci . core . temporal . BigTime start = new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 1000 ) ) ; au . gov . ga . earthsci . core . temporal . BigTime end = new au . gov . ga . earthsci . core . temporal . BigTime ( java . ma...
org . junit . Assert . assertTrue ( period1 . contains ( test ) )
testAdvanced ( ) { org . eclipse . swt . graphics . GC gc = new org . eclipse . swt . graphics . GC ( display , org . eclipse . swt . SWT . NONE ) ; gc . setAdvanced ( true ) ; "<AssertPlaceHolder>" ; } getAdvanced ( ) { checkDisposed ( ) ; return advanced ; }
org . junit . Assert . assertTrue ( gc . getAdvanced ( ) )
testNoAuthZLlapClusterInfo ( ) { java . lang . String instanceId1 = java . util . UUID . randomUUID ( ) . toString ( ) ; miniHS2_1 . start ( getConfOverlay ( instanceId1 ) ) ; java . sql . Connection hs2Conn = getConnection ( miniHS2_1 . getJdbcURL ( ) , "user1" ) ; boolean caughtException = false ; java . sql . Statem...
org . junit . Assert . assertEquals ( false , caughtException )
checkDoesNotEquivalateToSeveralPaWithoutBroadcasts ( ) { org . atlasapi . media . entity . Item item = new org . atlasapi . media . entity . Item ( ) ; item . setPublisher ( Publisher . ARQIVA ) ; item . setCanonicalUri ( "target" ) ; java . util . List < org . atlasapi . equiv . results . scores . ScoredCandidates < o...
org . junit . Assert . assertTrue ( ( ( equivalenceResult . strongEquivalences ( ) . values ( ) . size ( ) ) == 1 ) )
testSetDefaultWebEngine ( ) { com . lynden . gmapsfx . javascript . JavascriptRuntime . setDefaultWebEngine ( mockWebEngine ) ; "<AssertPlaceHolder>" ; } setDefaultWebEngine ( com . lynden . gmapsfx . javascript . IWebEngine ) { com . lynden . gmapsfx . javascript . JavascriptRuntime . engine = e ; }
org . junit . Assert . assertEquals ( mockWebEngine , JavascriptRuntime . engine )
decode ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( data ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; fixture = new com . flagstone . transform . action . ActionData ( decoder . read...
org . junit . Assert . assertArrayEquals ( data , fixture . getData ( ) )
testGetValueWithRawValue ( ) { when ( view . getValue ( ) ) . thenReturn ( "value" ) ; final java . lang . String expected = "\"value\"" ; final java . lang . String actual = stringSelector . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return rootPath ; }
org . junit . Assert . assertEquals ( expected , actual )
saveDescriptorWhenIAmOwner ( ) { org . xwiki . wiki . descriptor . WikiDescriptor oldDescriptor = mock ( org . xwiki . wiki . descriptor . WikiDescriptor . class ) ; when ( oldDescriptor . getId ( ) ) . thenReturn ( "wikiId" ) ; when ( oldDescriptor . getOwnerId ( ) ) . thenReturn ( "mainWiki:XWiki.User" ) ; when ( wik...
org . junit . Assert . assertTrue ( result )
should_be_building_before_post_production_state ( ) { com . groupon . jenkins . dynamic . build . CurrentBuildState currentBuildState = new com . groupon . jenkins . dynamic . build . CurrentBuildState ( "NOT_STARTED" , hudson . model . Result . NOT_BUILT ) ; "<AssertPlaceHolder>" ; } isBuilding ( ) { return ( state ) ...
org . junit . Assert . assertTrue ( currentBuildState . isBuilding ( ) )
testBytes1 ( ) { java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; org . apache . wss4j . common . util . CRLFOutputStream crlfOutputStream = new org . apache . wss4j . common . util . CRLFOutputStream ( baos ) ; crlfOutputStream . write ( "aaaaaaaaaa" . getBytes ( ) ) ; crlfOutputStr...
org . junit . Assert . assertArrayEquals ( "aaaaaaaaaa" . getBytes ( ) , baos . toByteArray ( ) )
return_empty_set_apache_commons ( ) { @ com . levelup . java . collections . SuppressWarnings ( "unchecked" ) java . util . Set < java . lang . String > emptySet = org . apache . commons . collections . SetUtils . EMPTY_SET ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( emptySet . isEmpty ( ) )
testGetHandler ( ) { jerseyServer . start ( ) ; com . englishtown . vertx . jersey . JerseyHandler handler = jerseyServer . getHandler ( ) ; "<AssertPlaceHolder>" ; } getHandler ( ) { return jerseyHandler ; }
org . junit . Assert . assertEquals ( jerseyHandler , handler )
testRemoveClusterDefaultCluster ( ) { com . orientechnologies . orient . core . metadata . schema . OClass clazz = db . getMetadata ( ) . getSchema ( ) . createClass ( "Test" , 1 , null ) ; clazz . addCluster ( "TestOneMore" ) ; clazz . removeClusterId ( db . getClusterIdByName ( "Test" ) ) ; db . getMetadata ( ) . get...
org . junit . Assert . assertEquals ( clazz . getDefaultClusterId ( ) , db . getClusterIdByName ( "TestOneMore" ) )
shouldRejectNullClustersObject ( ) { org . openstack . atlas . api . validation . results . ValidatorResult result = clustersValidator . validate ( null , HttpRequestType . POST ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . openstack . atlas . api . validation . results . ValidatorResult , java . lang . Enum ) { ...
org . junit . Assert . assertFalse ( resultMessage ( result , HttpRequestType . POST ) , result . passedValidation ( ) )
testMaskAndShifts ( ) { inra . ijpb . morphology . Strel strel = ShiftedCross3x3Strel . RIGHT ; int [ ] [ ] shifts = strel . getShifts ( ) ; int [ ] [ ] mask = strel . getMask ( ) ; int [ ] offset = strel . getOffset ( ) ; for ( int s = 0 ; s < ( shifts . length ) ; s ++ ) { int [ ] shift = shifts [ s ] ; int indX = ( ...
org . junit . Assert . assertEquals ( 255 , mask [ indY ] [ indX ] )
testBuildDBNameNewEncoding ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIPostgreSQLSink.buildDBName]" ) ) + "--------<sp>The<sp>schema<sp>name<sp>is<sp>equals<sp>to<sp>the<sp>encoding<sp>of<sp>the<sp>notified/defaulted<sp>service" ) ) ; java . lang . String attrPersistence = null ; java . lang . String ba...
org . junit . Assert . assertEquals ( expectedDBName , builtSchemaName )
testDateMinusTimestampValues ( ) { java . lang . String sqlText = "values<sp>date('2011-06-04')<sp>-<sp>timestamp('2011-06-05',<sp>'05:06:00')" ; java . sql . ResultSet rs = com . splicemachine . derby . impl . sql . execute . operations . SimpleDateArithmeticIT . spliceClassWatcher . executeQuery ( sqlText ) ; java . ...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testGetBusinessObjectDataAttributesSubPartitionValuesCount3 ( ) { org . finra . herd . model . api . xml . BusinessObjectDataKey businessObjectDataKey = new org . finra . herd . model . api . xml . BusinessObjectDataKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION , PARTITIO...
org . junit . Assert . assertEquals ( businessObjectDataAttributeKeys , result )