input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
matchRequiredVersions_shouldAllowRangedNonNumericCharacterRequiredVersion ( ) { java . lang . String openmrsVersion = "1.4.3" ; java . lang . String requiredOpenmrsVersion = "1.4.1a<sp>-<sp>1.4.3a" ; "<AssertPlaceHolder>" ; } matchRequiredVersions ( java . lang . String , java . lang . String ) { if ( org . apache . co...
org . junit . Assert . assertTrue ( org . openmrs . module . ModuleUtil . matchRequiredVersions ( openmrsVersion , requiredOpenmrsVersion ) )
testPollPartitioned ( ) { java . util . List < com . bazaarvoice . emodb . queue . api . Message > expected = com . google . common . collect . ImmutableList . of ( new com . bazaarvoice . emodb . queue . api . Message ( "id-1" , "payload-1" ) , new com . bazaarvoice . emodb . queue . api . Message ( "id-2" , "payload-...
org . junit . Assert . assertEquals ( actual , expected )
putsString ( ) { java . nio . CharBuffer buffer = java . nio . CharBuffer . allocate ( 100 ) ; buffer . put ( "TeaVM" ) ; "<AssertPlaceHolder>" ; } flip ( ) { limit = position ; position = 0 ; mark = - 1 ; return this ; }
org . junit . Assert . assertThat ( buffer . flip ( ) . toString ( ) , org . hamcrest . CoreMatchers . is ( "TeaVM" ) )
testCompareTo002 ( ) { javax . naming . ldap . LdapName ln = new javax . naming . ldap . LdapName ( "cn=common,t=test" ) ; javax . naming . ldap . LdapName ln2 = new javax . naming . ldap . LdapName ( "t=test" ) ; "<AssertPlaceHolder>" ; } compareTo ( com . ibm . ws . pmi . server . data . SpdData ) { if ( ( dataId ) <...
org . junit . Assert . assertFalse ( ( ( ln . compareTo ( ln2 ) ) <= 0 ) )
testRollingUpdateMigrate ( ) { final java . lang . String host = testHost ( ) ; startDefaultAgent ( host , "--labels" , com . spotify . helios . system . DeploymentGroupTest . TEST_LABEL ) ; final com . spotify . helios . client . HeliosClient client = defaultClient ( ) ; awaitHostStatus ( client , testHost ( ) , com ....
org . junit . Assert . assertEquals ( com . spotify . helios . system . DeploymentGroupTest . TEST_GROUP , jobDeploymentGroup )
getDiagnosisByUuid_shouldFindDiagnosisGivenValidUuid ( ) { java . lang . String uuid = "68802cce-6880-17e4-6880-a68804d22fb7" ; org . openmrs . Diagnosis diagnosis = diagnosisService . getDiagnosisByUuid ( uuid ) ; "<AssertPlaceHolder>" ; } getUuid ( ) { return uuid ; }
org . junit . Assert . assertEquals ( uuid , diagnosis . getUuid ( ) )
deveObterDescontoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProdutoDeclaracaoImportacaoAdicao importacaoAdicao = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProdutoDeclaracaoImportacaoAdicao ( ) ; importacaoAdicao . setDesconto...
org . junit . Assert . assertEquals ( "999999999999.99" , importacaoAdicao . getDesconto ( ) )
testToStringNoQuota ( ) { long length = 11111 ; long fileCount = 22222 ; long directoryCount = 33333 ; org . apache . hadoop . fs . ContentSummary contentSummary = new org . apache . hadoop . fs . ContentSummary . Builder ( ) . length ( length ) . fileCount ( fileCount ) . directoryCount ( directoryCount ) . build ( ) ...
org . junit . Assert . assertEquals ( expected , contentSummary . toString ( true ) )
testBytesSerializationTrustedPackage ( ) { org . pac4j . core . util . JavaSerializationHelper h = new org . pac4j . core . util . JavaSerializationHelper ( ) ; h . addTrustedPackage ( "org.apache" ) ; final org . apache . shiro . subject . SimplePrincipalCollection spc = new org . apache . shiro . subject . SimplePrin...
org . junit . Assert . assertNotNull ( h . deserializeFromBytes ( serialized ) )
testOverwrite ( ) { ca . uwaterloo . ece . qhanam . practice . lru . LRUCache cache = new ca . uwaterloo . ece . qhanam . practice . lru . LRUCache ( 2 ) ; cache . set ( 1 , 1 ) ; cache . set ( 1 , 2 ) ; "<AssertPlaceHolder>" ; } get ( int ) { list . access ( n ) ; return n . value ; }
org . junit . Assert . assertEquals ( 2 , cache . get ( 1 ) )
testNeighbour1of5DirectHit ( ) { ch . ethz . globis . phtree . PhTree < long [ ] > idx = ch . ethz . globis . phtree . test . util . TestUtil . newTree ( 2 , 8 ) ; idx . put ( new long [ ] { 3 , 3 } , new long [ ] { 3 , 3 } ) ; idx . put ( new long [ ] { 2 , 2 } , new long [ ] { 2 , 2 } ) ; idx . put ( new long [ ] { 1...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testOpenShiftConfigFromSystemPropsNegative ( ) { try { java . lang . System . setProperty ( "docker.useOpenShiftAuth" , "false" ) ; executeWithTempHomeDir ( new io . fabric8 . maven . docker . util . AuthConfigFactoryTest . HomeDirExecutor ( ) { @ io . fabric8 . maven . docker . util . Override public void exec ( java ...
org . junit . Assert . assertNull ( config )
testBuildTableNameNonRootServicePathDataModelByEntityNewEncoding ( ) { System . out . println ( ( ( ( ( getTestTraceHead ( "[NGSIPostgreSQLSink.buildTableName]" ) ) + "--------<sp>When<sp>a<sp>non<sp>root<sp>service-path<sp>is<sp>notified/defaulted<sp>and<sp>data_model<sp>is<sp>" ) + "'dm-by-service-path'<sp>the<sp>MyS...
org . junit . Assert . assertEquals ( expecetedTableName , builtTableName )
testGetFirstName_1 ( ) { org . jinstagram . entity . users . feed . UserFeedData fixture = new org . jinstagram . entity . users . feed . UserFeedData ( ) ; fixture . setBio ( "" ) ; fixture . setId ( "" ) ; fixture . setFirstName ( "" ) ; fixture . setLastName ( "" ) ; fixture . setUserName ( "" ) ; fixture . setProfi...
org . junit . Assert . assertEquals ( "" , result )
assertHandleExceptionWithoutSet ( ) { "<AssertPlaceHolder>" ; org . apache . shardingsphere . core . execute . sql . execute . threadlocal . ExecutorExceptionHandler . handleException ( new java . sql . SQLException ( "" ) ) ; } isExceptionThrown ( ) { return org . apache . shardingsphere . core . execute . sql . execu...
org . junit . Assert . assertTrue ( org . apache . shardingsphere . core . execute . sql . execute . threadlocal . ExecutorExceptionHandler . isExceptionThrown ( ) )
containsTest ( ) { java . util . List < com . github . anno4j . model . Annotation > list = queryService . addPrefix ( "ex" , "http://www.example.com/schema#" ) . addCriteria ( "oa:hasBody/ex:comparisonBodyStringValue" , "Test" , Comparison . CONTAINS ) . execute ( ) ; "<AssertPlaceHolder>" ; } size ( ) { try { if ( ( ...
org . junit . Assert . assertEquals ( 3 , list . size ( ) )
testEmptyColumnNames ( ) { org . meridor . perspective . sql . impl . parser . DataSource dataSource = new org . meridor . perspective . sql . impl . parser . DataSource ( TABLE_ALIAS ) ; "<AssertPlaceHolder>" ; org . meridor . perspective . sql . impl . task . strategy . DataSourceStrategy strategy = getStrategy ( ) ;...
org . junit . Assert . assertThat ( dataSource . getColumns ( ) , is ( empty ( ) ) )
shouldConvert ( ) { br . com . uol . pagseguro . api . utils . RequestMap expectedMap = new br . com . uol . pagseguro . api . utils . RequestMap ( ) ; expectedMap . putMap ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "permissions" , "CREATE_CHECKOUTS,DIRECT_PAYMENT" ) ; } }...
org . junit . Assert . assertEquals ( expectedMap , map )
testGivenMaxMinConstant ( ) { double tolerancePerc = 1 ; int nSamples = 500 ; int nFeatures = 3 ; org . nd4j . linalg . api . ndarray . INDArray featureSet = org . nd4j . linalg . factory . Nd4j . rand ( nSamples , nFeatures ) . mul ( 0.1 ) . add ( 10 ) ; org . nd4j . linalg . api . ndarray . INDArray labelSet = org . ...
org . junit . Assert . assertTrue ( ( maxdeltaPerc < tolerancePerc ) )
testNextSetBitAfterEnd ( ) { org . roaringbitmap . BitmapContainer container = new org . roaringbitmap . BitmapContainer ( org . roaringbitmap . TestBitmapContainer . evenBits ( ) , ( 1 << 15 ) ) ; container . bitmap [ 1023 ] = 0L ; container . cardinality -= 32 ; "<AssertPlaceHolder>" ; } nextSetBit ( int ) { int x = ...
org . junit . Assert . assertEquals ( ( - 1 ) , container . nextSetBit ( ( ( 64 * 1023 ) + 5 ) ) )
testGetJavaHomeForNonDefault ( ) { final org . jboss . arquillian . container . tomcat . managed . TomcatManagedConfiguration commonTomcatManagedConfiguration = new org . jboss . arquillian . container . tomcat . managed . TomcatManagedConfiguration ( ) ; final java . lang . String expectedJavaHome = "EXPECTED_JAVA_HOM...
org . junit . Assert . assertEquals ( expectedJavaHome , actualJavaHome )
testStoreAndQueryStartTimeExclude ( ) { org . hawkular . apm . api . model . trace . Trace trace1 = new org . hawkular . apm . api . model . trace . Trace ( ) ; trace1 . setTimestamp ( 1000000 ) ; trace1 . setTraceId ( "1" ) ; trace1 . setFragmentId ( "1" ) ; org . hawkular . apm . api . model . trace . Consumer c1 = n...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testCreateMedicalEquipmentSectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . hitsp . MedicalEquipmentSection > sectionBuilder = org . openhealthtools . mdht . uml . cda . hitsp . builder . HITSPBuilderFactory . createMedicalEquipmentSect...
org . junit . Assert . assertNotNull ( section )
input ( ) { com . asakusafw . runtime . io . text . tabular . TabularTextFormat format = com . asakusafw . runtime . io . text . tabular . TabularTextFormat . builder ( ) . build ( ) ; java . lang . String [ ] [ ] results = read ( format , new java . lang . String [ ] { "Hello,<sp>world!" } ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertThat ( results , org . hamcrest . CoreMatchers . is ( new java . lang . String [ ] [ ] { new java . lang . String [ ] { "Hello,<sp>world!" } } ) )
should_list_roles ( ) { com . flow . platform . api . domain . user . Action action = new com . flow . platform . api . domain . user . Action ( ) ; action . setName ( "test" ) ; action . setTag ( ActionGroup . MANAGER ) ; actionService . create ( action ) ; "<AssertPlaceHolder>" ; } list ( ) { com . flow . platform . ...
org . junit . Assert . assertEquals ( 1 , actionService . list ( ) . size ( ) )
getTableLocationPartitionedTableSnapshotsDisabledWithOverride ( ) { org . apache . hadoop . hive . metastore . api . StorageDescriptor sd = new org . apache . hadoop . hive . metastore . api . StorageDescriptor ( ) ; sd . setLocation ( ( ( com . hotels . bdp . circustrain . core . source . HdfsSnapshotLocationManagerTe...
org . junit . Assert . assertThat ( tableLocation , org . hamcrest . CoreMatchers . is ( new org . apache . hadoop . fs . Path ( com . hotels . bdp . circustrain . core . source . HdfsSnapshotLocationManagerTest . PARTITION_BASE_LOCATION ) ) )
testEmptyTextFil ( ) { byte [ ] emptyContents = new byte [ ] { } ; java . lang . String output = readUsingTextCommand ( org . apache . hadoop . fs . shell . TestTextCommand . TEXT_FILENAME , emptyContents ) ; "<AssertPlaceHolder>" ; } readUsingTextCommand ( java . lang . String , byte [ ] ) { createFile ( fileName , fi...
org . junit . Assert . assertTrue ( "" . equals ( output ) )
test_render ( ) { java . lang . String templateVariable = "Hello<sp>Freemarker!" ; java . util . Map < java . lang . String , java . lang . Object > model = new java . util . HashMap ( ) ; model . put ( "message" , templateVariable ) ; java . lang . String expected = java . lang . String . format ( "<h1>%s</h1>" , temp...
org . junit . Assert . assertEquals ( expected , actual )
convert ( ) { com . fasterxml . jackson . databind . ObjectMapper objectMapper = new com . fasterxml . jackson . databind . ObjectMapper ( ) ; java . util . List < com . levelup . java . json . JsonArrayToObjectArray . NavItem > navigation = objectMapper . readValue ( jsonString , objectMapper . getTypeFactory ( ) . co...
org . junit . Assert . assertEquals ( 4 , navigation . size ( ) )
testSearchRequestSubtreeLevelScopePerf ( ) { org . apache . directory . ldap . client . api . LdapConnection connection = new org . apache . directory . ldap . client . api . LdapNetworkConnection ( org . apache . directory . api . util . Network . LOOPBACK_HOSTNAME , getLdapServer ( ) . getPort ( ) ) ; try { connectio...
org . junit . Assert . assertEquals ( 10 , i )
assertGetDefaultDataSourceNameWithMasterSlaveDataSourceName ( ) { org . apache . shardingsphere . api . config . sharding . ShardingRuleConfiguration shardingRuleConfig = new org . apache . shardingsphere . api . config . sharding . ShardingRuleConfiguration ( ) ; shardingRuleConfig . getMasterSlaveRuleConfigs ( ) . ad...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( "master_ds" ) )
testCompliesNotWithWidthSmallerThanMinWidth ( ) { com . eclipsesource . tabris . passepartout . internal . condition . MinWidthCondition condition = new com . eclipsesource . tabris . passepartout . internal . condition . MinWidthCondition ( new com . eclipsesource . tabris . passepartout . internal . unit . Pixel ( 10...
org . junit . Assert . assertFalse ( complies )
getModifiers ( ) { "<AssertPlaceHolder>" ; } getModifiers ( ) { return modifiers ; }
org . junit . Assert . assertEquals ( modifiers , method . getModifiers ( ) )
entIsNotCompliantWhenSocketsAreNotCovered ( ) { org . candlepin . model . Consumer c = mockConsumer ( PRODUCT_1 ) ; c . setFact ( "cpu.cpu_socket(s)" , "8" ) ; org . candlepin . model . Entitlement ent = mockEntitlement ( c , PRODUCT_1 ) ; ent . getPool ( ) . getProduct ( ) . setAttribute ( Product . Attributes . SOCKE...
org . junit . Assert . assertFalse ( compliance . isEntitlementCompliant ( c , ent , new java . util . Date ( ) ) )
setSourceUri ( ) { com . google . cloud . tools . eclipse . appengine . libraries . model . LibraryFile libraryFile = new com . google . cloud . tools . eclipse . appengine . libraries . model . LibraryFile ( mavenCoordinates ) ; libraryFile . setSourceUri ( new java . net . URI ( "http://example.com" ) ) ; "<AssertPla...
org . junit . Assert . assertThat ( libraryFile . getSourceUri ( ) . toString ( ) , org . hamcrest . CoreMatchers . is ( "http://example.com" ) )
testGetId ( ) { int id = OnmsSeverity . CLEARED . getId ( ) ; org . opennms . netmgt . model . OnmsSeverity sev = OnmsSeverity . CLEARED ; "<AssertPlaceHolder>" ; } getId ( ) { return java . util . Optional . ofNullable ( m_id ) ; }
org . junit . Assert . assertEquals ( id , sev . getId ( ) )
contentTypeExtraction ( ) { org . apache . shindig . gadgets . http . HttpRequest request = new org . apache . shindig . gadgets . http . HttpRequest ( org . apache . shindig . gadgets . http . HttpRequestTest . DEFAULT_URI ) . addHeader ( "Content-Type" , org . apache . shindig . gadgets . http . HttpRequestTest . CON...
org . junit . Assert . assertEquals ( org . apache . shindig . gadgets . http . HttpRequestTest . CONTENT_TYPE , request . getContentType ( ) )
testNullReturn ( ) { com . eclipsesource . v8 . utils . V8Executor executor = new com . eclipsesource . v8 . utils . V8Executor ( "null;" ) ; executor . start ( ) ; executor . join ( ) ; "<AssertPlaceHolder>" ; } getResult ( ) { return result ; }
org . junit . Assert . assertNull ( executor . getResult ( ) )
testHostnameContainsWhenMatch ( ) { java . lang . String substring = halfOf ( message . hostname ) ; matcher . setHostnameContains ( new tech . aroma . application . service . reactions . matchers . MatcherHostnameContains ( substring ) ) ; tech . aroma . application . service . reactions . matchers . MessageMatcher re...
org . junit . Assert . assertThat ( result . matches ( message ) , org . hamcrest . Matchers . is ( true ) )
remove_null_from_list_guava_fluentiterbale ( ) { java . util . List < java . lang . String > strings = com . google . common . collect . Lists . newArrayList ( null , "www" , null , "leveluplunch" , "com" , null ) ; java . util . List < java . lang . String > filterStrings = com . google . common . collect . FluentIter...
org . junit . Assert . assertEquals ( 3 , filterStrings . size ( ) )
shouldQueryView ( ) { final com . couchbase . client . java . bucket . BucketManager bucketManager = bucket . bucketManager ( ) ; final com . couchbase . client . java . view . View view = com . couchbase . client . java . view . DefaultView . create ( "byFirstname" , org . apache . commons . io . IOUtils . toString ( ...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableList . of ( person ) , found )
test_valid_name_maxlength ( ) { org . restfulwhois . rdap . common . dto . IpDto ipDto = generateIpDto ( ) ; java . lang . String stringMaxLength = createStringWithLength ( UpdateValidateUtil . MAX_LENGTH_255 ) ; ipDto . setName ( stringMaxLength ) ; "<AssertPlaceHolder>" ; java . lang . String content = org . restfulw...
org . junit . Assert . assertTrue ( ( ( ipDto . getName ( ) . length ( ) ) == ( org . restfulwhois . rdap . common . util . UpdateValidateUtil . MAX_LENGTH_255 ) ) )
testNederlandseNationaliteitGeenVoornaamWelVoornaamInBericht ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0153 . voerRegelUit ( bouwHuidigeSituatie ( null ) , bouwNieuweSituatie ( NationaliteitcodeAttribuut . NL_NATIONALITEIT_CODE , "Jan" ) , null , null ) ; "<As...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
commutativeNewUpdatesSingleBuilder ( ) { org . apache . accumulo . server . replication . proto . Replication . Status newFile = org . apache . accumulo . server . replication . StatusUtil . fileCreated ( 100 ) ; org . apache . accumulo . server . replication . proto . Replication . Status firstSync = org . apache . ac...
org . junit . Assert . assertEquals ( order1 , order2 )
into ( ) { int sum = new com . gs . collections . impl . lazy . LazyIterableAdapter ( com . gs . collections . impl . list . Interval . oneTo ( 5 ) ) . into ( com . gs . collections . impl . list . mutable . FastList . < java . lang . Integer > newList ( ) ) . injectInto ( 0 , AddFunction . INTEGER_TO_INT ) ; "<AssertP...
org . junit . Assert . assertEquals ( 15 , sum )
getTestMethodSourceCode_A$TestMethodMeta_ArrangeActAssert_JUnit3 ( ) { org . junithelper . core . config . Configuration config = new org . junithelper . core . config . Configuration ( ) ; config . junitVersion = org . junithelper . core . config . JUnitVersion . version3 ; config . testingPatternExplicitComment = org...
org . junit . Assert . assertEquals ( expected , actual )
testSerialization ( ) { org . jfree . chart . annotations . CategoryPointerAnnotation a1 = new org . jfree . chart . annotations . CategoryPointerAnnotation ( "Label" , "A" , 20.0 , Math . PI ) ; org . jfree . chart . annotations . CategoryPointerAnnotation a2 = ( ( org . jfree . chart . annotations . CategoryPointerAn...
org . junit . Assert . assertEquals ( a1 , a2 )
missedTypeParameter ( ) { final org . nohope . reflection . TypeReference < java . lang . String > reference = org . nohope . reflection . TypeReferenceTest . getReference ( ) ; "<AssertPlaceHolder>" ; } getTypeClass ( ) { return rawType ; }
org . junit . Assert . assertNull ( reference . getTypeClass ( ) )
startingSimulatorWorksWhenSimulatorNotRunning ( ) { ImmutableList . Builder < Map . Entry < com . facebook . buck . util . ProcessExecutorParams , com . facebook . buck . util . FakeProcess > > fakeProcessesBuilder = com . google . common . collect . ImmutableList . builder ( ) ; fakeProcessesBuilder . add ( new java ....
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( java . util . Optional . of ( 0L ) ) )
compareIndexAndTraversal ( ) { org . neo4j . graphdb . index . IndexManager index = org . neo4j . rest . graphdb . MatrixDatabaseTest . graphDb . index ( ) ; org . neo4j . graphdb . index . Index < org . neo4j . graphdb . Node > goodGuys = index . forNodes ( "heroes" ) ; org . neo4j . graphdb . index . IndexHits < org ...
org . junit . Assert . assertEquals ( heroesTraverser . nodes ( ) . iterator ( ) . next ( ) . getId ( ) , hits . iterator ( ) . next ( ) . getId ( ) )
testIp ( ) { byte [ ] bytes = org . bitcoinj . script . HEX . decode ( "41043e96222332ea7848323c08116dddafbfa917b8e37f0bdf63841628267148588a09a43540942d58d49717ad3fabfe14978cf4f0a8b84d2435dad16e9aa4d7f935ac" ) ; org . bitcoinj . script . Script s = new org . bitcoinj . script . Script ( bytes ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertTrue ( s . isSentToRawPubKey ( ) )
flipTest8 ( ) { org . krakenapps . pcap . util . Buffer buffer = new org . krakenapps . pcap . util . ChainBuffer ( ) ; byte [ ] testArray = new byte [ ] { 1 , 2 } ; byte [ ] testArray2 = new byte [ ] { 3 , 4 , 5 } ; byte [ ] testArray3 = new byte [ ] { 6 , 7 , 8 , 9 } ; byte [ ] testArray4 = new byte [ ] { 10 , 11 } ;...
org . junit . Assert . assertEquals ( 26 , buffer . readableBytes ( ) )
testInitializationUniqueSymbol ( ) { org . orbisgis . legend . thematic . constant . UniqueSymbolLine usl = getUniqueSymbolLine ( org . orbisgis . legend . analyzer . CONSTANT_LINE ) ; "<AssertPlaceHolder>" ; } getUniqueSymbolLine ( java . lang . String ) { org . orbisgis . coremap . renderer . se . Style st = getStyle...
org . junit . Assert . assertTrue ( true )
testAppendSchemaChange ( ) { org . sagebionetworks . repo . model . table . ColumnChange add = new org . sagebionetworks . repo . model . table . ColumnChange ( ) ; add . setOldColumnId ( null ) ; add . setNewColumnId ( "123" ) ; org . sagebionetworks . repo . model . table . ColumnChange delete = new org . sagebionetw...
org . junit . Assert . assertEquals ( changes , back )
testHostDifferentCase ( ) { java . lang . String host = "matthieu-test.woonoz.dev" ; java . lang . String expectedRewritedHost = "google.com" ; com . woonoz . proxy . servlet . UrlRewriter rewriter = org . easymock . EasyMock . createMock ( com . woonoz . proxy . servlet . UrlRewriter . class ) ; org . easymock . EasyM...
org . junit . Assert . assertEquals ( expectedRewritedHost , actualValue )
maxTxnLow ( ) { java . util . BitSet bitSet = new java . util . BitSet ( 2 ) ; bitSet . set ( 0 , 2 ) ; org . apache . hadoop . hive . common . ValidWriteIdList writeIds = new org . apache . hadoop . hive . common . ValidCompactorWriteIdList ( tableName , new long [ ] { 13 , 14 } , bitSet , 12 ) ; org . apache . hadoop...
org . junit . Assert . assertEquals ( ValidWriteIdList . RangeResponse . ALL , rsp )
shouldRecordSuccessTestExecutionWhenSaveAll ( ) { final java . lang . String oldValue = updateRecorderToDefaultOption ( ) ; try { TestRecorderRule . RECORDER_OPTION = TestRecorderRule . ALWAYS ; org . junit . runner . Description desc = description ( "shouldRecordSuccessTestExecutionWhenSaveAll" ) ; org . jenkinsci . t...
org . junit . Assert . assertThat ( outputFile , org . hamcrest . core . Is . is ( org . jenkinsci . test . acceptance . Matchers . existingFile ( ) ) )
testGetOperationQualifiedName ( ) { org . mockito . Mockito . when ( operationMeta . getSchemaQualifiedName ( ) ) . thenReturn ( "value" ) ; java . lang . String qualifiedName = operationMeta . getSchemaQualifiedName ( ) ; "<AssertPlaceHolder>" ; } getSchemaQualifiedName ( ) { return schemaQualifiedName ; }
org . junit . Assert . assertEquals ( "value" , qualifiedName )
testIfResourceIsNotContained ( ) { org . onosproject . net . resource . DiscreteResource res1 = org . onosproject . net . resource . Resources . discrete ( org . onosproject . net . DeviceId . deviceId ( "a" ) , org . onosproject . net . PortNumber . portNumber ( 1 ) ) . resource ( ) ; org . onosproject . net . resourc...
org . junit . Assert . assertThat ( sut . containsAny ( com . google . common . collect . ImmutableSet . of ( res2 ) ) , org . hamcrest . Matchers . is ( false ) )
save_with_mentions ( ) { com . querydsl . example . sql . model . User other = new com . querydsl . example . sql . model . User ( ) ; other . setUsername ( "dexter" ) ; java . lang . Long otherId = userRepository . save ( other ) ; java . lang . String content = "I<sp>am<sp>alive!<sp>#YOLO" ; com . querydsl . example ...
org . junit . Assert . assertEquals ( tweetId , repository . findWithMentioned ( otherId ) . get ( 0 ) . getId ( ) )
testSearchCompartements ( ) { ca . uhn . fhir . jaxrs . server . example . Bundle response = ca . uhn . fhir . jaxrs . server . example . JaxRsPatientProviderTest . client . search ( ) . forResource ( ca . uhn . fhir . jaxrs . server . example . Patient . class ) . withIdAndCompartment ( "1" , "Condition" ) . returnBun...
org . junit . Assert . assertTrue ( ( ( response . getEntry ( ) . size ( ) ) > 0 ) )
testToBuilder ( ) { com . google . cloud . datastore . LatLngValue value = com . google . cloud . datastore . LatLngValue . of ( com . google . cloud . datastore . LatLngValueTest . CONTENT ) ; "<AssertPlaceHolder>" ; } toBuilder ( ) { return ( this ) == ( com . google . firestore . admin . v1 . DeleteIndexRequest . DE...
org . junit . Assert . assertEquals ( value , value . toBuilder ( ) . build ( ) )
testGetQueryLTEFilters ( ) { filters . add ( org . nohope . cassandra . mapservice . cfilter . CFilters . lte ( org . nohope . cassandra . mapservice . Value . bound ( org . nohope . cassandra . mapservice . CFilterBuilderTest . INT_COL , 4 ) ) ) ; final java . util . List < org . nohope . cassandra . mapservice . cfil...
org . junit . Assert . assertEquals ( filters , builderFilters )
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . education . type . EducationType context = new org . lnu . is . domain . education . type . EducationType ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>EducationType<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<s...
org . junit . Assert . assertEquals ( expected , actualQuery )
beginAreaReferenceDoesNotHitDatabase ( ) { fm . last . musicbrainz . data . model . Artist artist = ( ( fm . last . musicbrainz . data . model . Artist ) ( session . load ( fm . last . musicbrainz . data . model . Artist . class , 1 ) ) ) ; fm . last . musicbrainz . data . model . Area beginArea = artist . getBeginArea...
org . junit . Assert . assertThat ( fetchCount ( ) , org . hamcrest . CoreMatchers . is ( 1L ) )
setInvalidLastModificationTime ( ) { alluxio . master . file . meta . MutableInodeDirectory inodeDirectory = createInodeDirectory ( ) ; long lastModificationTimeMs = inodeDirectory . getLastModificationTimeMs ( ) ; long invalidModificationTimeMs = lastModificationTimeMs - ( alluxio . Constants . SECOND_MS ) ; inodeDire...
org . junit . Assert . assertEquals ( lastModificationTimeMs , inodeDirectory . getLastModificationTimeMs ( ) )
readUnkeyedListDataAllTest ( ) { doReturn ( immediateFluentFuture ( java . util . Optional . of ( org . opendaylight . restconf . nb . rfc8040 . rests . utils . ReadDataTransactionUtilTest . DATA . unkeyedListNode1 ) ) ) . when ( read ) . read ( LogicalDatastoreType . OPERATIONAL , org . opendaylight . restconf . nb . ...
org . junit . Assert . assertEquals ( expectedData , normalizedNode )
testIsValidMoveNotAffordable ( ) { it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . players . Player player1 = new it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . players . Player ( ) ; player1 . setID ( ) ; it . polimi . deib . provaFinale2014 ...
org . junit . Assert . assertFalse ( incorrect . isValid ( status ) )
hasSubscriptionId_nullId ( ) { when ( fixture . getSubscriptionId ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } hasSubscriptionId ( ) { return ( ( getSubscriptionId ( ) ) != null ) && ( ! ( getSubscriptionId ( ) . isEmpty ( ) ) ) ; }
org . junit . Assert . assertFalse ( fixture . hasSubscriptionId ( ) )
testLoadPatterns ( ) { final java . util . ArrayList < java . lang . String > lhsBoundFacts = new java . util . ArrayList < java . lang . String > ( ) { { add ( "boundFact1" ) ; add ( "" ) ; add ( "boundFact3" ) ; } } ; final java . util . ArrayList < java . lang . String > expectedPatterns = new java . util . ArrayLis...
org . junit . Assert . assertEquals ( expectedPatterns , patterns )
doRedirect ( ) { java . lang . String path = "http://www.google.com" ; org . slim3 . controller . Controller controller = tester . frontController . createController ( "/" ) ; tester . frontController . doRedirect ( tester . request , tester . response , controller , path ) ; "<AssertPlaceHolder>" ; } getRedirectPath (...
org . junit . Assert . assertThat ( tester . response . getRedirectPath ( ) , org . hamcrest . CoreMatchers . is ( path ) )
supports_not ( ) { com . asakusafw . testdriver . excel . ExcelRuleExtractor extractor = new com . asakusafw . testdriver . excel . DefaultExcelRuleExtractor ( ) ; org . apache . poi . ss . usermodel . Sheet sheet = sheet ( "invalid_format.xls" ) ; "<AssertPlaceHolder>" ; } supports ( org . apache . poi . ss . usermode...
org . junit . Assert . assertThat ( extractor . supports ( sheet ) , is ( false ) )
testPackDoubleNaN ( ) { final double k = Double . NaN ; final char r = com . jogamp . opengl . math . Binary16 . packDouble ( k ) ; "<AssertPlaceHolder>" ; } isNaN ( char ) { final int e = com . jogamp . opengl . math . Binary16 . unpackGetExponentUnbiased ( k ) ; final int s = com . jogamp . opengl . math . Binary16 ....
org . junit . Assert . assertTrue ( com . jogamp . opengl . math . Binary16 . isNaN ( r ) )
testGetTopic ( ) { javax . jms . Topic topic = session . createTopic ( getTestName ( ) ) ; javax . jms . TopicPublisher publisher = session . createPublisher ( topic ) ; "<AssertPlaceHolder>" ; } getTopic ( ) { checkClosed ( ) ; return ( ( javax . jms . Topic ) ( this . producerInfo . getDestination ( ) ) ) ; }
org . junit . Assert . assertSame ( topic , publisher . getTopic ( ) )
testLinkOwner ( ) { org . apache . hadoop . fs . Path file = new org . apache . hadoop . fs . Path ( testBaseDir1 ( ) , "file" ) ; org . apache . hadoop . fs . Path link = new org . apache . hadoop . fs . Path ( testBaseDir1 ( ) , "symlinkToFile" ) ; createAndWriteFile ( file ) ; wrapper . createSymlink ( file , link ,...
org . junit . Assert . assertEquals ( statLink . getOwner ( ) , statFile . getOwner ( ) )
testRemoveObsFromSingle ( ) { org . apache . commons . math . stat . regression . SimpleRegression regression = new org . apache . commons . math . stat . regression . SimpleRegression ( ) ; regression . addData ( removeX , removeY ) ; regression . removeData ( removeX , removeY ) ; "<AssertPlaceHolder>" ; } getN ( ) {...
org . junit . Assert . assertEquals ( regression . getN ( ) , 0 )
updateTopologyIsNonDestructive ( ) { _routingProcess . updateTopology ( nonEmptyOspfTopology ( ) ) ; org . batfish . datamodel . ospf . OspfNeighborConfigId n1 = new org . batfish . datamodel . ospf . OspfNeighborConfigId ( org . batfish . dataplane . ibdp . OspfRoutingProcessTest . HOSTNAME , org . batfish . dataplane...
org . junit . Assert . assertTrue ( _routingProcess . isDirty ( ) )
testStopEventHaltDoesntWork ( ) { org . easymock . EasyMock . expect ( processManager . getPidFromProcQuery ( ( "State.Name.sw=java,Args.*.eq=-Dcatalina.base=" + ( catalinaBase ) ) ) ) . andReturn ( 123L ) ; processManager . kill ( 123L ) ; org . easymock . EasyMock . expect ( processManager . waitForProcessDeath ( 60 ...
org . junit . Assert . assertFalse ( stopped )
testReportingLevelNoneBySetter ( ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollectorTest . TestTraceService traceService = new org . hawkular . apm . client . collector . internal . DefaultTraceCollectorTest . TestTraceService ( ) ; org . hawkular . apm . client . collector . internal . Def...
org . junit . Assert . assertEquals ( 0 , traces . size ( ) )
collectCacheRequestCacheFalse ( org . apache . servicecomb . common . rest . filter . HttpServerFilter ) { java . util . List < org . apache . servicecomb . common . rest . filter . HttpServerFilter > httpServerFilters = java . util . Arrays . asList ( f1 ) ; new mockit . Expectations ( ) { { f1 . needCacheRequest ( op...
org . junit . Assert . assertFalse ( restInvocation . collectCacheRequest ( operationMeta ) )
testStringFunction1 ( ) { java . lang . String sql = "/*IF<sp>SF.isEmpty(val1)*/1=1<sp>/*ELIF<sp>SF.containsAny(val2,<sp>val3)*/2=2<sp>--ELSE<sp>3=3/*END*/" ; jp . co . future . uroborosql . parser . SqlParser parser = new jp . co . future . uroborosql . parser . SqlParserImpl ( sql ) ; jp . co . future . uroborosql . ...
org . junit . Assert . assertEquals ( "1" , sql2 , ctx . getExecutableSql ( ) )
testSetCategoryKeys ( ) { org . jfree . data . category . DefaultIntervalCategoryDataset empty = new org . jfree . data . category . DefaultIntervalCategoryDataset ( new double [ 0 ] [ 0 ] , new double [ 0 ] [ 0 ] ) ; boolean pass = true ; try { empty . setCategoryKeys ( new java . lang . String [ 0 ] ) ; } catch ( jav...
org . junit . Assert . assertTrue ( pass )
testReadWriteRead ( ) { java . io . File f = folder . newFile ( ) ; de . rub . nds . tlsattacker . core . config . Config config = de . rub . nds . tlsattacker . core . config . Config . createConfig ( ) ; de . rub . nds . tlsattacker . core . config . ConfigIO . write ( config , f ) ; config = de . rub . nds . tlsatta...
org . junit . Assert . assertNotNull ( config )
testFindSingleAfterFilteringToOneElementStream ( ) { com . annimon . stream . OptionalDouble result = com . annimon . stream . DoubleStream . of ( 1.0 , 10.12 , ( - 3.01 ) ) . filter ( com . annimon . stream . Functions . greaterThan ( Math . PI ) ) . findSingle ( ) ; "<AssertPlaceHolder>" ; } hasValue ( int ) { return...
org . junit . Assert . assertThat ( result , hasValue ( 10.12 ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . workflow . kaleo . model . KaleoTaskInstanceToken > kaleoTaskInstanceTokens = _p...
org . junit . Assert . assertTrue ( kaleoTaskInstanceTokens . isEmpty ( ) )
decode ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( encoded ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; fixture = new com . flagstone . transform . button . ButtonSound ( decoder ) ...
org . junit . Assert . assertNotNull ( fixture )
getExternalKeyShouldReturnExternalKeyFromGroup ( ) { java . lang . String externalKey = "externalKey" ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceGroupEntity group = new ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceGroupEntity ( ) ; group . setFcExternalKey...
org . junit . Assert . assertEquals ( externalKey , delegatedExternalKey )
testBadDate ( ) { try { modelOf ( "timestamp<sp>=<sp>'2015-02-23T10:00:55.00z;30m'" ) ; org . junit . Assert . fail ( ) ; } catch ( com . questdb . griffin . SqlException e ) { "<AssertPlaceHolder>" ; } } getPosition ( ) { return 0 ; }
org . junit . Assert . assertEquals ( 12 , e . getPosition ( ) )
testGetValueList ( ) { new mockit . Expectations ( ) { { request . getHeaders ( "h1" ) ; result = java . util . Collections . enumeration ( java . util . Arrays . asList ( "h1v" ) ) ; } } ; org . apache . servicecomb . common . rest . codec . param . HeaderProcessorCreator . HeaderProcessor processor = new org . apache...
org . junit . Assert . assertThat ( ( ( java . util . List < java . lang . String > ) ( value ) ) , org . hamcrest . Matchers . contains ( "h1v" ) )
testFormatMessageWithSquigglyFormatAndEmptyParameters ( ) { record . setMessage ( "{0}" ) ; record . setParameters ( new java . lang . Object [ 0 ] ) ; "<AssertPlaceHolder>" ; } formatMessage ( java . util . logging . LogRecord ) { java . lang . String message = super . formatMessage ( record ) ; try { final java . lan...
org . junit . Assert . assertEquals ( "{0}" , instance . formatMessage ( record ) )
testCanGetPageConfigurationForPage ( ) { com . eclipsesource . tabris . ui . UIConfiguration configuration = new com . eclipsesource . tabris . ui . UIConfiguration ( ) ; com . eclipsesource . tabris . ui . PageConfiguration pageConfiguration = new com . eclipsesource . tabris . ui . PageConfiguration ( "foo" , com . e...
org . junit . Assert . assertSame ( pageConfiguration2 , actualConfiguration )
testGetValue ( ) { when ( iTable . getValue ( 0 , "category" ) ) . thenReturn ( "POPE:01" ) ; when ( manager . getEngineByName ( anyString ( ) ) ) . thenReturn ( null ) ; java . lang . Object value = scriptableTable . getValue ( 0 , "category" ) ; "<AssertPlaceHolder>" ; verify ( ScriptableTable . log ) . warning ( "Co...
org . junit . Assert . assertEquals ( "POPE:01" , value )
testUploadMetadataFilesToTempDir ( ) { java . io . InputStream metadataFile = mock ( java . io . InputStream . class ) ; fillServiceMock ( org . pentaho . platform . dataaccess . datasource . api . MetadataServiceTest . DOMAIN_ID , metadataFile ) ; doReturn ( new org . apache . tools . ant . filters . StringInputStream...
org . junit . Assert . assertEquals ( res . getXmiFileName ( ) , org . pentaho . platform . dataaccess . datasource . api . MetadataServiceTest . XMI_TEMP_FILE_NAME )
testNoFrontendUrlWithSingleUrlIpport ( ) { java . util . Map < java . net . URI , java . net . URI > ipports = new java . util . HashMap ( ) ; ipports . put ( com . vsct . supervision . notification . model . AlarmMapperTest . DEFAULT_GRAPHITE_URL , com . vsct . supervision . notification . model . AlarmMapperTest . DE...
org . junit . Assert . assertEquals ( com . vsct . supervision . notification . model . AlarmMapperTest . DEFAULT_GRAPHITE_IPPORT , backendAlarm . getGraphiteBaseUrl ( ) )
testApplyVpnUsersException1 ( ) { vpcVirtualRouterElement . _vpcRouterMgr = _vpcRouterMgr ; final com . cloud . network . topology . AdvancedNetworkTopology advancedNetworkTopology = org . mockito . Mockito . mock ( com . cloud . network . topology . AdvancedNetworkTopology . class ) ; final com . cloud . network . top...
org . junit . Assert . assertNull ( results )
shouldNotFilterFeature ( ) { final java . util . List < com . github . bmsantos . core . cola . formatter . FeatureDetails > features = test . utils . TestUtils . loadFeatures ( "com.github.bmsantos.core.cola.filters.FilterProcessorTest$SkipFeatureClass" ) ; when ( filter . filtrate ( any ( com . github . bmsantos . co...
org . junit . Assert . assertThat ( features . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testTaskStartTimes ( ) { org . apache . hadoop . mapreduce . v2 . api . records . TaskId taskId = mock ( org . apache . hadoop . mapreduce . v2 . api . records . TaskId . class ) ; org . apache . hadoop . mapreduce . jobhistory . JobHistoryParser . TaskInfo taskInfo = mock ( org . apache . hadoop . mapreduce . jobhisto...
org . junit . Assert . assertTrue ( ( ( report . getStartTime ( ) ) == 10 ) )
testEqualsSelf ( ) { final ddf . catalog . validation . impl . validator . PatternValidator validator = new ddf . catalog . validation . impl . validator . PatternValidator ( "test" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } if ( ( o == null ) || ( ( getClass ...
org . junit . Assert . assertThat ( validator . equals ( validator ) , org . hamcrest . Matchers . is ( true ) )
testFormat ( ) { java . lang . String tpl = "${bsType?string('','123')}" ; java . util . Map < java . lang . String , java . lang . Object > args = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; args . put ( "bsType" , true ) ; "<AssertPlaceHolder>" ; } format ( java . lang . String , j...
org . junit . Assert . assertEquals ( "" , cn . bc . core . util . FreeMarkerUtils . format ( tpl , args ) )
testBuild ( ) { org . lnu . is . domain . subject . Subject context = new org . lnu . is . domain . subject . Subject ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>Subject<sp>e<sp>WHERE<sp>e.status=:status<sp>AND<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; org . lnu . is . pagination . Multiple...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )