input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testLiteral ( ) { java . lang . String noSubst = "hello<sp>world" ; java . lang . String result = ch . qos . logback . core . util . OptionHelper . substVars ( noSubst , context ) ; "<AssertPlaceHolder>" ; } substVars ( java . lang . String , ch . qos . logback . core . spi . PropertyContainer ) { return ch . qos . log...
org . junit . Assert . assertEquals ( noSubst , result )
existingUserCodeExceptionsNotWrapped ( ) { org . apache . beam . sdk . util . UserCodeException existing = org . apache . beam . sdk . util . UserCodeException . wrap ( new java . io . IOException ( ) ) ; org . apache . beam . sdk . util . UserCodeException wrapped = org . apache . beam . sdk . util . UserCodeException...
org . junit . Assert . assertEquals ( existing , wrapped )
implementGuestNetwork ( ) { if ( ( _context . containsKey ( "enable_console_output" ) ) && ( _context . get ( "enable_console_output" ) . equals ( "true" ) ) ) { System . out . println ( "untagged" 0 ) ; System . out . println ( "---------------------------------------------------" ) ; } _resource . configure ( "PaloAl...
org . junit . Assert . assertTrue ( answer . getResult ( ) )
testGeneratedIdSequenceNotSupported ( ) { com . j256 . ormlite . table . TableInfo < com . j256 . ormlite . db . GeneratedIdSequence , java . lang . Integer > tableInfo = new com . j256 . ormlite . table . TableInfo < com . j256 . ormlite . db . GeneratedIdSequence , java . lang . Integer > ( databaseType , com . j256 ...
org . junit . Assert . assertEquals ( 2 , tableInfo . getFieldTypes ( ) . length )
testSerialization ( ) { org . jfree . data . xy . DefaultHighLowDataset d1 = new org . jfree . data . xy . DefaultHighLowDataset ( "Series<sp>1" , new java . util . Date [ ] { new java . util . Date ( 123L ) } , new double [ ] { 1.2 } , new double [ ] { 3.4 } , new double [ ] { 5.6 } , new double [ ] { 7.8 } , new doub...
org . junit . Assert . assertEquals ( d1 , d2 )
getOriginalPrintStreamReturnsOriginalPrintStream ( ) { perContextPrintStream = new uk . org . lidalia . sysoutslf4j . system . PerContextPrintStream ( System . err ) ; "<AssertPlaceHolder>" ; } getOriginalPrintStream ( ) { final java . io . PrintStream result ; final java . util . concurrent . locks . Lock readLock = s...
org . junit . Assert . assertSame ( System . err , perContextPrintStream . getOriginalPrintStream ( ) )
testSetPassword ( ) { org . apache . cayenne . tools . DbGeneratorTask task = new org . apache . cayenne . tools . DbGeneratorTask ( ) ; task . setPassword ( "xyz" ) ; "<AssertPlaceHolder>" ; } setPassword ( java . lang . String ) { this . password = password ; }
org . junit . Assert . assertEquals ( "xyz" , task . password )
testReadPeerReviewSchemaValidate ( ) { org . orcid . jaxb . test . utils . OrcidTranslator < org . orcid . jaxb . model . v3 . rc2 . record . PeerReview > t = org . orcid . jaxb . test . utils . OrcidTranslator . forSchema ( SchemaVersion . V3_0RC2_PEER_REVIEW ) ; java . io . Reader reader = new java . io . InputStream...
org . junit . Assert . assertNotNull ( p )
confirmIfUnitExists_NullId ( ) { org . oscm . ui . dialog . mp . userGroups . ManageGroupCtrl mgc = new org . oscm . ui . dialog . mp . userGroups . ManageGroupCtrl ( ) { @ org . oscm . ui . dialog . mp . userGroups . Override public java . lang . String getSelectedGroupId ( ) { return null ; } } ; mgc . setManageGroup...
org . junit . Assert . assertEquals ( BaseBean . OUTCOME_REFRESH , result )
isOwnerWithGuestOwnerForOtherUsers ( ) { org . phenotips . data . Patient p = mock ( org . phenotips . data . Patient . class ) ; org . phenotips . data . permissions . internal . EntityAccessHelper h = mock ( org . phenotips . data . permissions . internal . EntityAccessHelper . class ) ; org . phenotips . data . perm...
org . junit . Assert . assertFalse ( pa . isOwner ( ) )
testExtractURIprefix1 ( ) { java . lang . String extractedPrefix = org . sbolstandard . core2 . URIcompliance . extractURIprefix ( uri8 ) ; "<AssertPlaceHolder>" ; } extractURIprefix ( java . net . URI ) { java . lang . String URIstr = objURI . toString ( ) ; java . util . regex . Matcher m = org . sbolstandard . core2...
org . junit . Assert . assertNull ( extractedPrefix )
nullBulkReply ( ) { java . io . InputStream is = new java . io . ByteArrayInputStream ( "$-1\r\n" . getBytes ( ) ) ; java . lang . String response = ( ( java . lang . String ) ( redis . clients . jedis . Protocol . read ( new redis . clients . jedis . util . RedisInputStream ( is ) ) ) ) ; "<AssertPlaceHolder>" ; } rea...
org . junit . Assert . assertNull ( response )
testHead ( ) { javax . ws . rs . client . Invocation . Builder request = org . jboss . resteasy . test . rx . RxCompletionStageServerAsyncTest . client . target ( org . jboss . resteasy . test . rx . RxCompletionStageServerAsyncTest . generateURL ( "/head/string" ) ) . request ( ) ; javax . ws . rs . core . Response re...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
shouldOccupiedHypercubesReturnZeroIfThereAreNotOccupiedHypercubes ( ) { org . uma . jmetal . util . AdaptiveGrid < org . uma . jmetal . solution . DoubleSolution > adaptiveGrid ; int bisections = 5 ; int objectives = 2 ; adaptiveGrid = new org . uma . jmetal . util . AdaptiveGrid ( bisections , objectives ) ; int [ ] h...
org . junit . Assert . assertEquals ( 0 , adaptiveGrid . occupiedHypercubes ( ) )
testLogout ( ) { ctx . logout ( ) ; "<AssertPlaceHolder>" ; } getSubject ( ) { return subject ; }
org . junit . Assert . assertSame ( subject , ctx . getSubject ( ) )
validate_requiredFieldsAreSet_returnTrue ( ) { request . setConnectorId ( 42 ) ; request . setIdTag ( "xxx" ) ; request . setMeterStart ( 42 ) ; request . setTimestamp ( java . util . Calendar . getInstance ( ) ) ; boolean isValid = request . validate ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; }
org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( true ) )
shouldGetEmptyPropertiesFromTimestampWhenNoTimestampPropertyInGroup ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = new uk . gov . gchq . gaffer . store . schema . Schema . Builder ( ) . json ( uk . gov . gchq . gaffer . commonutil . StreamUtil . schemas ( getClass ( ) ) ) . build ( ) ; serialis...
org . junit . Assert . assertEquals ( 0 , properties . size ( ) )
testOrFails ( ) { buildRule . executeTarget ( "orfails" ) ; "<AssertPlaceHolder>" ; } getProject ( ) { return project ; }
org . junit . Assert . assertNull ( buildRule . getProject ( ) . getProperty ( "orfails" ) )
parseApiVersion_empty ( ) { javax . xml . soap . SOAPPart part = mock ( javax . xml . soap . SOAPPart . class ) ; javax . xml . soap . SOAPEnvelope envelope = mock ( javax . xml . soap . SOAPEnvelope . class ) ; doReturn ( envelope ) . when ( part ) . getEnvelope ( ) ; doReturn ( part ) . when ( message ) . getSOAPPart...
org . junit . Assert . assertEquals ( "" , result )
testVechToVecLeft ( ) { double [ ] [ ] n = new double [ ] [ ] { new double [ ] { 6.0 , 8.0 , 6.0 , 8.0 } , new double [ ] { 8.0 , 9.0 , 7.0 , 9.0 } , new double [ ] { 6.0 , 7.0 , 12.0 , 16.0 } , new double [ ] { 8.0 , 9.0 , 16.0 , 18.0 } } ; double [ ] [ ] n1 = edu . cmu . tetrad . util . MatrixUtils . vec ( n ) ; doub...
org . junit . Assert . assertTrue ( edu . cmu . tetrad . util . MatrixUtils . equals ( n4 , n1 ) )
testGetLastTaskTime_2 ( ) { org . audit4j . core . util . StopWatch fixture = new org . audit4j . core . util . StopWatch ( "" ) ; fixture . setKeepTaskList ( true ) ; fixture . start ( "" ) ; halt ( ) ; fixture . stop ( ) ; long result = fixture . getLastTaskTime ( ) ; "<AssertPlaceHolder>" ; } getLastTaskTime ( ) { i...
org . junit . Assert . assertNotNull ( result )
testAddAdapterUsesDoesNotUseCachingBehaviorByDefault ( ) { com . picocontainer . DefaultPicoContainer pico = new com . picocontainer . DefaultPicoContainer ( new com . picocontainer . behaviors . OptInCaching ( ) . wrap ( new com . picocontainer . injectors . ConstructorInjection ( ) ) ) ; pico . addAdapter ( new com ....
org . junit . Assert . assertEquals ( com . picocontainer . adapters . InstanceAdapter . class , foo . getClass ( ) )
getNewDefinitionsExistingNotDeclared ( ) { final org . obeonetwork . m2doc . genconf . Generation generation = GenconfPackage . eINSTANCE . getGenconfFactory ( ) . createGeneration ( ) ; final org . obeonetwork . m2doc . genconf . StringDefinition stringDefinition = GenconfPackage . eINSTANCE . getGenconfFactory ( ) . ...
org . junit . Assert . assertEquals ( 0 , definitions . size ( ) )
test_withCurrencyScale_int_same ( ) { org . joda . money . BigMoney test = org . joda . money . TestBigMoney . GBP_2_34 . withCurrencyScale ( ) ; "<AssertPlaceHolder>" ; } withCurrencyScale ( ) { return withScale ( currency . getDecimalPlaces ( ) , RoundingMode . UNNECESSARY ) ; }
org . junit . Assert . assertSame ( org . joda . money . TestBigMoney . GBP_2_34 , test )
testIsEmpty_NoPayload ( ) { pubMessage = new net . xenqtt . message . PubMessage ( net . xenqtt . message . QoS . AT_LEAST_ONCE , false , "my<sp>topic" , 123 , new byte [ 0 ] ) ; message = new net . xenqtt . client . PublishMessage ( channelManager , channel , pubMessage ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { retu...
org . junit . Assert . assertTrue ( message . isEmpty ( ) )
testGetCacheKeyNullValue ( ) { org . apache . druid . query . filter . InDimFilter inDimFilter = org . apache . druid . query . filter . InDimFilterSerDesrTest . mapper . readValue ( "{\"type\":\"in\",\"dimension\":\"dimTest\",\"values\":[null]}" , org . apache . druid . query . filter . InDimFilter . class ) ; "<Asser...
org . junit . Assert . assertNotNull ( inDimFilter . getCacheKey ( ) )
testStopWithoutStart ( ) { final org . apache . druid . query . lookup . KafkaLookupExtractorFactory factory = new org . apache . druid . query . lookup . KafkaLookupExtractorFactory ( cacheManager , org . apache . druid . query . lookup . KafkaLookupExtractorFactoryTest . TOPIC , org . apache . druid . query . lookup ...
org . junit . Assert . assertTrue ( factory . close ( ) )
testResizeDeleteData ( ) { net . openhft . lang . io . DirectByteBufferBytes buffer = new net . openhft . lang . io . DirectByteBufferBytes ( 16 ) ; for ( int i = 1 ; ( buffer . position ( ) ) < ( buffer . capacity ( ) ) ; i ++ ) { buffer . writeInt ( i ) ; } buffer . resize ( 32 , true , false ) . position ( 0L ) ; fo...
org . junit . Assert . assertEquals ( 0 , buffer . readInt ( ) )
asIntsInsertPositionInOriginalListIsRespected ( ) { org . tessell . tests . model . properties . ListProperty < java . lang . Integer > ints = p . as ( new org . tessell . tests . model . properties . ListPropertyTest . StringToElementConverter ( ) ) ; p . set ( joist . util . Copy . list ( "3" ) ) ; p . add ( 0 , "2" ...
org . junit . Assert . assertThat ( ints . get ( ) , org . hamcrest . Matchers . contains ( 2 , 3 ) )
testWithFixedVocabulary ( ) { final java . lang . String [ ] _words = new java . lang . String [ ] { "foo" , "bar" , "baz" , "test" , "alpha" , "beta" , "phi" , "rho" } ; final java . util . List < java . lang . String > words = new java . util . ArrayList < java . lang . String > ( ) ; for ( final java . lang . String...
org . junit . Assert . assertEquals ( numOfDocs , countAll ( ) )
testReplaceWithSimpleField_subject_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 . getElementsByTagNam...
org . junit . Assert . assertEquals ( j , i )
asakusafw_version_override ( ) { provider . withProject ( com . asakusafw . utils . gradle . PropertyConfigurator . of ( "asakusafw.version" , "TESTING" ) ) ; com . asakusafw . integration . AsakusaProject project = provider . newInstance ( "testing" ) ; "<AssertPlaceHolder>" ; } property ( com . asakusafw . directio ....
org . junit . Assert . assertThat ( project . property ( "asakusafw.version" ) , is ( "TESTING" ) )
should_find_by_like_non_string ( ) { createSimple ( "testFindAll1" , 1 ) ; createSimple ( "testFindAll2" , 2 ) ; com . ctp . cdi . query . test . domain . Simple example = new com . ctp . cdi . query . test . domain . Simple ( "test" ) ; example . setCounter ( 1 ) ; java . util . List < com . ctp . cdi . query . test ....
org . junit . Assert . assertEquals ( 1 , find . size ( ) )
uuids ( ) { java . util . List < java . lang . String > uuids = org . lightcouch . tests . DBServerTest . dbClient . context ( ) . uuids ( 10 ) ; "<AssertPlaceHolder>" ; } uuids ( long ) { final java . lang . String uri = java . lang . String . format ( "%s_uuids?count=%d" , dbc . getBaseUri ( ) , count ) ; final com ....
org . junit . Assert . assertThat ( uuids . size ( ) , org . hamcrest . CoreMatchers . is ( 10 ) )
getNameTest ( ) { for ( Map . Entry < java . lang . reflect . Field , jdk . vm . ci . meta . ResolvedJavaField > e : fields . entrySet ( ) ) { java . lang . String expected = e . getKey ( ) . getName ( ) ; java . lang . String actual = e . getValue ( ) . getName ( ) ; "<AssertPlaceHolder>" ; } }
org . junit . Assert . assertEquals ( expected , actual )
testMultipleUnion03 ( ) { java . lang . String query = "Compute[@fqdns=\"slc4-0003.ebay.com\"]{*}." + ( ( "(<sp><VPool>parentCluster[@_oid=\"CLguf6sdle\"]<sp>" + "||<sp>activeManifestRef[@_oid=\"B-N-D-1.20111108154904.0-unknown\"]<sp>" ) + "||<sp>activeManifestCur[@_oid=\"Black-Pearl-1.20111103221326.0-unknown\"])" ) ;...
org . junit . Assert . assertEquals ( 1 , result . getEntities ( ) . size ( ) )
noNullElements_nullAtEndArrayWithName_fail ( ) { net . sf . qualitycheck . exception . IllegalNullElementsException actual = null ; try { net . sf . qualitycheck . Check . noNullElements ( new java . lang . Integer [ ] { 1 , 2 , 3 , 4 , null } , "obj" ) ; } catch ( final net . sf . qualitycheck . exception . IllegalNul...
org . junit . Assert . assertEquals ( expected , actual . getMessage ( ) )
failoverRetry ( ) { try ( java . sql . Connection connection = java . sql . DriverManager . getConnection ( ( ( ( ( ( ( ( ( ( "jdbc:mariadb:failover//" + ( ( hostname ) != null ? hostname : "localhost" ) ) + ":" ) + ( port ) ) + "/" ) + ( database ) ) + "?user=" ) + ( username ) ) + ( ( password ) != null ? "&password=...
org . junit . Assert . assertTrue ( connection . isClosed ( ) )
deleteBodyOfAnnotation ( ) { com . github . anno4j . model . Annotation annotation = anno4j . createObject ( com . github . anno4j . model . Annotation . class ) ; annotation . setCreated ( "2015-01-28T12:00:00Z" ) ; annotation . setGenerated ( "2015-01-28T12:00:00Z" ) ; com . github . anno4j . model . impl . DeletionT...
org . junit . Assert . assertEquals ( null , annotationWithoutBody . getBodies ( ) . iterator ( ) . next ( ) )
testWriteTo ( ) { final java . io . StringWriter sink = new java . io . StringWriter ( ) ; final java . io . PrintWriter writer = new java . io . PrintWriter ( sink ) ; final com . allanbank . mongodb . client . metrics . basic . BasicServerMetricsListener metrics = new com . allanbank . mongodb . client . metrics . ba...
org . junit . Assert . assertThat ( sink . toString ( ) , org . hamcrest . Matchers . is ( "" ) )
insertSortTest ( ) { int [ ] input = new int [ ] { 3 , 31 , 43 , 78 , 8 , 11 , 20 , 29 , 65 , 15 } ; int [ ] output = new int [ ] { 3 , 8 , 11 , 15 , 20 , 29 , 31 , 43 , 65 , 78 } ; chapter3 . insertionsort . InsertionSort insert = new chapter3 . insertionsort . SeunghoInsertionSort ( ) ; int [ ] result = insert . sort...
org . junit . Assert . assertArrayEquals ( result , output )
lookForUnexistingService ( ) { when ( request . getPath ( ) ) . thenReturn ( "/unexisting" ) ; final org . sentilo . platform . server . handler . AbstractHandler result = locator . lookup ( request ) ; "<AssertPlaceHolder>" ; verify ( request , times ( 0 ) ) . setPathParts ( any ( java . lang . String . class ) , any ...
org . junit . Assert . assertNull ( result )
importTrustCertificateStrings_throwCertificateEncodingExceptionWhileCalculateSha1 ( ) { when ( certificate . getEncoded ( ) ) . thenThrow ( new java . security . cert . CertificateEncodingException ( "Throwing<sp>exception<sp>for<sp>test" ) ) ; java . security . cert . Certificate certAdded = underTest . importTrustCer...
org . junit . Assert . assertNotNull ( certAdded )
testDisposeBrowser ( ) { org . eclipse . swt . browser . BrowserFunction function = new org . eclipse . swt . browser . BrowserFunction ( browser , org . eclipse . swt . browser . BrowserFunction_Test . FUNC ) ; browser . dispose ( ) ; "<AssertPlaceHolder>" ; } isDisposed ( ) { org . eclipse . swt . widgets . Control c...
org . junit . Assert . assertTrue ( function . isDisposed ( ) )
iteratesStreamEventsFromEndToStartWithLargeBatchSize ( ) { final java . lang . String stream = generateStreamName ( ) ; eventstore . appendToStream ( stream , ExpectedVersion . NO_STREAM , newTestEvents ( 10 ) ) . join ( ) ; java . util . Iterator < com . github . msemys . esjc . ResolvedEvent > iterator = eventstore ....
org . junit . Assert . assertThat ( iterator , hasSize ( 10 ) )
testFrom ( ) { try { org . talend . dq . dbms . DbmsLanguage dbms = getMysqlDbmsLanguage ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } } from ( ) { return surroundWithSpaces ( "FROM" ) ; }
org . junit . Assert . assertNotNull ( dbms . from ( ) )
test2PlainJarWithAdditionalNonMaven ( ) { final org . eclipse . packagedrone . repo . channel . ArtifactInformation a1 = makeArtifact ( "a1" , null , "foobar" , null ) ; final java . util . Map < java . lang . String , org . eclipse . packagedrone . repo . channel . ArtifactInformation > map = makeMap ( a1 ) ; { final ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testPcrMatchesConstantPolicyFail ( ) { test . policy . Pcr expected = new test . policy . PcrSha1 ( 0 , "aabbccddeeaabbccddeeaabbccddeeaabbccddee" ) ; test . policy . Pcr actual = new test . policy . PcrSha1 ( 0 , "aabbccddeeaabbccddeeaabbccddeeaabbccdd00" ) ; test . policy . PcrMatchesConstant policy = new test . poli...
org . junit . Assert . assertFalse ( report . isTrusted ( ) )
findsLongestNameByReduce ( ) { com . insightfullogic . java8 . examples . chapter1 . Artist artist = com . insightfullogic . java8 . answers . chapter5 . com . insightfullogic . java8 . answers . chapter5 . LongestName . byReduce ( com . insightfullogic . java8 . examples . chapter1 . SampleData . getThreeArtists ( ) )...
org . junit . Assert . assertEquals ( SampleData . johnColtrane , artist )
deveObterCpfComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados retornoConsultaCadastroDados = new com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados ( ) ; retornoConsultaCadastroDados . setCpf ( "24868707...
org . junit . Assert . assertEquals ( "24868707841" , retornoConsultaCadastroDados . getCpf ( ) )
testRequestUriAbsolute ( ) { boolean isValidUri = servlet . isUriValid ( com . adobe . acs . commons . dispatcher . impl . PermissionSensitiveCacheServletTest . TEST_PAGE ) ; "<AssertPlaceHolder>" ; } isUriValid ( java . lang . String ) { boolean isValidUri = true ; if ( ! ( org . apache . commons . lang3 . StringUtils...
org . junit . Assert . assertTrue ( isValidUri )
getLineBreak_A$_CRLF_NEW_FILE_ONLY_1 ( ) { org . junithelper . core . config . Configuration config = new org . junithelper . core . config . Configuration ( ) ; config . lineBreakPolicy = org . junithelper . core . config . LineBreakPolicy . forceNewFileCRLF ; org . junithelper . core . meta . CurrentLineBreak current...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
UmlLinkType_NotFromParameterDeclaration ( ) { java . lang . String fromClass = "Domain.Direct.Violating.DeclarationParameter" ; java . lang . String toClass = "Technology.Direct.Dao.ProfileDAO" ; "<AssertPlaceHolder>" ; } isUmlLinkNotDetected ( java . lang . String , java . lang . String ) { boolean umlLinkDetected = t...
org . junit . Assert . assertTrue ( isUmlLinkNotDetected ( fromClass , toClass ) )
testTrailingBackslash ( ) { final java . lang . String s = "a\\" ; try { this . valueConverterService . toValue ( s , "ID" , null ) ; } catch ( final java . lang . Throwable _t ) { if ( _t instanceof org . eclipse . xtext . conversion . ValueConverterWithValueException ) { final org . eclipse . xtext . conversion . Val...
org . junit . Assert . assertEquals ( "a" , value )
testEvalueerExpressie ( ) { final nl . bzk . brp . domain . expressie . Expressie expressie = nl . bzk . brp . domain . expressie . parser . ExpressieParser . parse ( java . lang . String . format ( "BSN<sp>=<sp>\"%s\"" , nl . bzk . brp . service . algemeen . expressie . ExpressieServiceImplTest . BSN ) ) ; final java ...
org . junit . Assert . assertThat ( isWaar , org . hamcrest . core . Is . is ( true ) )
setUserAgent ( ) { java . lang . String url = "https://github.com/m3dev" ; com . m3 . curly . Request request = new com . m3 . curly . Request ( url ) ; request . setUserAgent ( "foo" ) ; "<AssertPlaceHolder>" ; } getUserAgent ( ) { if ( ( headers . get ( "User-Agent" ) ) != null ) { return headers . get ( "User-Agent"...
org . junit . Assert . assertThat ( request . getUserAgent ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "foo" ) ) )
should_not_create_indel_for_XNX_placeholder ( ) { for ( htsjdk . samtools . SAMRecord r : new htsjdk . samtools . SAMRecord [ ] { Read ( 0 , 1 , "1X10S" ) , Read ( 0 , 1 , "2X10S" ) , Read ( 0 , 1 , "1X1N1X10S" ) , Read ( 0 , 1 , "1X100N1X10S" ) } ) { java . util . List < au . edu . wehi . idsv . IndelEvidence > list =...
org . junit . Assert . assertEquals ( 0 , list . size ( ) )
testSetNetworkTimeoutEnforcement ( ) { java . sql . Connection conn = org . postgresql . test . TestUtil . openDB ( ) ; java . sql . Statement stmt = null ; try { conn . setNetworkTimeout ( null , ( ( int ) ( TimeUnit . SECONDS . toMillis ( 1 ) ) ) ) ; stmt = conn . createStatement ( ) ; stmt . execute ( "SELECT<sp>pg_...
org . junit . Assert . assertTrue ( conn . isClosed ( ) )
testFirstFilter2 ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . build ( ) ; java . lang . String source = "{{<sp>['name',2*5]<sp>|<sp>fi...
org . junit . Assert . assertEquals ( "name" , writer . toString ( ) )
createRemoteStartTransactionRequest_withIdToken_returnsValidRemoteStartTransactionRequest ( ) { java . lang . String idToken = "Some<sp>IdToken" ; eu . chargetime . ocpp . model . core . RemoteStartTransactionRequest result = core . createRemoteStartTransactionRequest ( idToken ) ; "<AssertPlaceHolder>" ; } validate ( ...
org . junit . Assert . assertThat ( result . validate ( ) , org . hamcrest . CoreMatchers . is ( true ) )
matchPatternNullTest ( ) { java . util . regex . Pattern pattern = java . util . regex . Pattern . compile ( UtilitiesConstantsTestInterface . REGEX ) ; boolean check = org . jumbune . utils . PatternMatcher . match ( null , pattern ) ; "<AssertPlaceHolder>" ; } match ( org . apache . hadoop . io . Writable , java . la...
org . junit . Assert . assertFalse ( check )
postProcessBeanFactory ( ) { de . blizzy . documentr . context . EventBusBeanFactoryPostProcessor beanFactoryPostProcessor = new de . blizzy . documentr . context . EventBusBeanFactoryPostProcessor ( ) ; beanFactoryPostProcessor . postProcessBeanFactory ( beanFactory ) ; org . mockito . ArgumentCaptor < org . springfra...
org . junit . Assert . assertTrue ( ( ( captor . getValue ( ) ) instanceof de . blizzy . documentr . context . EventBusBeanPostProcessor ) )
testMySQL ( ) { final java . lang . String zoneStackName = "vpc/zone-legacy.yaml" 2 + ( this . random8String ( ) ) ; final java . lang . String vpcStackName = "CloudFrontAcmCertificate" 3 + ( this . random8String ( ) ) ; final java . lang . String stackName = "CloudFrontAcmCertificate" 6 + ( this . random8String ( ) ) ...
org . junit . Assert . assertTrue ( response . contains ( blogTitle ) )
isReadOnlyShouldReturnTrue ( ) { openConnection . setReadOnly ( true ) ; "<AssertPlaceHolder>" ; } isReadOnly ( ) { return this . connection . isReadOnly ( ) ; }
org . junit . Assert . assertTrue ( openConnection . isReadOnly ( ) )
appleToolchainPathsBuiltFromDirectory ( ) { java . nio . file . Path root = java . nio . file . Paths . get ( "test/com/facebook/buck/apple/testdata/toolchain-discovery" ) ; com . google . common . collect . ImmutableMap < java . lang . String , com . facebook . buck . apple . toolchain . AppleToolchain > expected = co...
org . junit . Assert . assertThat ( com . facebook . buck . apple . toolchain . impl . AppleToolchainDiscovery . discoverAppleToolchains ( java . util . Optional . of ( root ) , com . google . common . collect . ImmutableList . of ( ) ) , org . hamcrest . Matchers . equalTo ( expected ) )
testBisnoryagoninDataSet ( ) { final double deviation = 14.0 ; final double precursorMass = 231.0647 ; final io . github . msdk . datamodel . IonType ion = io . github . msdk . util . IonTypeUtil . createIonType ( "[M+H]+" ) ; final java . lang . String [ ] expectedResults = new java . lang . String [ ] { "C13H10O4" , ...
org . junit . Assert . assertArrayEquals ( expectedResults , results )
testMoveUp ( ) { final double initialY = instance . y ( ) ; instance . moveUp ( 3.5 ) ; edu . illinois . library . cantaloupe . image . Rectangle expected = new edu . illinois . library . cantaloupe . image . Rectangle ( instance . x ( ) , ( initialY - 3.5 ) , instance . width ( ) , instance . height ( ) ) ; "<AssertPl...
org . junit . Assert . assertEquals ( expected , instance )
testGetData ( ) { edu . oswego . csc480_hci521_2013 . client . ui . TreePanelView tpv = null ; edu . oswego . csc480_hci521_2013 . shared . h2o . json . RFTreeView data = rft ; java . lang . String data_key = null ; java . lang . String model_key = null ; int treeIndex = 0 ; System . out . println ( "getData" ) ; edu ....
org . junit . Assert . assertEquals ( expResult , result )
testStream ( ) { io . kubernetes . client . models . V1Pod pod = new io . kubernetes . client . models . V1Pod ( ) . metadata ( new io . kubernetes . client . models . V1ObjectMeta ( ) . name ( podName ) . namespace ( namespace ) ) . spec ( new io . kubernetes . client . models . V1PodSpec ( ) . containers ( java . uti...
org . junit . Assert . assertEquals ( content , bos . toString ( ) )
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 ( companies . isEmpty ( ) )
test206ContainsETagIfA200ResponseWouldHaveIncludedIt ( ) { final org . apache . hc . core5 . http . ClassicHttpRequest req1 = new org . apache . hc . core5 . http . message . BasicClassicHttpRequest ( "GET" , "/" ) ; originResponse . addHeader ( "Cache-Control" , "max-age=3600" ) ; originResponse . addHeader ( "ETag" ,...
org . junit . Assert . assertNotNull ( result . getFirstHeader ( "ETag" ) )
testAxialEncoder_Empty ( ) { org . openscience . cdk . interfaces . IAtomContainer container = mock ( org . openscience . cdk . interfaces . IAtomContainer . class ) ; org . openscience . cdk . interfaces . IAtom start = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; org . openscience . cdk . interface...
org . junit . Assert . assertNull ( org . openscience . cdk . hash . stereo . GeometricCumulativeDoubleBondFactory . axialEncoder ( container , start , end ) )
instantiation ( ) { com . github . seratch . taskun . inject . GuiceTaskunServletInjector target = new com . github . seratch . taskun . inject . GuiceTaskunServletInjector ( new com . google . inject . AbstractModule ( ) { @ com . github . seratch . taskun . inject . Override protected void configure ( ) { } } ) ; "<A...
org . junit . Assert . assertNotNull ( target )
testSearchExactDescriptionCaseSensitive ( ) { int total = 5 ; for ( int i = 0 ; i < total ; i ++ ) { com . liferay . data . engine . service . test . DEDataEngineTestUtil . insertDEDataRecordCollection ( _adminUser , _group , ( "Description" + i ) , ( "Name" + i ) , _deDataDefinitionService , _deDataRecordCollectionSer...
org . junit . Assert . assertEquals ( deDataRecordCollections . toString ( ) , 1 , deDataRecordCollections . size ( ) )
getGoldItemsTest ( ) { java . lang . String query = "declare<sp>variable<sp>$word<sp>external;\n" + ( ( ( "let<sp>$auction<sp>:=<sp>doc(\"auction.xml\")<sp>return\n" + "for<sp>$i<sp>in<sp>$auction/site//item\n" ) + "where<sp>contains(string(exactly-one($i/description)),<sp>$word)\n" ) + "return<sp>$i/name/text()" ) ; j...
org . junit . Assert . assertEquals ( 2 , cnt )
isSet ( ) { org . slf4j . MDC . put ( org . sonatype . nexus . security . UserIdMdcHelper . KEY , "test" ) ; "<AssertPlaceHolder>" ; } isSet ( ) { org . slf4j . MDC . put ( org . sonatype . nexus . security . UserIdMdcHelper . KEY , "test" ) ; org . junit . Assert . assertThat ( org . sonatype . nexus . security . User...
org . junit . Assert . assertThat ( org . sonatype . nexus . security . UserIdMdcHelper . isSet ( ) , org . hamcrest . Matchers . is ( true ) )
testDeleteStagingDir ( ) { java . lang . String testName = "deleteStagingDir" ; java . lang . String dbName = org . apache . hadoop . hive . ql . parse . TestReplicationScenarios . createDB ( testName , org . apache . hadoop . hive . ql . parse . TestReplicationScenarios . driver ) ; java . lang . String replDbName = d...
org . junit . Assert . assertEquals ( 0 , statuses . length )
testSerializeWhenEmpty ( ) { org . eclipse . rap . rwt . internal . serverpush . ServerPushActivationTracker deserializedTracker = serializeAndDeserialize ( serverPushActivationTracker ) ; "<AssertPlaceHolder>" ; } isActive ( ) { return this . equals ( editor . getActivePageInstance ( ) ) ; }
org . junit . Assert . assertTrue ( ( ( serverPushActivationTracker . isActive ( ) ) == ( deserializedTracker . isActive ( ) ) ) )
testFileTsFileKs ( ) { com . cloudhopper . commons . ssl . SslConfiguration cf = new com . cloudhopper . commons . ssl . SslConfiguration ( ) ; cf . setKeyStorePath ( "src/test/resources/keystore" ) ; cf . setKeyStorePassword ( "changeit" ) ; cf . setKeyManagerPassword ( "changeit" ) ; cf . setTrustStorePath ( "src/tes...
org . junit . Assert . assertTrue ( ( ( factory . getSslContext ( ) ) != null ) )
readTokenSkipSpaces ( ) { victim = new org . sejda . sambox . input . SourceReader ( inMemorySeekableSourceFrom ( "10<sp>0<sp>obj<sp><</key<sp>value>>" . getBytes ( ) ) ) ; victim . position ( 15 ) ; "<AssertPlaceHolder>" ; } readToken ( ) { skipSpaces ( ) ; java . lang . StringBuilder builder = pool . borrow ( ) ; try...
org . junit . Assert . assertEquals ( "value" , victim . readToken ( ) )
jsonAPI_01 ( ) { org . apache . jena . atlas . json . JsonObject obj = org . apache . jena . atlas . json . JSON . parse ( "{<sp>key1:<sp>'str1'<sp>,<sp>key2:<sp>[<sp>1<sp>,<sp>2<sp>]<sp>}" ) ; "<AssertPlaceHolder>" ; } size ( ) { checkRead ( ) ; return holder . getBaseItem ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , obj . size ( ) )
testValidateResourceWithValuesetExpansionGood ( ) { org . hl7 . fhir . dstu3 . model . Patient patient = new org . hl7 . fhir . dstu3 . model . Patient ( ) ; patient . addIdentifier ( ) . setSystem ( "http://system" ) . setValue ( "12345" ) . getType ( ) . addCoding ( ) . setSystem ( "http://hl7.org/fhir/v2/0203" ) . s...
org . junit . Assert . assertEquals ( 0 , all . size ( ) )
test02RotateZeroVector ( ) { final com . jogamp . opengl . math . Quaternion quat = new com . jogamp . opengl . math . Quaternion ( ) ; final float [ ] rotVec0 = quat . rotateVector ( new float [ 3 ] , 0 , com . jogamp . opengl . test . junit . jogl . math . TestQuaternion01NOUI . ZERO , 0 ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertArrayEquals ( com . jogamp . opengl . test . junit . jogl . math . TestQuaternion01NOUI . ZERO , rotVec0 , FloatUtil . EPSILON )
testAppRun ( ) { shared . kripton47 . BindApp47SharedPreferences shared = shared . kripton47 . BindApp47SharedPreferences . getInstance ( ) ; shared . edit ( ) . putName ( "hello" ) . commit ( ) ; "<AssertPlaceHolder>" ; } getName ( ) { return prefs . getString ( "name" , defaultBean . name ) ; }
org . junit . Assert . assertTrue ( shared . getName ( ) . equals ( "hello" ) )
shouldThrowException ( ) { org . neo4j . codegen . ClassHandle handle ; try ( org . neo4j . codegen . ClassGenerator simple = generateClass ( "SimpleClass" ) ) { try ( org . neo4j . codegen . CodeBlock thrower = simple . generateMethod ( void . class , "thrower" ) ) { thrower . throwException ( org . neo4j . codegen . ...
org . junit . Assert . assertEquals ( "hello<sp>world" , exception . getMessage ( ) )
notNullArg ( ) { org . pdfsam . ui . io . RemovePdfVersionConstraintEvent victim = new org . pdfsam . ui . io . RemovePdfVersionConstraintEvent ( org . sejda . model . pdf . PdfVersion . VERSION_1_3 ) ; "<AssertPlaceHolder>" ; } getPdfVersion ( ) { return pdfVersion ; }
org . junit . Assert . assertEquals ( PdfVersion . VERSION_1_3 , victim . getPdfVersion ( ) )
sliceWithJustColonExpression ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = Sequence ( Property ( "foo" ) , Slice ( null , null , 1 ) ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "foo[:]" ) ; "<AssertPlaceHolder>" ; } compile ( java . lang . String ) { r...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
word_markdown ( ) { java . util . List < java . lang . String > actual = SplitStrategy . WORD . split ( "Java<sp>is<sp>a<sp>general-purpose<sp>computer<sp>programming<sp>language<sp>that<sp>is<sp>concurrent,<sp>class-based,<sp>object-oriented,<sp>and<sp>specifically<sp>designed<sp>to<sp>have<sp>**as<sp>few<sp>implement...
org . junit . Assert . assertEquals ( expected , actual )
testGetNode ( ) { final java . lang . String pid = getRandomUniqueId ( ) ; createObject ( pid ) ; final org . apache . http . client . methods . HttpGet method = new org . apache . http . client . methods . HttpGet ( ( ( serverAddress ) + pid ) ) ; method . addHeader ( javax . ws . rs . core . HttpHeaders . ACCEPT , "t...
org . junit . Assert . assertEquals ( 200 , getStatus ( method ) )
testHasMore ( ) { for ( int i = 1 ; i <= 100 ; i ++ ) { "<AssertPlaceHolder>" ; } } hasMore ( ) { return ( value ) < ( high ) ; }
org . junit . Assert . assertEquals ( true , range . hasMore ( ) )
isJaxRsAwareShouldReturnTrueAsAvailableInTestClassPath ( ) { "<AssertPlaceHolder>" ; } isJaxRsAware ( ) { return org . codegist . common . reflect . Classes . isClassKnown ( "javax.ws.rs.GET" , org . codegist . crest . config . annotate . jaxrs . JaxRsAnnotations . class . getClassLoader ( ) ) ; }
org . junit . Assert . assertTrue ( org . codegist . crest . config . annotate . jaxrs . JaxRsAnnotations . isJaxRsAware ( ) )
testComplexMapConverter ( ) { com . owlike . genson . functional . Map < com . owlike . genson . functional . UUID , com . owlike . genson . functional . List < com . owlike . genson . functional . UUID > > expected = new com . owlike . genson . functional . HashMap < com . owlike . genson . functional . UUID , com . o...
org . junit . Assert . assertEquals ( expected , genson . deserialize ( json , new com . owlike . genson . functional . GenericType < com . owlike . genson . functional . Map < com . owlike . genson . functional . UUID , com . owlike . genson . functional . List < com . owlike . genson . functional . UUID > > > ( ) { }...
determine_if_number_is_prime_java ( ) { boolean isPrimeNumber = isPrime ( 5779 ) ; "<AssertPlaceHolder>" ; } isPrime ( int ) { if ( ( n % 2 ) == 0 ) { return false ; } else { for ( int i = 3 ; ( i * i ) <= n ; i += 2 ) { if ( ( n % i ) == 0 ) { return false ; } } } return true ; }
org . junit . Assert . assertTrue ( isPrimeNumber )
testPosition ( ) { for ( int i = 0 ; i < ( bytes . capacity ( ) ) ; i ++ ) bytes . write ( i ) ; for ( int i = ( ( int ) ( ( bytes . capacity ( ) ) - 1 ) ) ; i >= 0 ; i -- ) { bytes . position ( i ) ; "<AssertPlaceHolder>" ; } } read ( ) { return bytes . read ( ) ; }
org . junit . Assert . assertEquals ( ( ( byte ) ( i ) ) , bytes . read ( ) )
testTrafficActionSerializer ( ) { final org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns . yang . bgp . flowspec . rev180329 . bgp . rib . route . attributes . extended . communities . extended . community . TrafficActionExtendedCommunityCase trafficAction = new org . opendaylight . yang . ...
org . junit . Assert . assertArrayEquals ( org . opendaylight . protocol . bgp . flowspec . extended . communities . FSExtendedCommunitiesTest . TRAFFIC_ACTION , output . array ( ) )
testWrite ( ) { final com . amazonaws . services . sqs . AmazonSQS client = embeddedSqsRestServer . getClient ( ) ; final java . lang . String queueUrl = embeddedSqsRestServer . getQueueUrl ( ) ; java . util . List < com . amazonaws . services . sqs . model . SendMessageRequest > messages = new java . util . ArrayList ...
org . junit . Assert . assertEquals ( 100 , received . size ( ) )
updateUsers ( ) { org . oscm . app . v2_0 . data . InstanceStatus status = updateUsers ( "123" , null ) ; "<AssertPlaceHolder>" ; } updateUsers ( org . oscm . domobjects . Subscription , java . util . List ) { if ( ! ( isProductUserManagementActive ( subscription ) ) ) { return ; } if ( ( usageLicenses == null ) || ( u...
org . junit . Assert . assertNull ( status )
whenValidationWithValidConstructorParameters_thenZeroVoilations ( ) { java . lang . reflect . Constructor < org . baeldung . javaxval . methodvalidation . model . Customer > constructor = org . baeldung . javaxval . methodvalidation . model . Customer . class . getConstructor ( java . lang . String . class , java . lan...
org . junit . Assert . assertEquals ( 0 , violations . size ( ) )
test_createdTimestamp_Timestamp ( ) { io . ebeaninternal . server . deploy . meta . DeployBeanProperty prop = new io . ebeaninternal . server . deploy . meta . DeployBeanProperty ( null , java . sql . Timestamp . class , null , null ) ; io . ebeaninternal . server . deploy . generatedproperty . GeneratedProperty insert...
org . junit . Assert . assertTrue ( ( value instanceof java . sql . Timestamp ) )
shouldUseAlias ( ) { java . lang . String expectedResult = "<customOrder>\n<sp><price>15.0</price>\n<sp><comments>pack<sp>it<sp>nicely,<sp>please</comments>\n</customOrder>" ; br . com . caelum . vraptor . serialization . xstream . XStreamXMLSerializationTest . Order order = new br . com . caelum . vraptor . serializat...
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )