input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testRun_ReverseOrder ( ) { when ( mockCli . commandName ( ) ) . thenReturn ( "c2" ) ; io . bootique . command . Command mockDefault = io . bootique . run . DefaultRunnerTest . mockCommand ( "d1" , io . bootique . command . CommandOutcome . succeeded ( ) ) ; io . bootique . command . Command mockHelp = io . bootique . r...
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
shouldBuildAnInstanceOfDefaultInterfaceConfigBuilderWithGivenParams ( ) { org . codegist . crest . config . DefaultInterfaceConfigBuilder expected = mock ( org . codegist . crest . config . DefaultInterfaceConfigBuilder . class ) ; whenNew ( org . codegist . crest . config . DefaultInterfaceConfigBuilder . class ) . wi...
org . junit . Assert . assertSame ( expected , actual )
hashCodeSelf ( ) { final com . lightboxtechnologies . nsrl . OSData osd = new com . lightboxtechnologies . nsrl . OSData ( com . lightboxtechnologies . nsrl . OSDataTest . code , com . lightboxtechnologies . nsrl . OSDataTest . name , com . lightboxtechnologies . nsrl . OSDataTest . version , com . lightboxtechnologies...
org . junit . Assert . assertTrue ( ( ( osd . hashCode ( ) ) == ( osd . hashCode ( ) ) ) )
testStaticBlockCase ( ) { org . eclipse . xtend . core . xtend . XtendClass conversionResult = this . toValidXtendClass ( "public<sp>class<sp>Clazz<sp>{<sp>static<sp>String<sp>foo;static{foo=\"\";}}" ) ; "<AssertPlaceHolder>" ; } field ( org . eclipse . xtend . core . xtend . XtendTypeDeclaration , int ) { org . eclips...
org . junit . Assert . assertEquals ( "foo" , this . field ( conversionResult , 0 ) . getName ( ) )
decodeExtended ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( extended ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; final com . flagstone . transform . coder . Context context = new co...
org . junit . Assert . assertNotNull ( fixture )
GetDiagnosisEN136060SuccessTest ( ) { riv . clinicalprocess . healthcond . description . getdiagnosisresponder . _2 . GetDiagnosisResponseType resp = getDiagnosisServices . getDiagnosis ( se . skl . skltpservices . npoadapter . test . integration . EndToEndIntegrationTest . LOGICAL_ADDRESS_VS_1 , se . skl . skltpservic...
org . junit . Assert . assertFalse ( resp . getDiagnosis ( ) . isEmpty ( ) )
wrongBoundaryString ( ) { final java . lang . String batch = ( ( ( ( "--batch_8194-cf13-1f5" + ( org . apache . olingo . server . core . deserializer . batch . BatchRequestParserTest . CRLF ) ) + ( org . apache . olingo . server . core . deserializer . batch . BatchRequestParserTest . GET_REQUEST ) ) + "--" ) + ( org ....
org . junit . Assert . assertEquals ( 0 , parts . size ( ) )
testAddOverflow ( ) { rfc = new controller . RecentFilesController ( "test" , 3 ) ; for ( int i = 1 ; i < 5 ; i ++ ) { java . io . File f = new java . io . File ( ( ( "src/test/resources/test" + i ) + ".xml" ) ) ; rfc . add ( f ) ; } "<AssertPlaceHolder>" ; } getFiles ( ) { return files ; }
org . junit . Assert . assertTrue ( ( ( rfc . getFiles ( ) . size ( ) ) == 3 ) )
testGetIssues_custom ( ) { com . hp . alm . ali . idea . RestInvocations . loadMetadata ( handler , "release-backlog-item" ) ; com . hp . alm . ali . idea . RestInvocations . loadMetadata ( handler , "requirement" ) ; handler . addRequest ( false , "GET" , "/qcbin/rest/domains/domain/projects/project/requirements?field...
org . junit . Assert . assertEquals ( 0 , list . length )
testServeStaticSecurityClassesWithoutSlash ( ) { when ( contextRenderable . getRequestPath ( ) ) . thenReturn ( "ninja/Ninja.class" ) ; ninja . Result result2 = assetsController . serveStatic ( ) ; ninja . Renderable renderable = ( ( ninja . Renderable ) ( result2 . getRenderable ( ) ) ) ; ninja . Result result = ninja...
org . junit . Assert . assertEquals ( ninja . Results . notFound ( ) . getStatusCode ( ) , resultCaptor . getValue ( ) . getStatusCode ( ) )
testEvalIfThenElse ( ) { java . lang . String [ ] [ ] tests = new java . lang . String [ ] [ ] { new java . lang . String [ ] { "%?%{0}%tA%;" , "%?%{0}%tA%e%{0}%tB%eC%;" 0 } , new java . lang . String [ ] { "%?%{0}%tA%e%{0}%tB%eC%;" 2 , "%?%{0}%tA%e%{0}%tB%eC%;" 4 } , new java . lang . String [ ] { "%?%{0}%tA%e%{0}%tB%...
org . junit . Assert . assertEquals ( test [ 1 ] , result . toString ( ) )
processOptionsNoOptions ( ) { java . util . LinkedList < java . lang . String > options = new java . util . LinkedList < java . lang . String > ( ) ; options . add ( "dummy" ) ; org . apache . hadoop . fs . shell . Count count = new org . apache . hadoop . fs . shell . Count ( ) ; count . processOptions ( options ) ; "...
org . junit . Assert . assertFalse ( count . isShowQuotas ( ) )
testGenericContainsLocale ( ) { com . github . resource4j . resources . context . ResourceResolutionContext generic = com . github . resource4j . resources . context . ResourceResolutionContext . in ( ) ; com . github . resource4j . resources . context . ResourceResolutionContext locale = com . github . resource4j . re...
org . junit . Assert . assertTrue ( generic . contains ( locale ) )
testPartiallyRotatedText ( ) { byte [ ] bytes = com . itextpdf . text . pdf . parser . TextExtractionTest . createPdfWithRotatedText ( TEXT1 , TEXT2 , 33 , true , ( - 20 ) ) ; com . itextpdf . text . pdf . parser . PdfTextExtractor ex = new com . itextpdf . text . pdf . parser . PdfTextExtractor ( new com . itextpdf . ...
org . junit . Assert . assertEquals ( ( ( ( TEXT1 ) + "\n" ) + ( TEXT2 ) ) , ex . getTextFromPage ( 1 ) )
testRemovingSEofNBMechanism ( ) { org . openscience . cdk . reaction . IReactionMechanism mechanism = new org . openscience . cdk . reaction . mechanism . RemovingSEofNBMechanism ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( mechanism )
getMenus ( ) { dto . setMenus ( menus ) ; "<AssertPlaceHolder>" ; } getMenus ( ) { dto . setMenus ( menus ) ; org . junit . Assert . assertEquals ( menus , dto . getMenus ( ) ) ; }
org . junit . Assert . assertEquals ( menus , dto . getMenus ( ) )
testGetNetworkString ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testQueryWithEnum ( ) { io . yawp . repository . models . basic . BasicObject object = new io . yawp . repository . models . basic . BasicObject ( ) ; object . setStatus ( Status . RUNNING ) ; yawp . save ( object ) ; io . yawp . repository . models . basic . BasicObject retrievedObject = yawp ( io . yawp . repository ...
org . junit . Assert . assertEquals ( Status . RUNNING , retrievedObject . getStatus ( ) )
testConstructor ( ) { org . kefirsf . bb . conf . Constant constant = new org . kefirsf . bb . conf . Constant ( "test" ) ; org . kefirsf . bb . conf . Pattern pattern = new org . kefirsf . bb . conf . Pattern ( java . util . Arrays . asList ( constant ) ) ; "<AssertPlaceHolder>" ; } getElements ( ) { return elements ;...
org . junit . Assert . assertEquals ( constant , pattern . getElements ( ) . iterator ( ) . next ( ) )
testExecuteAction ( ) { me . addAgent ( ma , "D" ) ; me . executeAction ( ma , new aima . core . environment . map . MoveToAction ( "C" ) ) ; "<AssertPlaceHolder>" ; } getAgentLocation ( aima . core . agent . Agent ) { return agentLocations . get ( anAgent ) . getCell ( ) ; }
org . junit . Assert . assertEquals ( me . getAgentLocation ( ma ) , "C" )
testNoOpMap ( ) { java . util . Map < java . lang . String , java . lang . String > noop = new OakFileDataStore . NoOpMap < java . lang . String , java . lang . String > ( ) ; noop . put ( "a" , "b" ) ; noop . remove ( "foo" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return options . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( noop . isEmpty ( ) )
getTopicsShouldFetchFromForumAndFromMovedIdExpectTwoResults ( ) { new net . jforum . util . JDBCLoader ( session ( ) ) . run ( "/forumdao/getTopicsShouldFetchFromForumAndFromMovedIdExpectTwoResults.sql" ) ; net . jforum . repository . ForumRepository dao = this . newForumDao ( ) ; net . jforum . entities . Forum forum ...
org . junit . Assert . assertEquals ( 2 , topics . size ( ) )
testNullInit ( ) { nl . basjes . parse . useragent . annotate . UserAgentAnnotationAnalyzer < java . lang . String > userAgentAnalyzer = new nl . basjes . parse . useragent . annotate . UserAgentAnnotationAnalyzer ( ) ; "<AssertPlaceHolder>" ; } map ( T ) { if ( record == null ) { return null ; } if ( ( mapper ) == nul...
org . junit . Assert . assertNull ( userAgentAnalyzer . map ( null ) )
testCreationDate ( ) { org . candlepin . model . Product prod = org . candlepin . test . TestUtil . createProduct ( "test-label" , "test-product-name" ) ; productCurator . create ( prod ) ; "<AssertPlaceHolder>" ; } getCreated ( ) { return created ; }
org . junit . Assert . assertNotNull ( prod . getCreated ( ) )
testLastFieldOptionalFalseByDefault ( ) { final com . cronutils . model . definition . CronDefinition definition = builder . withHours ( ) . and ( ) . instance ( ) ; "<AssertPlaceHolder>" ; } instance ( ) { return new com . cronutils . model . field . constraint . FieldConstraintsBuilder ( ) ; }
org . junit . Assert . assertNotNull ( definition )
testConvertToType04 ( ) { javax . el . CompositeELResolver resolver = new javax . el . CompositeELResolver ( ) ; javax . el . ELContext context = new javax . el . TesterELContext ( resolver ) ; javax . el . ValueExpression ve = javax . el . ELManager . getExpressionFactory ( ) . createValueExpression ( context , "2" , ...
org . junit . Assert . assertEquals ( "2" , result )
testGetAnalyzerEnabledSettingKey ( ) { org . owasp . dependencycheck . analyzer . DependencyMergingAnalyzer instance = new org . owasp . dependencycheck . analyzer . DependencyMergingAnalyzer ( ) ; java . lang . String expResult = Settings . KEYS . ANALYZER_DEPENDENCY_MERGING_ENABLED ; java . lang . String result = ins...
org . junit . Assert . assertEquals ( expResult , result )
httpRequestWasSent_ReturnsTrueIfRequestWasSent ( ) { makeRequest ( "http://example.com" ) ; "<AssertPlaceHolder>" ; } httpRequestWasMade ( ) { return org . robolectric . shadows . httpclient . FakeHttp . getFakeHttpLayer ( ) . hasRequestInfos ( ) ; }
org . junit . Assert . assertTrue ( org . robolectric . shadows . httpclient . FakeHttp . httpRequestWasMade ( ) )
testGetElementsByEdgeIdWithViewRestrictedByGroupAndAPreAggregationFilter ( ) { final uk . gov . gchq . gaffer . graph . Graph graph = uk . gov . gchq . gaffer . mapstore . impl . GetAllElementsHandlerTest . getGraph ( ) ; final uk . gov . gchq . gaffer . operation . impl . add . AddElements addElements = new uk . gov ....
org . junit . Assert . assertEquals ( expectedResults , resultsSet )
testExplicit ( ) { final com . aparapi . runtime . LocalArrayArgsTest . LocalArrayArgsKernel kernel = new com . aparapi . runtime . LocalArrayArgsTest . LocalArrayArgsKernel ( ) ; try { final com . aparapi . Range range = com . aparapi . runtime . LocalArrayArgsTest . openCLDevice . createRange ( com . aparapi . runtim...
org . junit . Assert . assertTrue ( validate ( ) )
testEvents_BoundTypeIsNotEvent ( ) { org . kie . workbench . common . widgets . client . datamodel . AsyncPackageDataModelOracle oracle = new org . kie . workbench . common . widgets . client . datamodel . AsyncPackageDataModelOracleImpl ( serviceCaller , validatorInstance ) ; oracle . setPackageName ( "org.test" ) ; o...
org . junit . Assert . assertFalse ( result )
testGet ( ) { System . out . println ( "get" ) ; for ( int i = 0 ; i < ( dvec . length ( ) ) ; i ++ ) "<AssertPlaceHolder>" ; try { cvec . get ( cvec . length ( ) ) ; org . junit . Assert . fail ( "Index<sp>out<sp>of<sp>bounds<sp>should<sp>have<sp>occured" ) ; } catch ( java . lang . IndexOutOfBoundsException ex ) { } ...
org . junit . Assert . assertEquals ( dvec . get ( i ) , cvec . get ( i ) , 0.0 )
testPendingCallsAreFilled ( ) { akka . testkit . TestActorRef < akka . actor . Actor > projection = akka . testkit . TestActorRef . create ( no . ks . eventstore2 . projection . ProjectionCallTest . _system , akka . actor . Props . create ( no . ks . eventstore2 . formProcessorProject . FormStatuses . class , super . t...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , nrStatuser )
isAlignmentSoftClipped_should_handle_hard_clips ( ) { htsjdk . samtools . SAMRecord r = new htsjdk . samtools . SAMRecord ( getContext ( ) . getBasicSamHeader ( ) ) ; r . setCigarString ( "1H1S1M" ) ; "<AssertPlaceHolder>" ; } isAlignmentSoftClipped ( htsjdk . samtools . SAMRecord ) { return au . edu . wehi . idsv . sa...
org . junit . Assert . assertTrue ( au . edu . wehi . idsv . sam . SAMRecordUtil . isAlignmentSoftClipped ( r ) )
totallyWrongTypes ( ) { com . fasterxml . jackson . databind . JsonNode json = parse ( ( "{" + ( ( ( ( ( ( ( ( ( "<sp>'methods':<sp>true," + "<sp>'fullUrl':'notBoolean'," 1 ) + "<sp>'headers':<sp>true," ) + "<sp>'destination':true," ) + "<sp>'expireAfter':true," ) + "<sp>'queueExpireAfter':true," ) + "<sp>'type':true,"...
org . junit . Assert . assertEquals ( "<sp>'fullUrl':'notBoolean'," 0 , 10 , valMsgs . size ( ) )
deleteFacet ( ) { final java . lang . String filterName = getFilterName ( ) ; final org . alfresco . repo . search . impl . solr . facet . SolrFacetProperties facetProps = new org . alfresco . repo . search . impl . solr . facet . SolrFacetProperties . Builder ( ) . filterID ( filterName ) . facetQName ( org . alfresco...
org . junit . Assert . assertNull ( solrFacetProperties )
getDiagnosticsVerifyReturnValue ( ) { when ( chargePointService . getDiagnostics ( any ( io . motown . ocpp . v15 . soap . chargepoint . GetDiagnosticsRequest . class ) , eq ( io . motown . ocpp . v15 . soap . chargepoint . CHARGING_STATION_ID . getId ( ) ) ) ) . thenReturn ( getGetDiagnosticsResponse ( io . motown . o...
org . junit . Assert . assertEquals ( io . motown . ocpp . v15 . soap . chargepoint . DIAGNOSTICS_FILENAME , returnFilename )
testGetDialog ( ) { org . apache . poi . xssf . usermodel . XSSFWorkbook workbook = new org . apache . poi . xssf . usermodel . XSSFWorkbook ( ) ; org . apache . poi . xssf . usermodel . XSSFDialogsheet dialogsheet = workbook . createDialogsheet ( "Dialogsheet<sp>1" , null ) ; "<AssertPlaceHolder>" ; workbook . close (...
org . junit . Assert . assertTrue ( dialogsheet . getDialog ( ) )
test ( ) { org . simpleflatmapper . reflect . Getter < org . simpleflatmapper . reflect . test . getter . InstantiatorGetterTest . T , org . simpleflatmapper . reflect . test . getter . InstantiatorGetterTest . S > subGetter = new org . simpleflatmapper . reflect . Getter < org . simpleflatmapper . reflect . test . get...
org . junit . Assert . assertEquals ( t . s , p . s )
priorityqueue_or ( ) { org . roaringbitmap . RoaringBitmap rb1 = org . roaringbitmap . RoaringBitmap . bitmapOf ( 0 , 1 , 2 ) ; org . roaringbitmap . RoaringBitmap rb2 = org . roaringbitmap . RoaringBitmap . bitmapOf ( 0 , 5 , 6 ) ; org . roaringbitmap . RoaringBitmap rb3 = org . roaringbitmap . RoaringBitmap . bitmapO...
org . junit . Assert . assertEquals ( expected , result )
testInlineCastWithFQN ( ) { java . lang . String str = "import<sp>org.drools.compiler.Person;\n" + ( ( ( "rule<sp>R1<sp>when\n" + "<sp>Person(<sp>name<sp>==<sp>\"mark\",<sp>address#org.drools.compiler.LongAddress.country<sp>==<sp>\"uk\"<sp>)\n" ) + "then\n" ) + "end\n" ) ; org . kie . api . KieBase kbase = loadKnowledg...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
webComponentIsEmbeddedViaIndexPage ( ) { open ( ) ; com . vaadin . testbench . TestBenchElement wrapper = $ ( "embedded-component" ) . first ( ) ; java . util . List < com . vaadin . testbench . TestBenchElement > embedded = wrapper . $ ( "div" ) . attribute ( "id" , "my-component" ) . all ( ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( 1 , embedded . size ( ) )
testDoCreateItem ( ) { logs . record ( hudson . model . AbstractItem . class , Level . ALL ) ; hudson . model . MyView view = new hudson . model . MyView ( "My" , rule . jenkins ) ; rule . jenkins . addView ( view ) ; com . gargoylesoftware . htmlunit . html . HtmlPage newItemPage = rule . createWebClient ( ) . goTo ( ...
org . junit . Assert . assertThat ( view . getItems ( ) , contains ( equalTo ( item ) ) )
getRawListReturnTypeNoGenerics ( ) { java . util . Collection < java . lang . reflect . Field > fieldsWithGetters = org . mule . runtime . module . extension . internal . util . IntrospectionUtils . getFieldsWithGetters ( org . mule . test . petstore . extension . PhoneNumber . class , reflectionCache ) ; "<AssertPlace...
org . junit . Assert . assertThat ( fieldsWithGetters . size ( ) , org . hamcrest . CoreMatchers . is ( 4 ) )
getClientConfiguration_useDynamic ( ) { org . mockito . Mockito . when ( mockStaticService . getClientConfiguration ( mockServerConfig ) ) . thenReturn ( null ) ; org . mockito . Mockito . when ( mockDynamicService . getClientConfiguration ( mockServerConfig ) ) . thenReturn ( mockClient ) ; org . mitre . oauth2 . mode...
org . junit . Assert . assertEquals ( mockClient , result )
predicateFromIncorrectScript ( ) { java . util . function . Predicate < Cache . Entry < java . lang . String , java . lang . String > > predicate = this . cut . createFromNashornScript ( "false" ) ; boolean result = predicate . test ( null ) ; "<AssertPlaceHolder>" ; } createFromNashornScript ( java . lang . String ) {...
org . junit . Assert . assertTrue ( result )
testGetTablesEmpty ( ) { newDialectFor ( io . confluent . connect . jdbc . dialect . GenericDatabaseDialectTest . TABLE_TYPES , null ) ; "<AssertPlaceHolder>" ; } tableIds ( java . sql . Connection ) { java . sql . DatabaseMetaData metadata = conn . getMetaData ( ) ; java . lang . String [ ] tableTypes = tableTypes ( m...
org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , dialect . tableIds ( conn ) )
query_by_orderbyset ( ) { java . util . List < org . nutz . dao . test . meta . Pet > pets = dao . query ( org . nutz . dao . test . meta . Pet . class , org . nutz . dao . Cnd . cri ( ) . asc ( "id" ) , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . keys ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 8 , pets . size ( ) )
testSizeIsOneIfTreeHasOneEntry ( ) { "<AssertPlaceHolder>" ; } create ( int , int ) { com . github . davidmoten . rtree . RTree < java . lang . Object , com . github . davidmoten . rtree . geometry . Rectangle > tree = com . github . davidmoten . rtree . RTree . maxChildren ( maxChildren ) . create ( ) ; for ( int i = ...
org . junit . Assert . assertEquals ( 1 , com . github . davidmoten . rtree . RTreeTest . create ( 3 , 1 ) . size ( ) )
testDefaultRecordDelimiters ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; org . apache . hadoop . fs . FileSystem localFs = org . apache . hadoop . fs . FileSystem . getLocal ( conf ) ; localFs . delete ( org . apache . hadoop . mapred . TestLineRecordR...
org . junit . Assert . assertEquals ( expected , readOutputFile ( conf ) )
shouldReturnName ( ) { "<AssertPlaceHolder>" ; } getName ( ) { return "Proxy" ; }
org . junit . Assert . assertEquals ( "Proxy" , bean . getName ( ) )
testFindAllOrderByRole ( ) { java . lang . String name1 = "alpha" ; java . lang . String name2 = "bravo" ; java . lang . String name3 = "charlie" ; org . oscarehr . common . model . SecRole secRole1 = new org . oscarehr . common . model . SecRole ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . gener...
org . junit . Assert . assertTrue ( true )
testMixedSyncAsyncLogWritingAndRedoing ( ) { int iterations = 10 ; for ( int i = 0 ; i < iterations ; i ++ ) { journal . io . api . Journal . WriteType sync = ( ( i % 2 ) == 0 ) ? Journal . WriteType . SYNC : Journal . WriteType . ASYNC ; journal . write ( new java . lang . String ( ( "DATA" + i ) ) . getBytes ( "UTF-8...
org . junit . Assert . assertEquals ( ( "DATA" + ( i ++ ) ) , new java . lang . String ( buffer , "UTF-8" ) )
testGetConcatenatorSingle ( ) { ca . corefacility . bioinformatics . irida . processing . concatenate . SequencingObjectConcatenator < ca . corefacility . bioinformatics . irida . model . sequenceFile . SingleEndSequenceFile > concatenator = ca . corefacility . bioinformatics . irida . processing . concatenate . Sequen...
org . junit . Assert . assertTrue ( ( concatenator instanceof ca . corefacility . bioinformatics . irida . processing . concatenate . impl . SingleEndSequenceFileConcatenator ) )
testGetParameterNormal ( ) { java . util . Map < java . lang . String , java . util . List < java . lang . String > > queryParams = new java . util . HashMap ( ) ; queryParams . put ( "name" , java . util . Arrays . asList ( "value" ) ) ; javax . servlet . http . HttpServletRequest request = new org . apache . servicec...
org . junit . Assert . assertEquals ( "value" , request . getParameter ( "name" ) )
createContentTargetingTrackingAction ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . module . tests . CONTENT_TARGETING_TRACKING_ACTION ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningJobs ( ) ; viewAction . p...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( com . liferay . ide . ui . module . tests . NewModuleProjectWizardLiferayWorkspaceMavenTests . liferayWorkspace . getModuleFiles ( project . getName ( ) ) ) )
testZoekLeegGroepOpRelatieLeeg ( ) { final java . util . Set < nl . bzk . brp . domain . algemeen . ZoekCriterium > zoekCriteria = new java . util . HashSet ( ) ; nl . bzk . brp . domain . algemeen . ZoekCriterium zoekCriteria1 = new nl . bzk . brp . domain . algemeen . ZoekCriterium ( getAttribuutElement ( Element . G...
org . junit . Assert . assertEquals ( 1 , ids . size ( ) )
createRiverForAccount ( ) { com . streamreduce . core . model . Account account = new com . streamreduce . core . model . Account . Builder ( ) . name ( "foo" ) . build ( ) ; accountDAO . save ( account ) ; java . net . URL accountTypeUrl = searchService . createRiverForAccount ( account ) ; "<AssertPlaceHolder>" ; } c...
org . junit . Assert . assertNotNull ( accountTypeUrl )
addnode2 ( ) { com . bt . bcos . adapter . AdapterIf bcosAdapter = new org . opennms . xmlclient . bcos . OpenNmsBcosAdapter ( ) ; java . lang . String service = "" ; java . util . HashMap < java . lang . String , java . lang . String > params = new java . util . HashMap < java . lang . String , java . lang . String > ...
org . junit . Assert . assertTrue ( bcosAdapter . add ( service , params ) )
getPeople_shouldNotGetDeadPerson ( ) { java . util . List < org . openmrs . Person > people = hibernatePersonDAO . getPeople ( "dead-charlie" , false ) ; logPeople ( people ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( java . ut...
org . junit . Assert . assertEquals ( 0 , people . size ( ) )
testBanServiceOnDestination ( ) { System . out . println ( "ServiceDenialDaoTest.blockServiceOnDestination" ) ; serviceDenialDao . blockServiceOnDestination ( testService1 . getId ( ) , testDestinationId1 ) ; "<AssertPlaceHolder>" ; } isServiceBlockedOnDestination ( int , int ) { int denials = this . queryForInt ( "sel...
org . junit . Assert . assertTrue ( serviceDenialDao . isServiceBlockedOnDestination ( testService1 . getId ( ) , testDestinationId1 ) )
whenFilterListByAge_thenSizeShouldBe2 ( ) { java . util . List < com . baeldung . distinct . Person > personListFiltered = personList . stream ( ) . filter ( com . baeldung . distinct . DistinctWithJavaFunction . distinctByKey ( ( p ) -> p . getAge ( ) ) ) . collect ( java . util . stream . Collectors . toList ( ) ) ; ...
org . junit . Assert . assertTrue ( ( ( personListFiltered . size ( ) ) == 2 ) )
testNewFileWithWait ( ) { java . io . File f1 = createFile ( "newfile" ) ; org . eclipse . jgit . internal . storage . file . FileSnapshotTest . waitNextSec ( f1 ) ; org . eclipse . jgit . internal . storage . file . FileSnapshot save = org . eclipse . jgit . internal . storage . file . FileSnapshot . save ( f1 ) ; jav...
org . junit . Assert . assertTrue ( save . isModified ( f1 ) )
testOneBlockSuv ( ) { byte [ ] expected = org . apache . commons . codec . binary . Hex . decodeHex ( "7303c4ba1effc39d488065c2fd05f752" . toCharArray ( ) ) ; byte [ ] tag = test ( true ) ; "<AssertPlaceHolder>" ; } test ( boolean ) { com . github . aelstad . keccakj . keyak . v2 . LakeKeyak global = new com . github ....
org . junit . Assert . assertArrayEquals ( expected , tag )
userPermissionCheck_LOCKED_FAILED_LOGIN_ATTEMPTS_B10139 ( ) { pUser . setStatus ( UserAccountStatus . LOCKED_FAILED_LOGIN_ATTEMPTS ) ; passwordRecoverybean . verifyUserPermission ( pUser , marketplaceId ) ; verify ( passwordRecoverybean , times ( 1 ) ) . sendPasswordRecoveryMails ( eq ( pUser ) , eq ( EmailType . RECOV...
org . junit . Assert . assertEquals ( marketplaceId , urlCaptor . getValue ( ) )
orIsNotNullWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String subQueryJPQL = "select<sp>r.id<sp>from<sp>RegularEntityOne<sp>r<sp>where<sp>r.stringAttribute<sp>is<sp>not<sp>null<sp>or<sp>r.dateAttributeOne<sp>is<sp>not<sp>null" ; final java . lang . String query = ( ( "select<sp>r<sp>from<sp>Regula...
org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) )
testObjectArrayDeserialization ( ) { java . lang . Object [ ] actual = marshaller . unmarshal ( org . eclipse . dawnsci . json . test . JsonMarshallerInbuiltTypesTest . JSON_FOR_OBJECT_ARRAY , java . lang . Object [ ] . class ) ; "<AssertPlaceHolder>" ; } unmarshal ( java . lang . String , java . lang . Class ) { try {...
org . junit . Assert . assertArrayEquals ( actual , new java . lang . Object [ ] { "a" , "b" , 5 } )
testGetParametersWithMultipleParameter ( ) { java . lang . String field1 = "field1" ; java . lang . String value1 = "value1" ; java . util . Map < java . lang . String , java . lang . String > pathVariables = new java . util . HashMap ( ) ; pathVariables . put ( field1 , value1 ) ; java . lang . Long id1 = 1L ; java . ...
org . junit . Assert . assertEquals ( expected , actual )
testCreateFailure ( ) { final org . mockito . ArgumentCaptor < org . uberfire . mvp . Command > commandArgumentCaptor = org . mockito . ArgumentCaptor . forClass ( org . uberfire . mvp . Command . class ) ; uploader . create ( pkg , "file" , presenter ) ; verify ( moduleService , times ( 1 ) ) . resolveDefaultPath ( pk...
org . junit . Assert . assertNotNull ( command )
testGetParameters ( ) { java . lang . Long parentId = 1L ; java . lang . String abbrName = "abbrName" ; java . lang . String name = "name" ; org . lnu . is . domain . order . type . OrderType parent = new org . lnu . is . domain . order . type . OrderType ( ) ; parent . setId ( parentId ) ; org . lnu . is . domain . or...
org . junit . Assert . assertEquals ( expected , actual )
test ( ) { final org . simpleflatmapper . datastax . DatastaxMapper < org . simpleflatmapper . datastax . test . beans . DbObjectsWithSet > mapper = org . simpleflatmapper . datastax . DatastaxMapperFactory . newInstance ( ) . newBuilder ( org . simpleflatmapper . datastax . test . beans . DbObjectsWithSet . class ) . ...
org . junit . Assert . assertNotNull ( mapper )
testRewriteAction ( ) { java . lang . String grammar = "grammar<sp>T;<sp>\n" + ( ( ( ( ( ( "TParser" 0 + "TParser" 1 ) + "r\n" ) + "<sp>:<sp>INT<sp>-><sp>{new<sp>CommonTree(new<sp>CommonToken(FLOAT,$INT.text+\".0\"))}<sp>\n" ) + "<sp>;<sp>\n" ) + "TParser" 3 ) + "WS:<sp>(\'<sp>\'<sp>|<sp>\'\\n\'<sp>|<sp>\'\\t\')+<sp>{$...
org . junit . Assert . assertEquals ( "TParser" 4 , found )
testSetMillisecond ( ) { tested . setMillisecond ( 50 ) ; "<AssertPlaceHolder>" ; } getMillisecond ( ) { return this . millisecond ; }
org . junit . Assert . assertEquals ( 50 , tested . getMillisecond ( ) )
testNotDuplicatedLabelForProperty ( ) { es . gob . afirma . ui . wizardmultifirmacontrafirma . PanelEntradaAccessibilityTest . logger . info ( "testNotDuplicatedLabelForProperty" ) ; try { final es . gob . afirma . ui . wizardmultifirmacontrafirma . PanelEntrada panelEntrada = new es . gob . afirma . ui . wizardmultifi...
org . junit . Assert . assertTrue ( ( ( componentSet . size ( ) ) == ( componentList . size ( ) ) ) )
shouldFireErrorEventWithoutThrowable ( ) { java . lang . String message = "an<sp>error<sp>occured" ; log ( Level . SEVERE , message ) ; "<AssertPlaceHolder>" ; } log ( org . infinitest . util . Level , java . lang . String ) { org . infinitest . util . InfinitestUtils . fireLoggingEvent ( level , logMsg ) ; }
org . junit . Assert . assertEquals ( Level . SEVERE , messages . get ( message ) )
testAddNode ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { com . gentics . mesh . core . data . root . NodeRoot root = boot ( ) . nodeRoot ( ) ; com . gentics . mesh . parameter . impl . PagingParametersImpl pagingInfo = new com . gentics . mesh . parameter . impl . PagingParametersImpl ( 2 , 2L ) ; com ....
org . junit . Assert . assertEquals ( 3 , totalSize )
testRemove3 ( ) { try ( net . openhft . chronicle . map . ChronicleMap c = net . openhft . chronicle . map . jsr166 . map . ChronicleMapTest . newStrStrMap ( 8076 ) ) { c . put ( "sadsdf" , "asdads" ) ; "<AssertPlaceHolder>" ; } } remove ( net . openhft . chronicle . map . MapQueryContext , net . openhft . chronicle . ...
org . junit . Assert . assertFalse ( c . remove ( "sadsdf" , null ) )
testUpdateSchedulerPZInUseToDockerPZShouldFail ( ) { com . vmware . photon . controller . model . resources . ResourcePoolService . ResourcePoolState createdPlacementZone = createPlacementZone ( "scheduler-placement-zone" , true ) ; "<AssertPlaceHolder>" ; createComputeState ( createdPlacementZone , true ) ; com . vmwa...
org . junit . Assert . assertNotNull ( createdPlacementZone )
keyStoreIsNull ( ) { org . kaazing . gateway . server . test . Gateway gateway = new org . kaazing . gateway . server . test . Gateway ( ) ; java . security . KeyStore keyStore = null ; char [ ] password = "ab987c" . toCharArray ( ) ; org . kaazing . gateway . server . test . config . GatewayConfiguration configuration...
org . junit . Assert . assertEquals ( e . getMessage ( ) , null )
testMySQLQueryValidate ( ) { com . ctrip . platform . dal . daogen . sql . validate . SQLValidationTests . Items item = com . ctrip . platform . dal . daogen . sql . validate . SQLValidationTests . Items . create ( ) . add ( "ID" , "=" , Types . INTEGER ) . add ( "NAME" , "like" , Types . VARCHAR ) ; java . lang . Stri...
org . junit . Assert . assertTrue ( vret . isPassed ( ) )
testLiterToDm3 ( ) { final javax . measure . Quantity < javax . measure . quantity . Volume > oneLiter = tec . uom . se . quantity . Quantities . getQuantity ( 1 , systems . uom . ucum . LITER ) ; final javax . measure . Quantity < javax . measure . quantity . Volume > oneDm3 = tec . uom . se . quantity . Quantities . ...
org . junit . Assert . assertEquals ( 1.0 , oneLiter . to ( systems . uom . ucum . LITER_DM3 ) . getValue ( ) )
testIterratorNoValues ( ) { org . dcache . nfs . v4 . xdr . bitmap4 bitmap = new org . dcache . nfs . v4 . xdr . bitmap4 ( ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return new java . util . Iterator < java . lang . Integer > ( ) { int currentIndex = - 1 ; @ org . dcache . nfs . v4 . xdr . Override public boolean has...
org . junit . Assert . assertFalse ( bitmap . iterator ( ) . hasNext ( ) )
testWriteUtf8 ( ) { java . lang . String usAscii = "Some<sp>UTF-8<sp>like<sp>" ; io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( 16 ) ; buf . writeBytes ( usAscii . getBytes ( CharsetUtil . UTF_8 ) ) ; io . netty . buffer . ByteBuf buf2 = io . netty . buffer . Unpooled . buffer ( 16 ) ; io...
org . junit . Assert . assertEquals ( buf , buf2 )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . message . boards . model . MBThreadFlag > mbThreadFlags = _persistence . fetchByPrimaryKe...
org . junit . Assert . assertTrue ( mbThreadFlags . isEmpty ( ) )
shouldFailIfExceedingHeapByteBufferCapacity ( ) { final byte one = ( ( byte ) ( 1 ) ) ; final int capacity = 64 ; final int bytes = 65 ; final int offset = 1 ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocate ( capacity ) ; fill ( buffer , 0 , capacity , one ) ; try { org . apache . activemq . artemi...
org . junit . Assert . assertArrayEquals ( expectedContent , originalContent )
indicatorsPatternDoesntMatch ( ) { final org . w3c . dom . Document document = newRecord ( eu . aliada . rdfizer . pipeline . format . marc . selector . xml . A_VARIABLE_FIELD_NAME , '1' , '2' , 'a' , "A<sp>value" ) ; final java . lang . String [ ] unmatchingPatterns = new java . lang . String [ ] { "?3" , "#?" , "##" ...
org . junit . Assert . assertNull ( expression . evaluate ( document ) )
testGetActiveSubscriptionsForUser_differentUser ( ) { runTX ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . oscm . domobjects . Override public org . oscm . domobjects . Void call ( ) throws org . oscm . domobjects . Exception { supplier = org . oscm . test . data . Organizations . create...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testMonetaryConversionsIMF ( ) { final javax . money . MonetaryAmount amt = org . javamoney . moneta . Money . of ( 2000 , "EUR" ) ; javax . money . convert . CurrencyConversion conv = javax . money . convert . MonetaryConversions . getConversion ( "CHF" , "IMF" ) ; javax . money . MonetaryAmount converted = amt . with...
org . junit . Assert . assertNotNull ( converted )
testNeedActivateTwice ( ) { manager . activateServerPushFor ( org . eclipse . rap . rwt . internal . serverpush . ServerPushManager_Test . HANDLE_1 ) ; manager . deactivateServerPushFor ( org . eclipse . rap . rwt . internal . serverpush . ServerPushManager_Test . HANDLE_1 ) ; manager . activateServerPushFor ( org . ec...
org . junit . Assert . assertTrue ( manager . needsActivation ( ) )
shouldReturnTrueIfNotNull ( ) { boolean value = evaluator . evaluateBoolean ( "username" , new org . apache . ibatis . domain . blog . Author ( 1 , "cbegin" , "******" , "cbegin@apache.org" , "N/A" , org . apache . ibatis . domain . blog . Section . NEWS ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( true , value )
testBuildWithExmptyParameters ( ) { org . lnu . is . domain . specoffer . SpecOffer context = new org . lnu . is . domain . specoffer . SpecOffer ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>SpecOffer<sp>e<sp>WHERE<sp>e.status=:status<sp>AND<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; org . ln...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
entryWithMalformedDateIsStillUpdated ( ) { final org . apache . hc . core5 . http . Header [ ] headers = new org . apache . hc . core5 . http . Header [ ] { new org . apache . hc . core5 . http . message . BasicHeader ( "ETag" , "\"old\"" ) , new org . apache . hc . core5 . http . message . BasicHeader ( "Date" , "bad-...
org . junit . Assert . assertEquals ( "\"new\"" , updated . getFirstHeader ( "ETag" ) . getValue ( ) )
testSignatures1 ( ) { for ( int x = 0 ; x < 100 ; x ++ ) { org . nd4j . linalg . api . ndarray . INDArray z1 = org . nd4j . linalg . factory . Nd4j . randn ( 128 , 1 , 5325235 ) ; org . nd4j . linalg . api . ndarray . INDArray z2 = org . nd4j . linalg . factory . Nd4j . randn ( 128 , 1 , 5325235 ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( z1 , z2 )
testBuildWithParametersAndDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String abbrName = "abbrname" ; java . lang . String name = "nasfads" ; org . lnu . is . domain . enrolment . status . type . EnrolmentStatusType context = new org . lnu . is . domain . en...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testSerialization ( ) { com . orsoncharts . table . GridElement < java . lang . String , java . lang . String > e1 = new com . orsoncharts . table . GridElement < java . lang . String , java . lang . String > ( ) ; com . orsoncharts . table . GridElement < java . lang . String , java . lang . String > e2 = ( ( com . or...
org . junit . Assert . assertTrue ( e1 . equals ( e2 ) )
testGetSchema ( ) { connection = new org . xenei . jdbc4sparql . J4SConnection ( driver , url , properties ) ; "<AssertPlaceHolder>" ; } getSchema ( ) { return properties . getProperty ( J4SPropertyNames . SCHEMA_PROPERTY ) ; }
org . junit . Assert . assertNull ( connection . getSchema ( ) )
testEquals ( ) { com . streamreduce . core . model . OutboundConfiguration outboundConfigurationA = new com . streamreduce . core . model . OutboundConfiguration . Builder ( ) . credentials ( new com . streamreduce . core . model . ConnectionCredentials ( "user" , "pass" ) ) . protocol ( "s3" ) . destination ( "bucket"...
org . junit . Assert . assertTrue ( outboundConfigurationA . equals ( outboundConfigurationB ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . push . notifications . model . PushNotificationsDevice . class , _dynamicQueryClassLoader ) ; dynamicQuer...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
collectionOfStreamOfEmptyDatasetsShouldBeEmpty ( ) { java . util . stream . Stream < org . apache . jena . query . Dataset > stream = java . util . stream . Stream . < org . apache . jena . query . Dataset > builder ( ) . add ( org . apache . jena . query . DatasetFactory . create ( ) ) . add ( org . apache . jena . qu...
org . junit . Assert . assertTrue ( collected . isEmpty ( ) )
testMomentsAgo ( ) { org . ocpsoft . prettytime . PrettyTime t = new org . ocpsoft . prettytime . PrettyTime ( new java . util . Date ( 6000 ) , locale ) ; "<AssertPlaceHolder>" ; } format ( org . ocpsoft . prettytime . Duration ) { return ( duration . getQuantityRounded ( 50 ) ) + "<sp>minut" ; }
org . junit . Assert . assertEquals ( "" , t . format ( new java . util . Date ( 0 ) ) )