input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
notHomonymSparseHigherOrderRanks ( ) { org . eol . globi . domain . TaxonImpl taxon = new org . eol . globi . domain . TaxonImpl ( ) ; taxon . setName ( "Medicago<sp>sativa" ) ; taxon . setPath ( "Biota<sp>|<sp>Plantae<sp>|<sp>Tracheophyta<sp>|<sp>Magnoliopsida<sp>|<sp>Fabales<sp>|<sp>Fabaceae<sp>|<sp>Medicago<sp>|<sp>...
org . junit . Assert . assertFalse ( org . eol . globi . service . TaxonUtil . likelyHomonym ( taxon , otherTaxon ) )
testDefaultSourceNoResources ( ) { org . eclipse . ceylon . common . FileUtil . delete ( new java . io . File ( "build/test-modules" ) ) ; org . eclipse . ceylon . compiler . js . ToolModel < org . eclipse . ceylon . compiler . js . CeylonCompileJsTool > tool = pluginLoader . loadToolModel ( "compile-js" ) ; "<AssertPl...
org . junit . Assert . assertNotNull ( tool )
testSupportForCustomPartitionType ( ) { org . picketlink . idm . config . IdentityConfigurationBuilder builder = new org . picketlink . idm . config . IdentityConfigurationBuilder ( ) ; builder . named ( "default" ) . stores ( ) . file ( ) . supportType ( org . picketlink . test . idm . config . CustomPartition . class...
org . junit . Assert . assertNotNull ( partitionManager . getPartition ( org . picketlink . test . idm . config . CustomPartition . class , "Custom<sp>Partition" ) )
testDeserialize ( ) { net . floodlightcontroller . packet . IPacket packet = new net . floodlightcontroller . packet . IPv4 ( ) ; packet . deserialize ( pktSerialized , 0 , pktSerialized . length ) ; byte [ ] pktSerialized1 = packet . serialize ( ) ; "<AssertPlaceHolder>" ; } serialize ( ) { int length = 4 ; byte [ ] p...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( pktSerialized , pktSerialized1 ) )
testDecorateNullText ( ) { "<AssertPlaceHolder>" ; } decorate ( java . lang . String , org . springframework . roo . support . util . AnsiEscapeCode [ ] ) { if ( org . apache . commons . lang3 . StringUtils . isEmpty ( text ) ) { return text ; } final java . lang . StringBuilder sb = new java . lang . StringBuilder ( )...
org . junit . Assert . assertNull ( org . springframework . roo . support . util . AnsiEscapeCode . decorate ( null , org . springframework . roo . support . util . AnsiEscapeCode . values ( ) [ 0 ] ) )
getInvisibleProductKeysWithUsersFlag ( ) { container . login ( user . getKey ( ) , org . oscm . usergroupservice . dao . ROLE_TECHNOLOGY_MANAGER ) ; prepareInvisibleProducts ( ) ; java . util . List < org . oscm . usergroupservice . dao . UserGroupToInvisibleProduct > result = runTX ( new java . util . concurrent . Cal...
org . junit . Assert . assertEquals ( 3 , result . size ( ) )
testCreateLunBySize ( ) { com . iwave . ext . netapp . Lun lun = new com . iwave . ext . netapp . Lun ( com . iwave . ext . netapp . LunTest . server , com . iwave . ext . netapp . LunTest . LUN_PATH ) ; long actualSize = lun . createLunBySize ( LunOSType . windows , com . iwave . ext . netapp . LunTest . INIT_LUN_SIZE...
org . junit . Assert . assertEquals ( com . iwave . ext . netapp . LunTest . INIT_LUN_SIZE , actualSize )
testGetMissingRomsFilesWithEmptyRomPath ( ) { org . tibennetwork . iarcade . mame . FakeMameRuntime mame = new org . tibennetwork . iarcade . mame . FakeMameRuntime ( ) ; java . util . List < java . io . InputStream > inputStreams = new java . util . ArrayList ( ) ; inputStreams . add ( new java . io . FileInputStream ...
org . junit . Assert . assertThat ( missingFiles , org . hamcrest . CoreMatchers . equalTo ( expectedMissingFiles ) )
testMusAssumptions ( ) { final org . prop4j . explain . solvers . MusExtractor solver = getInstance ( ) ; solver . addFormula ( new org . prop4j . And ( "A" , "B" ) ) ; solver . addAssumption ( "A" , false ) ; final java . util . Set < org . prop4j . Node > expected = new java . util . LinkedHashSet ( ) ; expected . ad...
org . junit . Assert . assertEquals ( expected , actual )
resolvesCourseDidInCourseOfferingCorrectly ( ) { org . slc . sli . ingestion . NeutralRecordEntity courseOfferingEntity = loadEntity ( "didTestEntities/courseOffering.json" ) ; resolveInternalId ( courseOfferingEntity ) ; java . util . Map < java . lang . String , java . lang . Object > courseOfferingBody = courseOffer...
org . junit . Assert . assertEquals ( courseReferenceDID , courseOfferingResolvedRef )
testResolveTypeObjectToGeneric ( ) { java . lang . Class < java . lang . Object > type = java . lang . Object . class ; org . apache . avro . Schema schema = org . apache . avro . SchemaBuilder . record ( "User" ) . fields ( ) . requiredString ( "name" ) . requiredString ( "color" ) . endRecord ( ) ; java . lang . Clas...
org . junit . Assert . assertEquals ( expResult , result )
equals_ignore_components ( ) { biweekly . util . ICalDate date1 = new biweekly . util . ICalDate ( biweekly . util . TestUtils . date ( "2014-10-01<sp>12:00:00" ) , new biweekly . util . DateTimeComponents ( 2014 , 10 , 1 , 12 , 0 , 0 , false ) , true ) ; biweekly . util . ICalDate date2 = new biweekly . util . ICalDat...
org . junit . Assert . assertEquals ( date1 , date2 )
testHeterolyticCleavagePBReaction ( ) { org . openscience . cdk . reaction . IReactionProcess type = new org . openscience . cdk . reaction . type . HeterolyticCleavagePBReaction ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( type )
testProcessTemplate4 ( ) { com . liferay . portal . kernel . template . Template template = new com . liferay . portal . template . velocity . internal . VelocityTemplate ( new com . liferay . portal . template . velocity . internal . VelocityTemplateTest . MockTemplateResource ( com . liferay . portal . template . vel...
org . junit . Assert . assertEquals ( com . liferay . portal . template . velocity . internal . VelocityTemplateTest . _TEST_VALUE , result )
testGetForeignKeyAttributeMap_NoNullChildAttributeName ( ) { wrap = new org . kuali . rice . krad . data . provider . DataObjectWrapperBaseTest . DataObjectWrapperImpl < org . kuali . rice . krad . data . provider . DataObjectWrapperBaseTest . DataObject > ( dataObject , dataObject5Metadata , dataObjectService , refere...
org . junit . Assert . assertTrue ( ( ( result . get ( ( ( java . lang . String ) ( null ) ) ) ) == null ) )
offsetDateTimeTest ( ) { com . salesforce . grpc . contrib . OffsetDateTime odt1 = com . salesforce . grpc . contrib . OffsetDateTime . now ( com . salesforce . grpc . contrib . Clock . systemUTC ( ) ) ; com . salesforce . grpc . contrib . OffsetDateTime odt2 = com . salesforce . grpc . contrib . MoreTimestamps . toOff...
org . junit . Assert . assertEquals ( odt1 , odt2 )
testProcessing ( ) { final java . io . File inputFile1 = org . esa . s1tbx . commons . test . TestData . inputASAR_IMM ; if ( ! ( inputFile1 . exists ( ) ) ) { org . esa . snap . engine_utilities . util . TestUtils . skipTest ( this , ( inputFile1 + "<sp>not<sp>found" ) ) ; return ; } final org . esa . snap . core . da...
org . junit . Assert . assertNotNull ( op )
testGetParametersWithDefaultEntity ( ) { org . lnu . is . domain . specoffer . SpecOffer entity = new org . lnu . is . domain . specoffer . SpecOffer ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; expecte...
org . junit . Assert . assertEquals ( expected , actual )
testValidateListOrderUnsignedInt ( ) { java . util . List < tigase . xml . Element > items = new java . util . ArrayList < tigase . xml . Element > ( ) ; tigase . xmpp . Authorization result = null ; items . add ( new tigase . xml . Element ( "item" , new java . lang . String [ ] { "type" , "value" , "action" , "order"...
org . junit . Assert . assertEquals ( Authorization . BAD_REQUEST , result )
shouldClearDataBaseUsingEmptyDataSet ( ) { org . jooq . DSLContext dsl = org . jooq . impl . DSL . using ( JooqDBUnitTest . connection ) ; int size = dsl . fetchCount ( Tables . AUTHOR ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 0 , size )
testListByActiveOnInTheMiddle ( ) { java . util . Date activeOn = org . candlepin . test . TestUtil . createDate ( 2011 , 2 , 2 ) ; org . candlepin . model . Pool pool = org . candlepin . test . TestUtil . createPool ( owner , product ) ; pool . setStartDate ( org . candlepin . test . TestUtil . createDate ( 2011 , 1 ,...
org . junit . Assert . assertEquals ( 1 , poolCurator . listAvailableEntitlementPools ( null , owner , ( ( java . util . Collection < java . lang . String > ) ( null ) ) , activeOn ) . size ( ) )
testRemove ( ) { com . liferay . asset . category . property . model . AssetCategoryProperty newAssetCategoryProperty = addAssetCategoryProperty ( ) ; _persistence . remove ( newAssetCategoryProperty ) ; com . liferay . asset . category . property . model . AssetCategoryProperty existingAssetCategoryProperty = _persist...
org . junit . Assert . assertNull ( existingAssetCategoryProperty )
testFalseLegeIdentificatienummers ( ) { setup ( true , true ) ; org . mockito . Mockito . when ( persoon . getAdministratienummer ( ) ) . thenReturn ( nl . bzk . migratiebrp . synchronisatie . runtime . service . toevalligegebeurtenis . controle . persoon . PersoonControleTest . ANUMMER ) ; org . mockito . Mockito . wh...
org . junit . Assert . assertFalse ( subject . controleer ( persoon , verzoek ) )
nullQuery ( ) { java . util . List < org . jboss . hal . ballroom . autocomplete . ReadChildrenResult > results = resultProcessor . processToModel ( null , nodes ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( results . isEmpty ( ) )
namedQuery ( ) { javax . persistence . EntityManager em = entityManagerFactory . createEntityManager ( ) ; em . getTransaction ( ) . begin ( ) ; com . datastax . hectorjpa . bean . Store fifth = new com . datastax . hectorjpa . bean . Store ( ) ; fifth . setName ( "namedQuery-5" ) ; em . persist ( fifth ) ; com . datas...
org . junit . Assert . assertEquals ( third , found )
testSmallImport ( ) { theory . intervals . EqualitySolver ba = new theory . intervals . EqualitySolver ( ) ; automata . svpa . SVPA < theory . characters . ICharPred , java . lang . Character > cfgAutomaton = getCFGAutomata ( ba ) ; try { automata . svpa . ImportCharSVPA . importSVPA ( cfgAutomaton . toString ( ) ) ; }...
org . junit . Assert . assertTrue ( false )
copyByteArrayValidWriterNullEncodingNegBufSz ( ) { java . lang . String probe = "A<sp>string<sp>⍅ï" ; java . io . StringWriter writer = new org . apache . maven . shared . utils . io . IOUtilTest . DontCloseStringWriter ( ) ; org . apache . maven . shared . utils . io . IOUtil . copy ( probe . getBytes ( ) , writer , n...
org . junit . Assert . assertThat ( writer . toString ( ) . getBytes ( ) , org . hamcrest . CoreMatchers . is ( probe . getBytes ( ) ) )
testAvailable ( ) { final com . allanbank . mongodb . bson . Document seed = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . addBinary ( "juuid" , ( ( byte ) ( 3 ) ) , com . allanbank . mongodb . bson . io . BsonInputStreamTest . LEGACY_UUID_BYTES ) . addBinary ( "uuid" , ( ( byte ) ( 4 ) ) , ...
org . junit . Assert . assertEquals ( out . toByteArray ( ) . length , reader . available ( ) )
testGetCheckable_onVirtual_resolvesItem ( ) { grid = new org . eclipse . nebula . widgets . grid . Grid ( shell , org . eclipse . swt . SWT . VIRTUAL ) ; grid . setItemCount ( 1 ) ; org . eclipse . nebula . widgets . grid . GridItem item = grid . getItem ( 0 ) ; item . getCheckable ( 0 ) ; "<AssertPlaceHolder>" ; } isR...
org . junit . Assert . assertTrue ( item . isResolved ( ) )
testTextPrivateField ( ) { org . jivesoftware . smackx . FormField field = new org . jivesoftware . smackx . FormField ( "abc<sp>def" ) ; field . setType ( "text-private" ) ; field . addValue ( org . apache . vysper . console . HtmlFormBuilderTest . VALUE1 ) ; form . addField ( field ) ; java . lang . String actual = b...
org . junit . Assert . assertEquals ( expected , actual )
testAnalyzeBackDefaultPropPoint ( ) { org . orbisgis . legend . thematic . proportional . ProportionalPoint pp = new org . orbisgis . legend . thematic . proportional . ProportionalPoint ( ) ; org . orbisgis . coremap . renderer . se . PointSymbolizer ps = ( ( org . orbisgis . coremap . renderer . se . PointSymbolizer ...
org . junit . Assert . assertTrue ( ( leg instanceof org . orbisgis . legend . thematic . proportional . ProportionalPoint ) )
testSimpleNoDecimals ( ) { org . apache . commons . math3 . geometry . euclidean . threed . Vector3D c = new org . apache . commons . math3 . geometry . euclidean . threed . Vector3D ( 1 , 1 , 1 ) ; java . lang . String expected = "{1;<sp>1;<sp>1}" ; java . lang . String actual = vector3DFormat . format ( c ) ; "<Asser...
org . junit . Assert . assertEquals ( expected , actual )
shouldSaveAndLoadEntityMappedWithCpfUserType ( ) { org . hibernate . Session session = br . com . caelum . stella . usertype . CpfUserTypeTest . factory . openSession ( ) ; org . hibernate . Transaction transaction = session . beginTransaction ( ) ; br . com . caelum . stella . usertype . PessoaFisica pessoa = new br ....
org . junit . Assert . assertEquals ( cpf , load . getCpf ( ) )
doFillAvailabilityZoneItemsGivenNoSupportForAZsThenGivesEmptyList ( ) { final jenkins . plugins . openstack . compute . internal . Openstack os = j . fakeOpenstackFactory ( ) ; final java . lang . String openstackAuth = j . dummyCredential ( ) ; doThrow ( new java . lang . RuntimeException ( "OpenStack<sp>said<sp>no" )...
org . junit . Assert . assertEquals ( 0 , actual . size ( ) )
testFairSchedulerContinuousSchedulingInitTime ( ) { scheduler . start ( ) ; int priorityValue ; org . apache . hadoop . yarn . api . records . Priority priority ; org . apache . hadoop . yarn . server . resourcemanager . scheduler . fair . FSAppAttempt fsAppAttempt ; org . apache . hadoop . yarn . api . records . Resou...
org . junit . Assert . assertEquals ( org . apache . hadoop . yarn . server . resourcemanager . scheduler . fair . TestContinuousScheduling . delayThresholdTimeMs , initSchedulerTime )
testMetKindMetOuderschap ( ) { java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > berichtEntiteiten = brby0178 . voerRegelUit ( bouwHuidigeSituatie ( true , true ) , null , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , berichtEntiteiten . size ( ) )
stuff ( ) { final org . zapodot . junit . db . EmbeddedDatabaseRule embeddedDatabaseRule = org . zapodot . junit . db . EmbeddedDatabaseRule . h2 ( ) . initializedByPlugin ( org . zapodot . junit . db . plugin . LiquibaseInitializer . builder ( ) . withChangelogResource ( "example-fails.xml" ) . build ( ) ) . build ( )...
org . junit . Assert . assertNotNull ( appliedStatement )
testInvalidURIGetPath ( ) { final java . net . URI uri = java . net . URI . create ( "git:///master@new-get-repo-name/home" ) ; try { provider . getPath ( uri ) ; failBecauseExceptionWasNotThrown ( org . uberfire . java . nio . fs . jgit . IllegalArgumentException . class ) ; } catch ( final java . lang . IllegalArgume...
org . junit . Assert . assertThat ( ex . getMessage ( ) )
testConstructOut ( ) { com . ewcms . publication . freemarker . directive . out . article . RelationsDirectiveOut out = new com . ewcms . publication . freemarker . directive . out . article . RelationsDirectiveOut ( ) ; java . lang . String outValue = out . constructOut ( initRelateds ( ) , null , null ) ; java . lang...
org . junit . Assert . assertEquals ( expected , outValue )
testConstructorAndGetterWithProperDataAndProperDataReturned ( ) { org . dspace . app . rest . model . hateoas . FacetConfigurationResource facetConfigurationResource = new org . dspace . app . rest . model . hateoas . FacetConfigurationResource ( facetConfigurationRest ) ; "<AssertPlaceHolder>" ; } getContent ( ) { ret...
org . junit . Assert . assertEquals ( facetConfigurationRest , facetConfigurationResource . getContent ( ) )
testMessage ( ) { java . lang . String message = "Error!" ; java . lang . Exception e = new org . kocakosm . pitaya . util . CannotHappenException ( message ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( message , e . getMessage ( ) )
testModuleHandlersOrderingAfterConfigIsInitialized ( ) { org . axonframework . config . ModuleConfiguration module1 = mock ( org . axonframework . config . ModuleConfiguration . class ) ; org . axonframework . config . ModuleConfiguration module2 = mock ( org . axonframework . config . ModuleConfiguration . class ) ; o...
org . junit . Assert . assertNotNull ( configuration )
testCreateMerger ( ) { com . ctrip . platform . dal . dao . task . CombinedInsertTask < com . ctrip . platform . dal . dao . task . ClientTestModel > test = new com . ctrip . platform . dal . dao . task . CombinedInsertTask ( ) ; "<AssertPlaceHolder>" ; } createMerger ( ) { return new com . ctrip . platform . dal . dao...
org . junit . Assert . assertNotNull ( test . createMerger ( ) )
testIsUnionOnUnionWithOneElement ( ) { org . apache . avro . Schema schema = org . apache . avro . Schema . createUnion ( org . apache . avro . Schema . create ( Type . LONG ) ) ; "<AssertPlaceHolder>" ; } isUnion ( ) { return ( this ) instanceof org . apache . avro . Schema . UnionSchema ; }
org . junit . Assert . assertTrue ( schema . isUnion ( ) )
testSerialization ( ) { org . jfree . chart . annotations . XYDrawableAnnotation a1 = new org . jfree . chart . annotations . XYDrawableAnnotation ( 10.0 , 20.0 , 100.0 , 200.0 , new org . jfree . chart . annotations . XYDrawableAnnotationTest . TestDrawable ( ) ) ; java . io . ByteArrayOutputStream buffer = new java ....
org . junit . Assert . assertEquals ( a1 , a2 )
getAllTranslatorsTest_ModelWithNoGenerators ( ) { java . util . Map < java . lang . String , cruise . umple . compiler . CodeTranslator > allTranslators = model . getAllTranslators ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( m_Count ) == 0 ; }
org . junit . Assert . assertTrue ( allTranslators . isEmpty ( ) )
testSizeOfWithNoSet ( ) { java . lang . String key = "test" ; long actualSize = this . state . sizeOf ( key ) ; "<AssertPlaceHolder>" ; } sizeOf ( K ) { return template . sizeOf ( id , key ) ; }
org . junit . Assert . assertEquals ( 0 , actualSize )
testGetWCsAnalysedForSpecificAppNull ( ) { stats . analyseWC ( null ) ; int expectedLoopCount = 0 ; int loopCount = 0 ; for ( java . util . Iterator < com . github . bordertech . wcomponents . WComponent > resultWcs = stats . getWCsAnalysed ( ) ; resultWcs . hasNext ( ) ; loopCount ++ ) { org . junit . Assert . fail ( ...
org . junit . Assert . assertEquals ( "there<sp>should<sp>be<sp>no<sp>analysed<sp>components" , expectedLoopCount , loopCount )
getLocalHostName ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( java . net . InetAddress . class ) ; org . mockito . BDDMockito . given ( java . net . InetAddress . getLocalHost ( ) ) . willThrow ( java . net . UnknownHostException . class ) ; java . lang . String localHostName = com . aliyuncs . u...
org . junit . Assert . assertEquals ( "unknown<sp>host<sp>name" , localHostName )
testSetValueToDataset ( ) { org . talend . dataprofiler . common . ui . editor . preview . CustomerDefaultCategoryDataset customerdataset = new org . talend . dataprofiler . common . ui . editor . preview . CustomerDefaultCategoryDataset ( ) ; org . talend . dq . indicators . ext . FrequencyExt fre = new org . talend ....
org . junit . Assert . assertEquals ( 0.33 , n )
testBuildPasswordHashNoSaltNoIterations ( ) { org . junit . Assume . assumeFalse ( org . apache . jackrabbit . oak . spi . security . user . util . PasswordUtil . DEFAULT_ALGORITHM . startsWith ( PasswordUtil . PBKDF2_PREFIX ) ) ; java . lang . String jr2Hash = ( ( "{" + ( org . apache . jackrabbit . oak . spi . securi...
org . junit . Assert . assertTrue ( org . apache . jackrabbit . oak . spi . security . user . util . PasswordUtil . isSame ( jr2Hash , "pw" ) )
testSayHelloNegative2 ( ) { java . lang . String result = null ; try { result = authServiceDirectCallTokenWrong . sayHello ( ) ; System . out . println ( result ) ; } catch ( com . baidu . beidou . navi . exception . rpc . AuthAccessDeniedException e ) { "<AssertPlaceHolder>" ; return ; } org . junit . Assert . fail ( ...
org . junit . Assert . assertThat ( e . getClass ( ) . getName ( ) , org . hamcrest . Matchers . is ( com . baidu . beidou . navi . exception . rpc . AuthAccessDeniedException . class . getName ( ) ) )
getAccessId ( ) { java . lang . String securityName = "securityName" ; java . lang . String accessId = "user:realm/uniqueId" ; com . ibm . ws . security . authentication . principals . WSPrincipal principal = new com . ibm . ws . security . authentication . principals . WSPrincipal ( securityName , accessId , WSPrincip...
org . junit . Assert . assertEquals ( "getAccessId()<sp>should<sp>be<sp>the<sp>accessId<sp>specified<sp>in<sp>the<sp>constructor" , accessId , principal . getAccessId ( ) )
testGetPasswordNoUserCredentialName ( ) { java . lang . String result = relationalTableRegistrationHelperServiceImpl . getPassword ( new org . finra . herd . model . dto . RelationalStorageAttributesDto ( JDBC_URL , USERNAME , NO_USER_CREDENTIAL_NAME ) ) ; verifyNoMoreInteractionsHelper ( ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertNull ( result )
skillViolationOnSolution_shouldWork ( ) { jsprit . core . analysis . SolutionAnalyser analyser = new jsprit . core . analysis . SolutionAnalyser ( vrp , solution , new jsprit . core . problem . cost . TransportDistance ( ) { @ jsprit . core . analysis . Override public double getDistance ( jsprit . core . problem . Loc...
org . junit . Assert . assertTrue ( violated )
testInlineRemoval ( ) { com . oculusinfo . geometry . geodesic . Position p0 = new com . oculusinfo . geometry . geodesic . Position ( 4 , 28 ) ; com . oculusinfo . geometry . geodesic . Position p1 = new com . oculusinfo . geometry . geodesic . Position ( ( - 17 ) , 42 ) ; double azimuth = p0 . getAzimuth ( p1 ) ; dou...
org . junit . Assert . assertEquals ( 2 , track . getPoints ( ) . size ( ) )
shouldMutateASingleVariableSolutionReturnTheSameSolutionIfProbabilityIsZero ( ) { double mutationProbability = 0.0 ; double distributionIndex = 20.0 ; org . uma . jmetal . operator . impl . mutation . PolynomialMutation mutation = new org . uma . jmetal . operator . impl . mutation . PolynomialMutation ( mutationProbab...
org . junit . Assert . assertEquals ( oldSolution , solution )
testShipmentWithRateError ( ) { java . util . Map < java . lang . String , java . lang . Object > parcelMap = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; parcelMap . put ( "weight" , 10 ) ; parcelMap . put ( "predefined_package" , "Pak" ) ; java . util . Map < java . lang . String , ...
org . junit . Assert . assertNotNull ( shipment . getMessages ( ) )
testZoekMatchendeOuderBetrokkenheidMeerderePartieleMatch ( ) { final nl . bzk . migratiebrp . synchronisatie . dal . service . impl . delta . decorators . BetrokkenheidDecorator decorator = maakBetrokkenheid ( 20150101 , null ) ; final nl . bzk . migratiebrp . synchronisatie . dal . service . impl . delta . decorators ...
org . junit . Assert . assertNull ( matchingDecorator )
testProducesHistoryServerUriForAppId ( ) { final java . lang . String historyAddress = "example.net:424242" ; org . apache . hadoop . yarn . conf . YarnConfiguration conf = new org . apache . hadoop . yarn . conf . YarnConfiguration ( ) ; conf . set ( JHAdminConfig . MR_HS_HTTP_POLICY , HttpConfig . Policy . HTTP_ONLY ...
org . junit . Assert . assertEquals ( expected , actual )
shouldFailWebSocketConnectionWhenServerSendCloseFrameWithRsv4 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any (...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
testTimeoutEarlyRegister ( ) { java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; org . nustaq . kontraktor . IPromise p = new org . nustaq . kontraktor . Promise ( ) . timeoutIn ( 1000 ) ; p . then ( new kontraktor . Callback ( ) { @ kontraktor . Ove...
org . junit . Assert . assertTrue ( ( ( count . get ( ) ) == 9 ) )
testExistingDataConstructor ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "import<sp>org.eclipse.xtend.lib.annotations.Data" ) ; _builder . newLine ( ) ; _builder . append ( "@Data<sp>class<sp>Foo<sp>{" ) ; _bui...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 4 ) , getFoo . invoke ( instance ) )
wrappedReadOnlyDirectBuffer ( ) { java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocateDirect ( 12 ) ; for ( int i = 0 ; i < 12 ; i ++ ) { buffer . put ( ( ( byte ) ( i ) ) ) ; } buffer . flip ( ) ; io . netty . buffer . ByteBuf wrapped = wrappedBuffer ( buffer . asReadOnlyBuffer ( ) ) ; for ( int i = 0 ;...
org . junit . Assert . assertEquals ( ( ( byte ) ( i ) ) , wrapped . readByte ( ) )
testInternalComparator ( ) { java . util . List < jenkins . security . apitoken . ApiTokenStats . SingleTokenStats > tokenStatsList = java . util . Arrays . asList ( createSingleTokenStatsByReflection ( "A" , null , 0 ) , createSingleTokenStatsByReflection ( "B" , "2018-05-01<sp>09:10:59.234" , 2 ) , createSingleTokenS...
org . junit . Assert . assertThat ( idList , contains ( "A" , "B" , "C" , "D" ) )
testEquals ( ) { java . util . Arrays . asList ( "f1" , "f2" , "f3" ) ; java . util . List < java . lang . String > results = java . util . Arrays . asList ( "r1" , "r2" , "r3" ) ; java . lang . Long offset = 10L ; java . lang . Long count = 100L ; java . lang . Integer limit = 40 ; org . gbif . api . model . common . ...
org . junit . Assert . assertEquals ( searchResponse1 , searchResponse2 )
shouldBeAbleToReferToCreatedResource ( ) { java . lang . String jsonString = new org . neo4j . server . rest . PrettyJSON ( ) . array ( ) . object ( ) . key ( "value" 0 ) . value ( "value" 8 ) . key ( "to" ) . value ( "/node" ) . key ( "value" 3 ) . value ( 0 ) . key ( "value" 4 ) . object ( ) . key ( "value" 5 ) . val...
org . junit . Assert . assertEquals ( 4 , results . size ( ) )
testStepOut ( ) { org . eclipse . che . api . debug . shared . dto . action . StepOutActionDto stepOutAction = mock ( org . eclipse . che . api . debug . shared . dto . action . StepOutActionDto . class ) ; doReturn ( promiseVoid ) . when ( service ) . stepOut ( org . eclipse . che . plugin . debugger . ide . debug . D...
org . junit . Assert . assertTrue ( debugger . isConnected ( ) )
testPurposeForDisabled ( ) { gov . hhs . fha . nhinc . callback . purposeuse . PurposeUseProxy testPurposeUseProxy = new gov . hhs . fha . nhinc . callback . purposeuse . PurposeUseProxyDefaultImpl ( mockPropertyAccessor ) ; setPropertyExpectation ( org . jmock . Expectations . returnValue ( "false" ) , NhincConstants ...
org . junit . Assert . assertFalse ( testPurposeUseProxy . isPurposeForUseEnabled ( null ) )
delete_TechnicalServiceOperationException ( ) { doReturn ( Boolean . TRUE ) . when ( model ) . isTokenValid ( ) ; doThrow ( new org . oscm . internal . types . exception . TechnicalServiceOperationException ( ) ) . when ( us ) . deleteUser ( any ( org . oscm . internal . usermanagement . POUser . class ) , anyString ( ...
org . junit . Assert . assertEquals ( "" , result )
whenAttributeGroupResolvedSuccessfully_thenPresentAttributesShouldBeRemovedOffThePendingList ( ) { java . lang . String [ ] presentAttributes = new java . lang . String [ ] { "group_attribute1" , "group_attribute2" } ; java . lang . String [ ] attributeGroup = org . apache . commons . lang3 . ArrayUtils . add ( present...
org . junit . Assert . assertTrue ( pendingAttributesForView . isEmpty ( ) )
testCommandGotPickedUpAndQueueIsEmptyWhenPollingContentReturns ( ) { queue . putContent ( org . openqa . selenium . server . SingleEntryAsyncQueueUnitTest . testCommand ) ; queue . pollToGetContentUntilTimeout ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return proxies . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( queue . isEmpty ( ) )
optional_int_of ( ) { java . util . OptionalInt optionalInt = java . util . OptionalInt . of ( 89 ) ; "<AssertPlaceHolder>" ; } getAsInt ( ) { return 10 ; }
org . junit . Assert . assertEquals ( 89 , optionalInt . getAsInt ( ) , 0 )
testCreateLinkToDotDotPrefix ( ) { org . apache . hadoop . fs . Path file = new org . apache . hadoop . fs . Path ( testBaseDir1 ( ) , "file" ) ; org . apache . hadoop . fs . Path dir = new org . apache . hadoop . fs . Path ( testBaseDir1 ( ) , "test" ) ; org . apache . hadoop . fs . Path link = new org . apache . hado...
org . junit . Assert . assertEquals ( new org . apache . hadoop . fs . Path ( "../file" ) , org . apache . hadoop . fs . SymlinkBaseTest . wrapper . getLinkTarget ( link ) )
testNullVisitor ( ) { try { org . familysearch . platform . FamilySearchPlatform fsp = new org . familysearch . platform . FamilySearchPlatform ( ) ; fsp . accept ( null ) ; org . junit . Assert . fail ( "Expected:<sp>NullPointerException" ) ; } catch ( java . lang . NullPointerException ex ) { "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( true )
businessKeyJvm4 ( ) { java . lang . String result = testService . getValue ( new org . springframework . boot . autoconfigure . klock . test . User ( 3 , "kl" ) ) ; "<AssertPlaceHolder>" ; } getValue ( java . lang . String , int ) { java . lang . Thread . sleep ( ( 60 * 1000 ) ) ; return "success" ; }
org . junit . Assert . assertEquals ( result , "success" )
testCheckPreFlightRequestTypeEmptyACRM ( ) { org . apache . catalina . filters . TesterHttpServletRequest request = new org . apache . catalina . filters . TesterHttpServletRequest ( ) ; request . setHeader ( CorsFilter . REQUEST_HEADER_ORIGIN , TesterFilterConfigs . HTTP_TOMCAT_APACHE_ORG ) ; request . setHeader ( Cor...
org . junit . Assert . assertEquals ( CorsFilter . CORSRequestType . INVALID_CORS , requestType )
test ( ) { try ( org . apache . accumulo . core . client . AccumuloClient c = org . apache . accumulo . core . client . Accumulo . newClient ( ) . from ( getClientProps ( ) ) . build ( ) ) { java . lang . String tableName = getUniqueNames ( 1 ) [ 0 ] ; c . tableOperations ( ) . create ( tableName ) ; org . apache . acc...
org . junit . Assert . assertEquals ( ( "Did<sp>not<sp>see<sp>expected<sp>#<sp>entries<sp>" + count ) , 1 , count )
mailCase6 ( ) { org . openscience . cdk . interfaces . IAtomContainer mol = org . openscience . cdk . tools . ATASaturationCheckerTest . sp . parseSmiles ( "c1ccc2c(c1)cc-3c4c2cccc4-c5c3cccc5" ) ; atasc . decideBondOrder ( mol , true ) ; int doubleBondCount = 0 ; for ( org . openscience . cdk . interfaces . IBond bond ...
org . junit . Assert . assertEquals ( 10 , doubleBondCount )
setClientTypeTest ( ) { com . aliyuncs . utils . AuthUtils . setClientType ( "test" ) ; "<AssertPlaceHolder>" ; com . aliyuncs . utils . AuthUtils . setClientType ( "default" ) ; } getClientType ( ) { if ( null == ( com . aliyuncs . utils . AuthUtils . clientType ) ) { com . aliyuncs . utils . AuthUtils . clientType = ...
org . junit . Assert . assertEquals ( "test" , com . aliyuncs . utils . AuthUtils . getClientType ( ) )
testTestFile ( ) { java . lang . String file = testFile . getCanonicalPath ( ) ; org . apache . flume . sink . hdfs . HDFSDataStream stream = new org . apache . flume . sink . hdfs . HDFSDataStream ( ) ; context . put ( "hdfs.useRawLocalFileSystem" , "true" ) ; stream . configure ( context ) ; stream . open ( file ) ; ...
org . junit . Assert . assertTrue ( ( ( testFile . length ( ) ) > 0 ) )
shouldReturnStringWithObjectSerialized ( ) { br . com . caelum . vraptor . util . test . MockSerializationResultTest . Car car = new br . com . caelum . vraptor . util . test . MockSerializationResultTest . Car ( "XXU-5569" , "Caelum" , "VW" , "Polo" ) ; java . lang . String expectedResult = "{\"car\":{\"licensePlate\"...
org . junit . Assert . assertThat ( result . serializedResult ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
shouldReturnOriginalValueIfInputIsAnEntity ( ) { final uk . gov . gchq . gaffer . data . element . Entity input = new uk . gov . gchq . gaffer . data . element . Entity ( "group" , "item" ) ; final uk . gov . gchq . gaffer . operation . function . ToEntityId function = new uk . gov . gchq . gaffer . operation . functio...
org . junit . Assert . assertSame ( input , output )
testMatchConditionAlongDimension1 ( ) { org . nd4j . linalg . api . ndarray . INDArray array = org . nd4j . linalg . factory . Nd4j . ones ( 3 , 10 ) ; array . getRow ( 2 ) . assign ( 0.0 ) ; boolean [ ] result = org . nd4j . linalg . indexing . BooleanIndexing . and ( array , org . nd4j . linalg . indexing . condition...
org . junit . Assert . assertArrayEquals ( comp , result )
startsEnabled ( ) { "<AssertPlaceHolder>" ; } invoke ( java . lang . Runnable ) { final org . fishwife . jrugged . LatencyTracker latencyTracker = new org . fishwife . jrugged . LatencyTracker ( ) ; try { requestCounter . invoke ( new java . lang . Runnable ( ) { public void run ( ) { try { latencyTracker . invoke ( r ...
org . junit . Assert . assertSame ( out , impl . invoke ( call ) )
testOngeldigheidBijOntbrekenDatumAanvangLand ( ) { final nl . bzk . brp . model . algemeen . stamgegeven . kern . LandGebied land = bouwLand ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . geboorte . BRBY01037Test . GELDIGE_LAND_CODE_ZONDER_DATUM , null , null ) ; final java . util . L...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
doubleAddUniqueConstraint ( ) { org . apache . hadoop . hive . metastore . api . Table table = testTables [ 0 ] ; org . apache . hadoop . hive . metastore . api . CheckConstraintsRequest rqst = new org . apache . hadoop . hive . metastore . api . CheckConstraintsRequest ( table . getCatName ( ) , table . getDbName ( ) ...
org . junit . Assert . assertTrue ( fetched . isEmpty ( ) )
onExitThePreviousValueIsRestores ( ) { turin . context . ContextTest . MyContext ctx = new turin . context . ContextTest . MyContext ( ) ; ctx . enterContext ( "a" ) ; ctx . enterContext ( "b" ) ; ctx . enterContext ( "c" ) ; ctx . exitContext ( ) ; ctx . exitContext ( ) ; "<AssertPlaceHolder>" ; } get ( ) { java . uti...
org . junit . Assert . assertEquals ( java . util . Optional . of ( "a" ) , ctx . get ( ) )
delegateClassWithMultipleMethodsAndInexactButValidMatch ( mockit . DelegateInvocationTest$Collaborator ) { new mockit . Expectations ( ) { { mockit . DelegateInvocationTest . Collaborator . staticMethod ( 1 ) ; result = new mockit . Delegate ( ) { @ mockit . SuppressWarnings ( "unused" ) private void otherMethod ( int ...
org . junit . Assert . assertTrue ( mockit . DelegateInvocationTest . Collaborator . staticMethod ( 1 ) )
testQuoteEscape ( ) { java . lang . String input = "ζ—₯ζœ¬η΅ŒζΈˆζ–°θž,1292,1292,4980,名詞,ε›Ίζœ‰εθ©ž,η΅„ηΉ”,*,*,\"1,0\",ζ—₯ζœ¬η΅ŒζΈˆζ–°θž,ニホンケむアむシンブン,ニホンケむアむシンブン" ; java . lang . String expected = "\"ζ—₯ζœ¬η΅ŒζΈˆζ–°θž,1292,1292,4980,名詞,ε›Ίζœ‰εθ©ž,η΅„ηΉ”,*,*,\"\"1,0\"\",ζ—₯ζœ¬η΅ŒζΈˆζ–°θž,ニホンケむアむシンブン,ニホンケむアむシンブン\"" ; "<AssertPlaceHolder>" ; } escape ( java . lang . String ) { if ( stri...
org . junit . Assert . assertEquals ( expected , parser . escape ( input ) )
getEnvVarsPreviousStepsWithEnvInjectActionMatrixRun ( ) { build = mock ( hudson . matrix . MatrixRun . class ) ; org . jenkinsci . plugins . envinject . EnvInjectPluginAction envInjectPluginAction = new org . jenkinsci . plugins . envinject . EnvInjectPluginAction ( build , org . jenkinsci . plugins . envinject . sevic...
org . junit . Assert . assertTrue ( sameMap ( expectedEnvVars , resultEnvVars ) )
should_not_reduce_forks ( ) { au . edu . wehi . idsv . graph . BasePathGraph pg = PG ( G ( 4 ) . add ( "TCCGAAT" ) . add ( "TCCGAAC" ) . add ( "TCCGAAG" ) ) ; java . util . List < au . edu . wehi . idsv . debruijn . DeBruijnPathNode < au . edu . wehi . idsv . debruijn . DeBruijnNodeBase > > nodes = com . google . commo...
org . junit . Assert . assertEquals ( 4 , nodes . size ( ) )
testIndentation ( ) { buffer . write ( "Line1" ) ; buffer . newline ( ) ; buffer . indent ( ) ; buffer . write ( "Indent1" ) ; buffer . newline ( ) ; buffer . write ( "Indent2" ) ; buffer . write ( "<sp>more" ) ; buffer . newline ( ) ; buffer . deindent ( ) ; buffer . write ( "Line2" ) ; buffer . newline ( ) ; java . l...
org . junit . Assert . assertEquals ( expected , buffer . toString ( ) )
testReaderEmptyString ( ) { new org . prop4j . NodeReader ( ) . stringToNode ( "" ) ; "<AssertPlaceHolder>" ; } stringToNode ( java . lang . String ) { return stringToNode ( constraint , null ) ; }
org . junit . Assert . assertTrue ( true )
testAddAndRemove ( ) { java . lang . String id = ( this . getClass ( ) . getName ( ) ) + ".testAddAndRemove" ; org . apache . jackrabbit . oak . plugins . document . NodeDocument nd = super . ds . find ( Collection . NODES , id ) ; if ( nd != null ) { super . ds . remove ( Collection . NODES , id ) ; } org . apache . j...
org . junit . Assert . assertTrue ( super . ds . create ( Collection . NODES , java . util . Collections . singletonList ( up ) ) )
addAsContactPersonsToCampaign_NullDefaultAddressType_NonExistingBill_MandatoryLocation ( ) { final de . metas . interfaces . I_C_BPartner partner1 = createBPartner ( "Partner1" ) ; createBPartnerLocation ( partner1 ) ; final de . metas . bpartner . BPartnerId bpartnerId = de . metas . bpartner . BPartnerId . ofRepoId (...
org . junit . Assert . assertTrue ( existingContactPersons . isEmpty ( ) )
testPathIsDirectoryWhenPathIsDirectory ( ) { mFileSystem . createDirectory ( new alluxio . AlluxioURI ( "/testDir" ) ) ; int ret = mFsShell . run ( "test" , "-d" , "/testDir" ) ; "<AssertPlaceHolder>" ; } run ( alluxio . job . JobConfig , int , alluxio . conf . AlluxioConfiguration ) { alluxio . retry . CountingRetry r...
org . junit . Assert . assertEquals ( 0 , ret )
getLocalNodeNameMaster ( ) { CommonUtils . PROCESS_TYPE . set ( ProcessType . MASTER ) ; try ( java . io . Closeable c = new alluxio . ConfigurationRule ( alluxio . conf . PropertyKey . MASTER_HOSTNAME , "master" , mConfiguration ) . toResource ( ) ) { "<AssertPlaceHolder>" ; } } getLocalNodeName ( alluxio . conf . All...
org . junit . Assert . assertEquals ( "master" , alluxio . util . network . NetworkAddressUtils . getLocalNodeName ( mConfiguration ) )
testGryo ( ) { processJCas ( DocumentGraph . PARAM_OUTPUT_DIRECTORY , tempDirectory . toString ( ) , DocumentGraph . PARAM_GRAPH_FORMAT , GraphFormat . GRYO . toString ( ) , DocumentGraph . PARAM_OUTPUT_RELATIONS_AS_LINKS , true ) ; java . nio . file . Path path = tempDirectory . resolve ( tempDirectory . toFile ( ) . ...
org . junit . Assert . assertTrue ( com . google . common . io . Files . equal ( expectedPath . toFile ( ) , path . toFile ( ) ) )
simple_join ( ) { final java . lang . String rulebase = "rules/reloaded/process_join.prova" ; java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( ) ; java . util . Map < java . lang . String , java . lang . Object > globals = new java . util . HashMap < java...
org . junit . Assert . assertEquals ( 2 , count . get ( ) )