input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldIgnoreFromActionWhenNotSpecified ( ) { org . springframework . springfaces . mvc . navigation . annotation . NavigationMappingMethod o = new org . springframework . springfaces . mvc . navigation . annotation . NavigationMappingMethod ( this . beanName , org . springframework . springfaces . mvc . navigation . an...
org . junit . Assert . assertThat ( o . canResolve ( this . context ) , org . hamcrest . Matchers . is ( true ) )
testMaxSleepTime ( ) { final long sleepTime = new org . apache . flink . client . program . rest . retry . ExponentialWaitStrategy ( 1 , 1 ) . sleepTime ( 100 ) ; "<AssertPlaceHolder>" ; } equalTo ( org . apache . flink . api . java . functions . KeySelector ) { org . apache . flink . api . common . typeinfo . TypeInfo...
org . junit . Assert . assertThat ( sleepTime , org . hamcrest . Matchers . equalTo ( 1L ) )
testEenMeerderjarigKindEnOuderZonderOuderlijkGezag ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby2016 . voerRegelUit ( maakHuidigePersoon ( 19750101 ) , maakNieuwePersoon ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . ouder . ouderlijkgeza...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
testMap_valueCastToBoolean ( ) { java . util . Map < java . lang . String , java . lang . Object > testMap = new java . util . HashMap ( ) ; testMap . put ( "key" , "${TEST.boolean:<sp>true}" ) ; com . networknt . config . CentralizedManagement . mergeMap ( testMap ) ; "<AssertPlaceHolder>" ; } mergeMap ( java . util ....
org . junit . Assert . assertTrue ( ( ( testMap . get ( "key" ) ) instanceof java . lang . Boolean ) )
testSortByPropertyNamesValueWithNullPropertyValueDesc ( ) { com . feilong . store . member . User u_null_id = new com . feilong . store . member . User ( ( ( java . lang . Long ) ( null ) ) ) ; com . feilong . store . member . User id12 = new com . feilong . store . member . User ( 12L ) ; com . feilong . store . membe...
org . junit . Assert . assertThat ( list , org . hamcrest . Matchers . contains ( u_null , id12 , id2 , id1 , u_null_id , u_null_id ) )
testToString ( ) { java . util . List < java . lang . String > equivalentStrings = new java . util . ArrayList < java . lang . String > ( ) ; equivalentStrings . add ( "offset=0&limit=50" ) ; equivalentStrings . add ( "offset=0&limit=50" ) ; equivalentStrings . add ( "offset=0&limit=50" ) ; equivalentStrings . add ( "o...
org . junit . Assert . assertTrue ( equivalentStrings . contains ( apiQuery . toString ( ) ) )
testIsNominalLabelExistsById ( ) { qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestNominalLabelResourceFacadeImp . entityManager . getTransaction ( ) . begin ( ) ; java . lang . Boolean result = qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestNominalLabelResourceFacadeImp . nominalLabe...
org . junit . Assert . assertEquals ( java . lang . Boolean . valueOf ( true ) , result )
doesFilesContainSameLinesTestSameFile ( ) { try ( java . io . InputStream inputStream1 = org . talend . dataprep . qa . util . FileComparatorTest . class . getResourceAsStream ( org . talend . dataprep . qa . util . FileComparatorTest . FILE_10L3C_BASE ) ; java . io . InputStream inputStream2 = org . talend . dataprep ...
org . junit . Assert . assertTrue ( result )
testStoreControlHubConfigs ( ) { com . streamsets . datacollector . main . RuntimeInfo runtimeInfo = generateRuntimeInfo ( ) ; com . streamsets . datacollector . main . RuntimeInfo . storeControlHubConfigs ( runtimeInfo , java . util . Collections . singletonMap ( "sch" , "true" ) ) ; com . streamsets . datacollector ....
org . junit . Assert . assertEquals ( "true" , configuration . get ( "sch" , null ) )
testUserTypeImplemented ( ) { sfsb . setupConfig ( ) ; try { sfsb . createGene ( 1 , State . DORMANT ) ; final org . jboss . as . test . compat . jpa . hibernate . transformer . Gene gene = sfsb . getGene ( 1 ) ; "<AssertPlaceHolder>" ; } finally { sfsb . cleanup ( ) ; } } getState ( ) { return this . timerState ; }
org . junit . Assert . assertEquals ( State . DORMANT , gene . getState ( ) )
tuple_array_1 ( ) { org . apache . jena . atlas . lib . tuple . Tuple < java . lang . Integer > tuple1 = org . apache . jena . atlas . lib . tuple . TupleFactory . tuple ( 9 , 8 , 7 ) ; java . lang . Integer [ ] array = tuple1 . asArray ( java . lang . Integer . class ) ; org . apache . jena . atlas . lib . tuple . Tup...
org . junit . Assert . assertEquals ( tuple1 , tuple2 )
testAdminShowAllRole ( ) { org . apache . sqoop . client . SqoopClient client = sqoopServerRunner . getSqoopClient ( org . apache . sentry . tests . e2e . sqoop . ADMIN_USER ) ; client . createRole ( new org . apache . sqoop . model . MRole ( "show_all_role" ) ) ; "<AssertPlaceHolder>" ; } getRoles ( ) { return roles ;...
org . junit . Assert . assertTrue ( ( ( client . getRoles ( ) . size ( ) ) > 0 ) )
sameServiceRegisteredAgain ( ) { org . apache . jackrabbit . oak . spi . whiteboard . DefaultWhiteboardTest . Service1 s1 = new org . apache . jackrabbit . oak . spi . whiteboard . DefaultWhiteboardTest . Service1 ( "s1" ) ; whiteboard . register ( org . apache . jackrabbit . oak . spi . whiteboard . DefaultWhiteboardT...
org . junit . Assert . assertEquals ( of ( "s1" ) , track ( org . apache . jackrabbit . oak . spi . whiteboard . DefaultWhiteboardTest . Service1 . class ) )
testVraagOpKandidaatVaderNietGevonden ( ) { final java . util . List < nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView > kandidaten = brby0002 . bepaalKandidatenVader ( new nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView ( new nl . bzk . brp . model . hisvolledig . impl . k...
org . junit . Assert . assertEquals ( 0 , kandidaten . size ( ) )
hasEntry_testFolderHasInDirectChild ( ) { org . talend . dataprep . folder . store . file . FileSystemUtilsTest . createEntry ( testFolder . resolve ( "foo/toto.dp" ) , "contentId" , "folderId" , FolderContentType . PREPARATION ) ; "<AssertPlaceHolder>" ; } hasEntry ( java . nio . file . Path ) { boolean hasChild ; try...
org . junit . Assert . assertTrue ( org . talend . dataprep . folder . store . file . FileSystemUtils . hasEntry ( testFolder ) )
testEcho ( ) { org . apache . avro . TestProtocolReflect . TestRecord record = new org . apache . avro . TestProtocolReflect . TestRecord ( ) ; record . name = "foo" ; org . apache . avro . TestProtocolReflect . TestRecord echoed = org . apache . avro . TestProtocolReflect . proxy . echo ( record ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( record , echoed )
testCreate ( ) { org . oscarehr . billing . CA . BC . model . LogTeleplanTx entity = new org . oscarehr . billing . CA . BC . model . LogTeleplanTx ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
asSuperclass ( ) { final org . jboss . msc . value . Value < ? extends java . lang . String > value = new org . jboss . msc . value . ImmediateValue < java . lang . String > ( "string" ) ; final org . jboss . msc . value . Value < java . lang . String > recastValue = org . jboss . msc . value . Values . asSuperclass ( ...
org . junit . Assert . assertSame ( value , recastValue )
testSearchAreaCode205 ( ) { stubFor ( get ( urlMatching ( "/v1.0/accounts/12345/availableNumbers.*" ) ) . willReturn ( aResponse ( ) . withStatus ( 200 ) . withHeader ( "Content-Type" , "text/json" ) . withBody ( BandwidthAvailablePhoneNumbersEndpointTestUtils . areaCode205SearchResult ) ) ) ; com . sun . jersey . api ...
org . junit . Assert . assertTrue ( ( ( clientResponse . getStatus ( ) ) == 200 ) )
parseTagWithSimpleHardwareAddress ( ) { cern . c2mon . shared . common . datatag . address . HardwareAddress address = new cern . c2mon . shared . common . datatag . address . impl . SimpleHardwareAddressImpl ( "simpleName" ) ; cern . c2mon . shared . common . datatag . address . HardwareAddress readAddress = serialize...
org . junit . Assert . assertEquals ( address , readAddress )
testFlattenNonNullProperties ( ) { final java . util . List < java . lang . String > expectedResult = newArrayList ( "booleanProperty" , java . lang . Boolean . TRUE . toString ( ) , "intProperty" , "1" , "stringProperty" , "foo" ) ; final com . cloud . utils . ReflectUtilTest . Bean bean = new com . cloud . utils . Re...
org . junit . Assert . assertEquals ( expectedResult , com . cloud . utils . ReflectUtil . flattenProperties ( bean , com . cloud . utils . ReflectUtilTest . Bean . class ) )
getHistogram ( ) { net . centro . rtb . monitoringcenter . MetricCollector metricCollector = net . centro . rtb . monitoringcenter . MonitoringCenter . getMetricCollector ( net . centro . rtb . monitoringcenter . MonitoringCenterTest . class ) ; net . centro . rtb . monitoringcenter . Histogram testHistogram = new net ...
org . junit . Assert . assertEquals ( 1 , metricCollector . getHistogram ( "testHistogram" ) . getCount ( ) )
multiDomainQueryOR ( ) { com . b2international . index . query . Expression actual = eval ( "*<sp>{{<sp>active=false<sp>}}<sp>OR<sp>*<sp>{{<sp>term=\"clin<sp>find\"<sp>}}" ) ; com . b2international . index . query . Expression expected = com . b2international . index . query . Expressions . builder ( ) . should ( Snome...
org . junit . Assert . assertEquals ( expected , actual )
initialConfiguration ( ) { java . io . File logDir = new java . io . File ( org . apache . aries . transaction . internal . LogConversionTest . BASE , "initialConfiguration" ) ; org . apache . commons . io . FileUtils . deleteDirectory ( logDir ) ; logDir . mkdirs ( ) ; java . util . Dictionary < java . lang . String ,...
org . junit . Assert . assertFalse ( org . apache . aries . transaction . internal . TransactionLogUtils . copyActiveTransactions ( null , properties ) )
testValidSessionIsCreated ( ) { uk . co . hadoopathome . kafkastreams . drools . DroolsRulesApplier rulesApplier = new uk . co . hadoopathome . kafkastreams . drools . DroolsRulesApplier ( "IfContainsEPrepend0KS" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( rulesApplier )
gettingNextElementFromProgrammeReturnsNextElementIterable ( ) { org . atlasapi . remotesite . bbc . nitro . PaginatedProgrammeRequest paginatedProgrammeRequest = new org . atlasapi . remotesite . bbc . nitro . PaginatedProgrammeRequest ( client , com . google . common . collect . ImmutableList . of ( programmesQuery , ...
org . junit . Assert . assertTrue ( programmes . hasNext ( ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . social . kernel . model . SocialRelation newSocialRelation = addSocialRelation ( ) ; com . liferay . social . kernel . model . SocialRelation existingSocialRelation = _persistence . findByPrimaryKey ( newSocialRelation . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( existingSocialRelation , newSocialRelation )
testEmptyByteArray ( ) { java . lang . String s = software . amazon . awssdk . utils . IoUtils . toUtf8String ( new java . io . ByteArrayInputStream ( new byte [ 0 ] ) ) ; "<AssertPlaceHolder>" ; } toUtf8String ( java . io . InputStream ) { return new java . lang . String ( software . amazon . awssdk . utils . IoUtils ...
org . junit . Assert . assertEquals ( "" , s )
getValueStringByKey_good_case ( ) { java . util . HashMap < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "key1" , "value1" ) ; map . put ( "key2" , "value2" ) ; map . put ( "key3" , "value3" ) ; java . lang . String keyNa...
org . junit . Assert . assertEquals ( expResult , result )
testSendNoRetry_unauthorized ( ) { setResponseExpectations ( 401 , "" ) ; try { sender . sendNoRetry ( message , regId ) ; org . junit . Assert . fail ( "Should<sp>have<sp>thrown<sp>InvalidRequestException" ) ; } catch ( com . google . android . gcm . server . InvalidRequestException e ) { "<AssertPlaceHolder>" ; } } g...
org . junit . Assert . assertEquals ( 401 , e . getHttpStatusCode ( ) )
emptyToNumberTest ( ) { java . lang . Object a = "" ; java . lang . Number number = cn . hutool . core . convert . Convert . toNumber ( a ) ; "<AssertPlaceHolder>" ; } toNumber ( java . lang . Object ) { return cn . hutool . core . convert . Convert . toNumber ( value , null ) ; }
org . junit . Assert . assertNull ( number )
testRestWithLengthOneArrayAttributeOp ( ) { org . stringtemplate . v4 . ST e = new org . stringtemplate . v4 . ST ( "<rest(names)>" ) ; e . add ( "names" , new java . lang . String [ ] { "Ter" } ) ; java . lang . String expecting = "" ; "<AssertPlaceHolder>" ; } render ( ) { return render ( java . util . Locale . getDe...
org . junit . Assert . assertEquals ( expecting , e . render ( ) )
testFindOne ( ) { prepareForQuery ( ) ; in . cubestack . apps . android . storm . entitites . TestEntity response = baseService . findOne ( in . cubestack . apps . android . storm . entitites . TestEntity . class , baseService . restrictionsFor ( in . cubestack . apps . android . storm . entitites . TestEntity . class ...
org . junit . Assert . assertNotNull ( response )
testGetOutputFiles ( ) { uk . ac . tgac . rampart . stage . Mecq . EcqArgs args = new uk . ac . tgac . rampart . stage . Mecq . EcqArgs ( ) ; args . setTool ( "SICKLE_V1.2" ) ; args . setOutputDir ( new java . io . File ( "test/" ) ) ; uk . ac . tgac . conan . core . data . Library lib = new uk . ac . tgac . conan . co...
org . junit . Assert . assertTrue ( ( ( files . size ( ) ) == 3 ) )
testSingleStoreOfProductWithTodaysDate ( ) { org . greencheek . related . api . indexing . RelatedItem productToStore = createRelatedItemWithCurrentDay ( ) ; indexAndFlush ( org . greencheek . related . indexing . elasticsearch . Arrays . asList ( productToStore ) ) ; int count = server . getDocCount ( org . greencheek...
org . junit . Assert . assertEquals ( 1 , count )
testGetXmlClobPropertyAndUnmarshallToObjectConfigurationValueIsBlank ( ) { org . finra . herd . model . jpa . ConfigurationEntity configurationEntity = mock ( org . finra . herd . model . jpa . ConfigurationEntity . class ) ; when ( configurationEntity . getValueClob ( ) ) . thenReturn ( org . finra . herd . service . ...
org . junit . Assert . assertNull ( result )
testThatRerankStrategyForBoostingIsNotAppliedIfRqAlreadyExists ( ) { com . s24 . search . solr . component . BmaxBoostTermComponent component = new com . s24 . search . solr . component . BmaxBoostTermComponent ( ) ; component . init ( initArgs ) ; org . apache . solr . common . params . ModifiableSolrParams params = n...
org . junit . Assert . assertThat ( argument . getValue ( ) . getParams ( "rq" ) , org . hamcrest . CoreMatchers . equalTo ( new java . lang . String [ ] { "dummy" } ) )
validateInvalidCR ( ) { net . maritimecloud . identityregistry . model . data . CertificateRevocation cr = new net . maritimecloud . identityregistry . model . data . CertificateRevocation ( ) ; cr . setRevokationReason ( "not-valid-reason" ) ; cr . setRevokedAt ( null ) ; java . util . Set < javax . validation . Const...
org . junit . Assert . assertEquals ( violations . size ( ) , 2 )
testGetExecution ( ) { java . util . List < org . camunda . bpm . engine . runtime . Execution > executions = runtimeService . createExecutionQuery ( ) . processDefinitionKey ( "oneTaskProcess" ) . list ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return deletedCache . isEmpty ( ) ; }
org . junit . Assert . assertFalse ( executions . isEmpty ( ) )
testGetInternalNode ( ) { org . geolatte . graph . InternalNode < java . lang . Object , java . lang . Object > node = ( ( org . geolatte . graph . InternalNode < java . lang . Object , java . lang . Object > ) ( org . mockito . Mockito . mock ( org . geolatte . graph . InternalNode . class ) ) ) ; org . geolatte . gra...
org . junit . Assert . assertEquals ( node , basicPredGraph . getInternalNode ( ) )
testParsing ( ) { java . io . File f = new java . io . File ( "src/test/resources/source1.8.txt" ) ; org . walkmod . javalang . ast . CompilationUnit cu = org . walkmod . javalang . ASTManager . parse ( f ) ; "<AssertPlaceHolder>" ; System . out . println ( cu . toString ( ) ) ; } parse ( java . io . File ) { return or...
org . junit . Assert . assertNotNull ( cu )
datumIngangVoorDatumEinde ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Bijhoudingsautorisatie bijhoudingsautorisatie = new nl . bzk . algemeenbrp . dal . domein . brp . entity . Bijhoudingsautorisatie ( false ) ; bijhoudingsautorisatie . setDatumIngang ( 20160605 ) ; bijhoudingsautorisatie . setDa...
org . junit . Assert . assertEquals ( 0 , errorCount ( bijhoudingsautorisatie ) )
testidID ( ) { com . box . l10n . mojito . po . PoPluralRule rulesForBcp47Tag = com . box . l10n . mojito . po . PoPluralRule . fromBcp47Tag ( "id-ID" ) ; "<AssertPlaceHolder>" ; } fromBcp47Tag ( java . lang . String ) { com . box . l10n . mojito . po . PoPluralRule . logger . debug ( "Get<sp>po<sp>plural<sp>rules<sp>f...
org . junit . Assert . assertEquals ( PoPluralRule . ONE_FORM , rulesForBcp47Tag )
testGetAttestationFailueReport ( ) { System . out . println ( "getAttestationFailueReport" ) ; com . intel . mtwilson . as . business . Hostname hostName = null ; java . lang . Boolean failureOnly = false ; com . intel . mtwilson . as . business . ReportsBO instance = new com . intel . mtwilson . as . business . Report...
org . junit . Assert . assertEquals ( expResult , result )
testFindByDemographicNo ( ) { int demographicNo1 = 111 ; int demographicNo2 = 222 ; org . oscarehr . common . model . DemographicMerged demoMerged1 = new org . oscarehr . common . model . DemographicMerged ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( demoMerged1 ) ...
org . junit . Assert . assertTrue ( true )
getEncoding ( ) { final net . jadler . Request req = net . jadler . Request . builder ( ) . method ( net . jadler . RequestTest . METHOD ) . requestURI ( java . net . URI . create ( "http://localhost/" ) ) . encoding ( net . jadler . RequestTest . UTF_8_CHARSET ) . build ( ) ; "<AssertPlaceHolder>" ; } getEncoding ( ) ...
org . junit . Assert . assertThat ( req . getEncoding ( ) , is ( net . jadler . RequestTest . UTF_8_CHARSET ) )
testReOrganizeSpace ( ) { int iTuplePerFrame = 3 ; java . util . Map < java . lang . Integer , java . lang . Integer > mapPrepare = prepareFixedSizeTuples ( iTuplePerFrame , EXTRA_BYTES_FOR_DELETABLE_FRAME , 0 ) ; java . util . Map < java . lang . Integer , java . lang . Integer > copyMap = new java . util . HashMap ( ...
org . junit . Assert . assertTrue ( ( ( mapInserted2 . size ( ) ) > 0 ) )
testGetStartUpstreamsSimple ( ) { hudson . model . FreeStyleProject projectA = jenkins . createFreeStyleProject ( "A" ) ; hudson . model . FreeStyleProject projectB = jenkins . createFreeStyleProject ( "B" ) ; hudson . model . FreeStyleProject projectC = jenkins . createFreeStyleProject ( "C" ) ; projectA . getPublishe...
org . junit . Assert . assertEquals ( 2 , upstrems . size ( ) )
testCase2 ( ) { java . lang . String s = "SELECT<sp>case<sp>when<sp>a<sp>><sp>0<sp>then<sp>'more'<sp>when<sp>a<sp><0<sp>then<sp>'less'<sp>else<sp>'0'<sp>end<sp>from<sp>dbo.test" ; int result = calculate ( s ) ; "<AssertPlaceHolder>" ; } calculate ( java . lang . String ) { org . sonar . plugins . tsql . antlr . AntlrCo...
org . junit . Assert . assertEquals ( 3 , result )
testEvalVariable ( ) { org . nd4j . autodiff . samediff . SameDiff sameDiff = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . linalg . api . ndarray . INDArray ones = org . nd4j . linalg . factory . Nd4j . ones ( 4 ) ; org . nd4j . linalg . api . ndarray . INDArray twos = ones . add ( ones ) ; o...
org . junit . Assert . assertEquals ( twos , inputResult . eval ( ) )
testRemoveParameters ( ) { System . out . println ( "removeParameters" ) ; org . netbeans . modules . gradle . api . execute . GradleCommandLine . Parameter param = GradleCommandLine . Parameter . INIT_SCRIPT ; org . netbeans . modules . gradle . api . execute . GradleCommandLine instance = new org . netbeans . modules...
org . junit . Assert . assertFalse ( instance . hasParameter ( param ) )
testGetPartition_availablePartitionsChanged_butSelectedPartitionAvailable ( ) { com . taobao . metamorphosis . Message message = this . createDefaultMessage ( ) ; com . taobao . metamorphosis . cluster . Partition partition = this . selector . getPartition ( message . getTopic ( ) , java . util . Arrays . asList ( new ...
org . junit . Assert . assertEquals ( new com . taobao . metamorphosis . cluster . Partition ( "0-0" ) , partition )
testPublishConfigChangesNotNull ( ) { com . google . gson . JsonObject requestJson = new com . google . gson . JsonObject ( ) ; com . sun . jersey . api . client . ClientResponse response = com . cognizant . devops . platformservice . rest . util . PlatformServiceUtil . publishConfigChanges ( "localhost" , 7474 , reque...
org . junit . Assert . assertNotNull ( response )
getMeasurand_returnEnergyActiveImportRegister ( ) { java . lang . String expected = "Energy.Active.Import.Register" ; java . lang . String measurand = sampledValue . getMeasurand ( ) ; "<AssertPlaceHolder>" ; } getMeasurand ( ) { return measurand ; }
org . junit . Assert . assertThat ( measurand , org . hamcrest . CoreMatchers . equalTo ( expected ) )
testGetClosestPositionByTimeExact ( ) { initialize ( ) ; "<AssertPlaceHolder>" ; } getClosestPosition ( slash . common . type . CompactCalendar , long ) { return delegate . getClosestPosition ( time , threshold ) ; }
org . junit . Assert . assertEquals ( 1 , route . getClosestPosition ( b . getTime ( ) , 0 ) )
testAcceptValidParameter2 ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "exit<sp>" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleState ) { org...
org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( true ) )
fakir_can_build_you_a_customer_in_one_line ( ) { com . oneeyedmen . fakir . ExampleTest . Customer customer = com . oneeyedmen . fakir . Faker . fakeA ( com . oneeyedmen . fakir . ExampleTest . Customer . class ) ; "<AssertPlaceHolder>" ; } fakeA ( java . lang . Class ) { return com . oneeyedmen . fakir . Faker . fakeA...
org . junit . Assert . assertTrue ( ( customer instanceof com . oneeyedmen . fakir . ExampleTest . Customer ) )
shouldMajor ( ) { com . inventage . tools . versiontiger . internal . impl . MavenVersionImpl version = new com . inventage . tools . versiontiger . internal . impl . MavenVersionImpl ( "1.2.3-SNAPSHOT" , versionFactory ) ; int result = version . major ( ) ; "<AssertPlaceHolder>" ; } major ( ) { return gv . major ( ) ;...
org . junit . Assert . assertEquals ( 1 , result )
testProcess_invalidQuery ( ) { final java . lang . String query = "Check<sp>https://localhost:8985<sp>that<sp>lag" ; net . roboconf . agent . monitoring . internal . rest . RestHandler handler = new net . roboconf . agent . monitoring . internal . rest . RestHandler ( ) ; handler . setAgentId ( net . roboconf . agent ....
org . junit . Assert . assertNull ( handler . process ( ) )
testCount ( ) { org . apache . uima . collection . CollectionReader cr = org . apache . uima . fit . factory . CollectionReaderFactory . createReader ( ch . epfl . bbp . uima . cr . BioNLPGeniaEventsCollectionReader . class , BlueUima . PARAM_INPUT_DIRECTORY , ch . epfl . bbp . uima . cr . BioNLPGeniaEventsReaderTest ....
org . junit . Assert . assertEquals ( 3 , i )
assertThatRemovedThingIsNotReturnedByGetThings ( ) { org . eclipse . smarthome . core . thing . Thing thing = org . eclipse . smarthome . core . thing . binding . builder . ThingBuilder . create ( org . eclipse . smarthome . core . thing . factory . ManagedThingProviderOSGiTest . THING_TYPE_UID , org . eclipse . smarth...
org . junit . Assert . assertThat ( things . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testRefereesInstance ( ) { System . out . println ( "referees-instance" ) ; java . lang . String query = "select<sp>referees(heap.findObject(1684166976))" ; long [ ] refereesTest = new long [ ] { 1684166992 } ; final java . util . List < java . lang . Long > referees = new java . util . ArrayList < java . lang . Long >...
org . junit . Assert . assertEquals ( refereesTest . length , referees . size ( ) )
testBackslashEscaping2 ( ) { final java . lang . String code = "" + ( ( ( "<sp>,<sp>,<sp>\n" + "<sp>\t<sp>,<sp>,<sp>\n" ) + "<sp>//<sp>,<sp>/,<sp>,<sp>/,\n" ) + "" ) ; final java . lang . String [ ] [ ] res = new java . lang . String [ ] [ ] { new java . lang . String [ ] { "<sp>" , "<sp>" , "<sp>" } , new java . lang ...
org . junit . Assert . assertTrue ( ( ( records . size ( ) ) > 0 ) )
testSerial ( ) { org . apache . commons . math4 . linear . ArrayFieldVector < org . apache . commons . math4 . fraction . Fraction > v = new org . apache . commons . math4 . linear . ArrayFieldVector ( vec1 ) ; "<AssertPlaceHolder>" ; } serializeAndRecover ( java . lang . Object ) { try { java . io . ByteArrayOutputStr...
org . junit . Assert . assertEquals ( v , org . apache . commons . math4 . TestUtils . serializeAndRecover ( v ) )
testS2v ( ) { final byte [ ] macKey = new byte [ ] { ( ( byte ) ( 255 ) ) , ( ( byte ) ( 254 ) ) , ( ( byte ) ( 253 ) ) , ( ( byte ) ( 252 ) ) , ( ( byte ) ( 251 ) ) , ( ( byte ) ( 250 ) ) , ( ( byte ) ( 249 ) ) , ( ( byte ) ( 248 ) ) , ( ( byte ) ( 247 ) ) , ( ( byte ) ( 246 ) ) , ( ( byte ) ( 245 ) ) , ( ( byte ) ( 2...
org . junit . Assert . assertArrayEquals ( expected , result )
shouldReadACommandLogEntry ( ) { org . neo4j . kernel . impl . transaction . log . entry . LogEntryVersion version = LogEntryVersion . CURRENT ; org . neo4j . kernel . impl . transaction . command . Command . NodeCommand nodeCommand = new org . neo4j . kernel . impl . transaction . command . Command . NodeCommand ( new...
org . junit . Assert . assertEquals ( command , logEntry )
testFull ( ) { when ( mockFactory . createItem ( anyString ( ) , anyString ( ) ) ) . thenReturn ( mockItem ) ; org . eclipse . smarthome . core . items . Item res = itemBuilderFactory . newItemBuilder ( "String" , "test" ) . withCategory ( "category" ) . withGroups ( java . util . Arrays . asList ( "a" , "b" ) ) . with...
org . junit . Assert . assertSame ( mockItem , res )
getCommitHistoryWhenSkipIsNotZeroAndLimitIsIntegerMax_shouldReturnTailCommits ( ) { java . lang . String branch = "orphan_branch" ; writeSomethingToCache ( ) ; org . eclipse . jgit . revwalk . RevCommit commit1 = commitToBranch ( branch ) ; writeSomethingToCache ( ) ; org . eclipse . jgit . revwalk . RevCommit commit2 ...
org . junit . Assert . assertEquals ( expected , actual )
testGetLocalName ( ) { final org . slc . sli . modeling . xsd . XsdAttributeName attr = XsdAttributeName . BASE ; "<AssertPlaceHolder>" ; } getLocalName ( ) { return localName ; }
org . junit . Assert . assertEquals ( XsdAttributeName . BASE . getLocalName ( ) , attr . getLocalName ( ) )
equalsReflexiveTest ( ) { System . out . print ( "-><sp>Reflexive<sp>equals<sp>-<sp>" ) ; final java . lang . String name = "Name" ; final java . lang . String email = "Email" ; final java . lang . String phone = "Phone" ; final ua . com . alexcoffee . model . user . User user = ua . com . alexcoffee . model . user . U...
org . junit . Assert . assertTrue ( user . equals ( user ) )
inject_A$Class ( ) { com . github . seratch . taskun . inject . S2TaskunInjector target = new com . github . seratch . taskun . inject . S2TaskunInjector ( ) ; java . lang . Class < ? > clazz = com . github . seratch . taskun . scheduler . config . TaskunConfig . class ; java . lang . Object actual = target . inject ( ...
org . junit . Assert . assertNotNull ( actual )
testGetIssuesForEmptyLabel ( ) { java . util . List < org . libreplan . importers . jira . IssueDTO > issues = org . libreplan . importers . JiraRESTClient . getIssues ( properties . getProperty ( "url" ) , properties . getProperty ( "username" ) , properties . getProperty ( "password" ) , JiraRESTClient . PATH_SEARCH ...
org . junit . Assert . assertTrue ( ( ( issues . size ( ) ) > 0 ) )
GetPublishStatus ( ) { com . smartsheet . api . Smartsheet ss = com . smartsheet . api . sdk_test . HelperFunctions . SetupClient ( "Get<sp>Sight<sp>Publish<sp>Status" ) ; try { com . smartsheet . api . sdk_test . SightPublish publish = ss . sightResources ( ) . getPublishStatus ( 812L ) ; "<AssertPlaceHolder>" ; } cat...
org . junit . Assert . assertEquals ( publish . getReadOnlyFullEnabled ( ) , true )
testNoSuppressionSomethingElseS ( ) { net . sourceforge . pmd . Report rpt = new net . sourceforge . pmd . Report ( ) ; runTestFromString ( net . sourceforge . pmd . lang . apex . SuppressWarningsTest . TEST11 , new net . sourceforge . pmd . lang . apex . FooRule ( ) , rpt , net . sourceforge . pmd . lang . LanguageReg...
org . junit . Assert . assertEquals ( 2 , rpt . size ( ) )
toRequestFailureTest ( ) { final org . opendaylight . controller . cluster . access . concepts . RequestException exception = new org . opendaylight . controller . cluster . access . commands . DeadTransactionException ( com . google . common . collect . ImmutableRangeSet . of ( ) ) ; final org . opendaylight . control...
org . junit . Assert . assertNotNull ( failure )
deleteInvoiceLine ( ) { de . metas . adempiere . test . POTest . recordGenericExpectations ( ilPO , 10 ) ; new mockit . Expectations ( ) { { de . metas . util . Services . get ( org . adempiere . invoice . service . IInvoiceDAO . class ) ; result = invoicePA ; invoicePA . retrieveReferringLines ( POTest . CTX , 10 , PO...
org . junit . Assert . assertNull ( result )
whenTrueFiresWhenFalseChangesToTrue ( ) { final org . tessell . tests . model . dsl . BooleanProperty b = booleanProperty ( "b" , false ) ; final org . tessell . widgets . StubWidget w = new org . tessell . widgets . StubWidget ( ) ; binder . when ( b ) . is ( true ) . set ( "c" ) . on ( w ) ; b . set ( true ) ; "<Asse...
org . junit . Assert . assertThat ( w , hasStyle ( "c" ) )
testUpdate_PhoneList ( ) { com . jmethods . catatumbo . entities . PhoneList entity = com . jmethods . catatumbo . entities . PhoneList . getSample1 ( ) ; entity = com . jmethods . catatumbo . EmbeddedCollectionTest . em . insert ( entity ) ; entity = com . jmethods . catatumbo . EmbeddedCollectionTest . em . load ( co...
org . junit . Assert . assertTrue ( entity . equals ( loadedEntity ) )
testGetNativeDataTypeClass ( ) { org . pentaho . di . core . plugins . PluginRegistry . addPluginType ( org . pentaho . di . core . row . value . ValueMetaPluginType . getInstance ( ) ) ; org . pentaho . di . core . plugins . PluginRegistry . init ( ) ; java . lang . String [ ] valueMetaNames = org . pentaho . di . cor...
org . junit . Assert . assertTrue ( vm . getNativeDataTypeClass ( ) . equals ( vmi . getNativeDataTypeClass ( ) ) )
copyStringValidOutputStreamPosBufSz ( ) { java . lang . String probe = "A<sp>string<sp>⍅ï" ; java . io . ByteArrayOutputStream OutputStream = new org . apache . maven . shared . utils . io . IOUtilTest . DontCloseByteArrayOutputStream ( ) ; org . apache . maven . shared . utils . io . IOUtil . copy ( probe , OutputStre...
org . junit . Assert . assertThat ( OutputStream . toByteArray ( ) , org . hamcrest . CoreMatchers . is ( probe . getBytes ( ) ) )
testIDLImportReferenceProxy ( ) { java . io . File file = new java . io . File ( com . baidu . bjf . remoting . protobuf . idlgenerate . EnumIDLGeneratorTest . class . getResource ( "addressbook.proto" ) . getFile ( ) ) ; java . util . Map < java . lang . String , com . baidu . bjf . remoting . protobuf . IDLProxyObjec...
org . junit . Assert . assertEquals ( 2 , map . size ( ) )
collectMixedException ( ) { io . trane . future . Promise < java . lang . Integer > p1 = io . trane . future . Promise . apply ( ) ; io . trane . future . Promise < java . lang . Integer > p2 = io . trane . future . Promise . apply ( ) ; io . trane . future . Future < java . util . List < java . lang . Integer > > futu...
org . junit . Assert . assertArrayEquals ( expected , get ( future ) . toArray ( ) )
test2502355_zoomInDomain ( ) { org . jfree . data . xy . DefaultXYDataset dataset = new org . jfree . data . xy . DefaultXYDataset ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createXYLineChart ( "TestChart" , "X" , "Y" , dataset , PlotOrientation . VERTICAL , false , false , fals...
org . junit . Assert . assertEquals ( 1 , this . chartChangeEvents . size ( ) )
reserveConnection_dataSourceSpecified_shouldReturnValidConnection ( ) { java . sql . Connection connection = org . easymock . EasyMock . createMock ( java . sql . Connection . class ) ; connection . setAutoCommit ( false ) ; org . easymock . EasyMock . expectLastCall ( ) ; javax . sql . DataSource ds = org . easymock ....
org . junit . Assert . assertEquals ( connection , c )
getsWithQueryParametersFrom1_0OriginsViaExplicitProxiesCanNotBeCacheableEvenWithExpires ( ) { policy = new org . apache . hc . client5 . http . impl . cache . ResponseCachingPolicy ( 0 , true , true , true ) ; request = new org . apache . hc . core5 . http . message . BasicHttpRequest ( "GET" , "/foo?s=bar" ) ; respons...
org . junit . Assert . assertFalse ( policy . isResponseCacheable ( request , response ) )
testGetMissingRequiredPropertiesWithDefaultPropertiesAndDefault ( ) { com . google . cloud . tools . eclipse . dataflow . core . launcher . options . PipelineOptionsProperty property = new com . google . cloud . tools . eclipse . dataflow . core . launcher . options . PipelineOptionsProperty ( com . google . cloud . to...
org . junit . Assert . assertTrue ( missingProperties . getMissingProperties ( ) . isEmpty ( ) )
test_2 ( ) { org . finra . herd . swaggergen . ExampleXmlGenerator exampleXmlGenerator = new org . finra . herd . swaggergen . ExampleXmlGenerator ( LOG , org . finra . herd . swaggergen . test . exampleXmlGenerator . DatetimeCase . class ) ; java . lang . String exampleXml = exampleXmlGenerator . getExampleXml ( ) ; j...
org . junit . Assert . assertTrue ( matcher . find ( ) )
toOrgJSONObject ( ) { org . json . JSONObject orig = new org . json . JSONObject ( "{\"a\":{\"b\":1}}" ) ; org . json . JSONObject actual = org . everit . json . schema . loader . SchemaLoader . toOrgJSONObject ( ( ( org . everit . json . schema . loader . JsonObject ) ( org . everit . json . schema . loader . JsonValu...
org . junit . Assert . assertEquals ( orig . toString ( ) , actual . toString ( ) )
testInformLeaderLost ( ) { broadcaster . informLeaderLost ( io . vlingo . wire . node . Id . of ( 3 ) , false ) ; "<AssertPlaceHolder>" ; } informLeaderLost ( io . vlingo . wire . node . Id , boolean ) { }
org . junit . Assert . assertEquals ( 1 , application . informLeaderLost . get ( ) )
testGetWidth ( ) { System . out . println ( "getWidth" ) ; java . awt . FontMetrics fm = g . getFontMetrics ( ) ; final java . lang . String title = "MyTitle" ; mudmap2 . backend . legend . LegendEntryTitle instance = new mudmap2 . backend . legend . LegendEntryTitle ( title ) ; int expResult = fm . stringWidth ( title...
org . junit . Assert . assertEquals ( expResult , result )
testSelectEmptyIn ( ) { createArtistsDataSet ( ) ; org . apache . cayenne . query . SelectQuery < org . apache . cayenne . testdo . testmap . Artist > query = new org . apache . cayenne . query . SelectQuery ( org . apache . cayenne . testdo . testmap . Artist . class ) ; org . apache . cayenne . exp . Expression qual ...
org . junit . Assert . assertEquals ( 0 , objects . size ( ) )
testVoerRegelUitLandMigratieIsNederland ( ) { nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl persoon = maakPersoon ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . migratie . BRBY0540Test . HEEFT_GEEN_BVP ) ; nl . bzk . brp . model . bericht . kern . Persoon...
org . junit . Assert . assertEquals ( persoonBericht , berichtEntiteits . get ( 0 ) )
remove ( ) { org . pdfsam . test . HitTestListener < org . pdfsam . ui . commons . RemoveSelectedEvent > listener = new org . pdfsam . test . HitTestListener ( ) ; eventStudio ( ) . add ( org . pdfsam . ui . commons . RemoveSelectedEvent . class , listener , org . pdfsam . ui . selection . multiple . SelectionTableTool...
org . junit . Assert . assertTrue ( listener . isHit ( ) )
testGetNbEvents ( ) { long result = fixture . getNbEvents ( ) ; "<AssertPlaceHolder>" ; } getNbEvents ( ) { return fNbEvents ; }
org . junit . Assert . assertEquals ( 1L , result )
getTableOnPartitionedTable ( ) { com . hotels . bdp . circustrain . core . replica . FullReplicationReplicaLocationManager manager = new com . hotels . bdp . circustrain . core . replica . FullReplicationReplicaLocationManager ( sourceLocationManager , com . hotels . bdp . circustrain . core . replica . FullReplication...
org . junit . Assert . assertThat ( path , org . hamcrest . CoreMatchers . is ( new org . apache . hadoop . fs . Path ( com . hotels . bdp . circustrain . core . replica . FullReplicationReplicaLocationManagerTest . TABLE_PATH ) ) )
testPercentile2 ( ) { org . nd4j . linalg . api . ndarray . INDArray array = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 9 , 9 , DataType . DOUBLE ) ; org . apache . commons . math3 . stat . descriptive . rank . Percentile percentile = new org . apache . commons . math3 . stat . descriptive . rank . Percentil...
org . junit . Assert . assertEquals ( exp , array . percentileNumber ( 50 ) )
yield_A$Function1_emptyGenerator ( ) { com . m3 . scalaflavor4j . CollectionLike < java . lang . String > xs1 = com . m3 . scalaflavor4j . Seq . apply ( "a" , "b" ) ; com . m3 . scalaflavor4j . CollectionLike < java . lang . Integer > xs2 = com . m3 . scalaflavor4j . Seq . apply ( 1 , 2 , 3 , 4 , 5 ) ; com . m3 . scala...
org . junit . Assert . assertThat ( rs . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 0 ) ) )
testDeleteEntity ( ) { handler . addRequest ( false , "DELETE" , "/qcbin/rest/domains/domain/projects/project/defects/86" , 200 ) ; handler . async ( ) ; addEntityListener ( new com . hp . alm . ali . idea . services . EntityNotFound ( handler , "defect" , 86 , true ) ) ; com . hp . alm . ali . idea . model . Entity de...
org . junit . Assert . assertTrue ( deleted )
testPathTraversalWithDot ( ) { javax . servlet . http . HttpServletRequest request = createNiceMock ( javax . servlet . http . HttpServletRequest . class ) ; javax . servlet . http . HttpServletResponse response = createNiceMock ( javax . servlet . http . HttpServletResponse . class ) ; javax . servlet . FilterChain ch...
org . junit . Assert . assertNotNull ( resolved )
setGlobalTimezone ( ) { biweekly . ICalendar ical = new biweekly . ICalendar ( ) ; ical . getProperties ( ) . clear ( ) ; biweekly . component . VEvent event = new biweekly . component . VEvent ( ) ; event . getProperties ( ) . clear ( ) ; event . setDateStart ( utc ( "1996-07-04<sp>12:00:00" ) ) ; ical . addEvent ( ev...
org . junit . Assert . assertEquals ( expected , actual )