input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testServiceCredentialsWithoutNuxeoConfiguration ( ) { "<AssertPlaceHolder>" ; } getAWSCredentials ( ) { return getAWSCredentials ( null ) ; }
org . junit . Assert . assertNull ( service . getAWSCredentials ( ) )
testAtomsTo_Atom_Benzene ( ) { org . openscience . cdk . interfaces . IAtomContainer simple = org . openscience . cdk . templates . TestMoleculeFactory . makeBenzene ( ) ; org . openscience . cdk . interfaces . IAtom c1 = simple . getAtom ( 0 ) ; org . openscience . cdk . interfaces . IAtom c2 = simple . getAtom ( 1 ) ...
org . junit . Assert . assertArrayEquals ( new org . openscience . cdk . interfaces . IAtom [ ] { c1 , c2 , c3 , c4 } , paths . atomsTo ( c4 ) )
testAccessBasicValue_dynany ( ) { org . omg . CORBA . TypeCode tc = orb . get_primitive_tc ( org . omg . CORBA . TCKind . tk_any ) ; org . omg . DynamicAny . DynAny dynAny = createDynAnyFromTypeCode ( tc ) ; java . lang . String msg = "Value<sp>inserted<sp>into<sp>DynAny<sp>object<sp>is<sp>not<sp>equal<sp>to<sp>value<s...
org . junit . Assert . assertEquals ( msg , 787 , offload . get_long ( ) )
embedded_20 ( ) { org . apache . jena . sparql . core . DatasetGraph dsg = org . apache . jena . fuseki . main . TestEmbeddedFuseki . dataset ( ) ; int port = org . apache . jena . atlas . web . WebLib . choosePort ( ) ; org . apache . jena . fuseki . server . DataService dSrv = new org . apache . jena . fuseki . serve...
org . junit . Assert . assertNotNull ( x1 )
testExpandHandler ( ) { doAnswer ( new org . mockito . stubbing . Answer ( ) { @ org . uberfire . client . workbench . widgets . menu . Override public java . lang . Object answer ( org . mockito . invocation . InvocationOnMock invocation ) throws java . lang . Throwable { ( ( org . uberfire . mvp . Command ) ( invocat...
org . junit . Assert . assertTrue ( presenter . isExpanded ( ) )
assertToString ( ) { org . apache . shardingsphere . core . rule . TableRule actual = new org . apache . shardingsphere . core . rule . TableRule ( new org . apache . shardingsphere . api . config . sharding . TableRuleConfiguration ( "LOGIC_TABLE" , "ds${0..1}.table_${0..2}" ) , createShardingDataSourceNames ( ) , nul...
org . junit . Assert . assertThat ( actual . toString ( ) , org . hamcrest . CoreMatchers . is ( actualString ) )
whenSecondParamIsZeroShouldReturnIntMax ( ) { service = new com . baeldung . pmd . Cnt ( ) ; int answer = service . d ( 100 , 0 ) ; "<AssertPlaceHolder>" ; } d ( int , int ) { if ( b == 0 ) return Integer . MAX_VALUE ; else return a / b ; }
org . junit . Assert . assertEquals ( Integer . MAX_VALUE , answer )
testPrivateKeyInvalid ( ) { java . io . File privateKeyFile = testFolder . newFile ( "randomkey_rsa" ) ; com . google . common . io . Files . write ( "blah<sp>blah" . getBytes ( java . nio . charset . Charset . forName ( "UTF-8" ) ) , privateKeyFile ) ; privateKeyFile . deleteOnExit ( ) ; com . streamsets . pipeline . ...
org . junit . Assert . assertEquals ( 1 , issues . size ( ) )
testIsAssignable_withMessage ( ) { org . apache . commons . lang3 . Validate . isAssignableFrom ( java . lang . CharSequence . class , java . lang . String . class , "Error" ) ; org . apache . commons . lang3 . Validate . isAssignableFrom ( java . util . AbstractList . class , java . util . ArrayList . class , "Error" ...
org . junit . Assert . assertEquals ( "Error" , e . getMessage ( ) )
testWriteReadPos ( ) { java . lang . String fname = filenameOption ; positionReadOption = true ; long rdBeginPos = 0 ; int stat = testWriteAndRead ( fname , org . apache . hadoop . hdfs . TestWriteRead . WR_NTIMES , org . apache . hadoop . hdfs . TestWriteRead . WR_CHUNK_SIZE , rdBeginPos ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( 0 , stat )
testRunLoadContextCustomData ( ) { at . punkt . lodms . impl . ETLPipelineImplTest . MockApplicationEventPublisher eventPublisher = new at . punkt . lodms . impl . ETLPipelineImplTest . MockApplicationEventPublisher ( ) ; at . punkt . lodms . impl . ETLPipelineImpl instance = new at . punkt . lodms . impl . ETLPipeline...
org . junit . Assert . assertEquals ( "Test" , context . getCustomData ( ) . get ( "key" ) )
getTotalPosts ( ) { new net . jforum . util . JDBCLoader ( session ( ) ) . run ( "/forumdao/getTotalPosts.sql" ) ; net . jforum . repository . ForumRepository dao = this . newForumDao ( ) ; net . jforum . entities . Forum forum = dao . get ( 1 ) ; int totalPosts = dao . getTotalPosts ( forum ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( 2 , totalPosts )
insertBefore_addAndRemove_changesAreDiscarded ( ) { resetToRemoveAfterAddCase ( ) ; nodeList . add ( "foo" ) ; int index = ( nodeList . size ( ) ) - 1 ; nodeList . add ( index , "bar" ) ; nodeList . remove ( ( ( nodeList . size ( ) ) - 1 ) ) ; java . util . List < com . vaadin . flow . internal . change . NodeChange > ...
org . junit . Assert . assertEquals ( 1 , changes . size ( ) )
sanityCheck ( ) { org . verdictdb . connection . DbmsConnection dbmsConn = org . verdictdb . connection . JdbcConnection . create ( org . verdictdb . coordinator . ImpalaUniformScramblingCoordinatorTest . impalaConn ) ; org . verdictdb . connection . DbmsQueryResult rs = dbmsConn . execute ( java . lang . String . form...
org . junit . Assert . assertEquals ( 1000 , rs . getRowCount ( ) )
testValideEnGeauthenticeerdBericht ( ) { nl . bzk . brp . business . dto . BerichtVerwerkingsResultaat resultaat = getWebService ( ) . voerBerichtUit ( getBericht ( ) ) ; org . mockito . Mockito . verify ( getBerichtVerwerker ( ) ) . verwerkBericht ( org . mockito . Matchers . any ( nl . bzk . brp . model . objecttype ...
org . junit . Assert . assertEquals ( 0 , resultaat . getMeldingen ( ) . size ( ) )
testGetNextShardIterator ( ) { when ( mockResult . getNextShardIterator ( ) ) . thenReturn ( TEST_STRING ) ; java . lang . String actual = adapter . getNextShardIterator ( ) ; "<AssertPlaceHolder>" ; } getNextShardIterator ( ) { return internalResult . getNextShardIterator ( ) ; }
org . junit . Assert . assertEquals ( TEST_STRING , actual )
testEmpty ( ) { io . reactivex . Flowable < java . lang . String > source = io . reactivex . Flowable . empty ( ) ; final java . util . concurrent . atomic . AtomicBoolean wasCalled = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; source . compose ( com . github . davidmoten . rx2 . flowable . Transf...
org . junit . Assert . assertTrue ( wasCalled . get ( ) )
testSetParamTest ( ) { java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "testKey" , "testVal" ) ; RequestParser < String > . ParsedRequest parsed = target . new org . o3project . odenos . remoteobject . Pa...
org . junit . Assert . assertThat ( parsed . getParam ( "testKey2" ) , org . hamcrest . CoreMatchers . is ( "testVal2" ) )
testGetBooleanPropertyNull ( ) { java . lang . String key = null ; boolean defaultValue = true ; boolean returnAvlue = org . apache . ranger . common . PropertiesUtil . getBooleanProperty ( key , defaultValue ) ; "<AssertPlaceHolder>" ; } getBooleanProperty ( java . lang . String , boolean ) { if ( key == null ) { retu...
org . junit . Assert . assertTrue ( returnAvlue )
userAdminHasPermissionToEditModule ( ) { log . debug ( "userAdminHasPermissionToEditModule()" ) ; com . abixen . platform . core . domain . model . User admin = userRepository . findOne ( 1L ) ; com . abixen . platform . core . domain . model . Module module = moduleRepository . findOne ( 2L ) ; java . lang . Boolean h...
org . junit . Assert . assertTrue ( hasPermission )
whenEmployingVehicleWithDifferentWorkingShifts_certainJobsCanNeverBeAssignedToCertainVehicles ( ) { jsprit . core . problem . VehicleRoutingProblem . Builder vrpBuilder = VehicleRoutingProblem . Builder . newInstance ( ) ; new jsprit . core . problem . io . VrpXMLReader ( vrpBuilder ) . read ( "src/test/resources/simpl...
org . junit . Assert . assertTrue ( testFailed . isEmpty ( ) )
testExtensionRef ( ) { java . lang . String $ref = "application/x-www-form-urlencoded" ; validator . validate ( vh , context , key , $ref ) ; "<AssertPlaceHolder>" ; } getEventsSize ( ) { return result . getEvents ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
getNumberOfProcessDeploymentInfosUnrelatedToCategory ( ) { final long numberOfProcessDeploymentInfos = 9 ; doReturn ( numberOfProcessDeploymentInfos ) . when ( persistenceService ) . selectOne ( org . mockito . Matchers . < org . bonitasoft . engine . persistence . SelectOneDescriptor < java . lang . Long > > any ( ) )...
org . junit . Assert . assertEquals ( numberOfProcessDeploymentInfos , result )
boundaryToBytesForZRangeByLexShouldReturnDefaultValueWhenBoundaryIsNull ( ) { byte [ ] defaultValue = "tyrion" . getBytes ( ) ; "<AssertPlaceHolder>" ; } boundaryToBytesForZRangeByLex ( org . springframework . data . redis . connection . RedisZSetCommands . Range . Boundary , byte [ ] ) { if ( ( boundary == null ) || (...
org . junit . Assert . assertThat ( org . springframework . data . redis . connection . jedis . JedisConverters . boundaryToBytesForZRangeByLex ( null , defaultValue ) , org . hamcrest . core . Is . is ( defaultValue ) )
testHeeftNationaliteitOpPeildatum_eersteInschrijving_NationaliteitBestaatNogNiet ( ) { final nl . bzk . brp . bijhouding . bericht . model . ElementBuilder builder = new nl . bzk . brp . bijhouding . bericht . model . ElementBuilder ( ) ; final int peilDatum = 20160101 ; final nl . bzk . brp . bijhouding . bericht . mo...
org . junit . Assert . assertFalse ( bijhoudingPersoon . heeftNationaliteitAl ( nederlandseNatElement , peilDatum ) )
testGetZoneInUserNameWhenHasZone ( ) { java . lang . String testUser = "justauser#zone" ; java . lang . String expected = "zone" ; java . lang . String actual = org . irods . jargon . core . utils . MiscIRODSUtils . getZoneInUserName ( testUser ) ; "<AssertPlaceHolder>" ; } getZoneInUserName ( java . lang . String ) { ...
org . junit . Assert . assertEquals ( expected , actual )
testFilterWithoutSpace2 ( ) { com . liferay . portal . workflow . web . internal . util . filter . WorkflowDefinitionDescriptionPredicate predicate = new com . liferay . portal . workflow . web . internal . util . filter . WorkflowDefinitionDescriptionPredicate ( "Def" ) ; com . liferay . portal . kernel . workflow . W...
org . junit . Assert . assertTrue ( result )
testUser ( ) { java . lang . String fixture = "user" ; this . libshout . setUser ( fixture ) ; "<AssertPlaceHolder>" ; } getUser ( ) { return com . gmail . kunicins . olegs . libshout . Libshout . shout_get_user ( this . instance ) ; }
org . junit . Assert . assertEquals ( fixture , this . libshout . getUser ( ) )
testar8DigitosSemOperadora ( ) { java . lang . String numero = "88112233" ; java . lang . String numeroFormatado = br . com . any . utils . FormatadorUtils . formatarCelular ( numero ) ; java . lang . String esperado = "8811-2233" ; "<AssertPlaceHolder>" ; } formatarCelular ( java . lang . String ) { java . lang . Stri...
org . junit . Assert . assertEquals ( esperado , numeroFormatado )
testNewRing_IAtomContainer ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IRing ring = builder . newInstance ( org . openscience . cdk . interfaces . IRing . class , ...
org . junit . Assert . assertNotNull ( ring )
testGeefGroepenVanElement_nullArg ( ) { java . util . Collection < nl . bzk . brp . domain . leveringmodel . MetaGroep > groepenVanElement = modelAanwijzer . geefGroepenVanElement ( null ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return elementen . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( groepenVanElement . isEmpty ( ) )
testStartListeningSuccess ( ) { int newSourcePort = 123 ; org . mockito . Mockito . doNothing ( ) . when ( ipDevice ) . setParameter ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . any ( byte [ ] . class ) ) ; ipDevice . startListening ( newSourcePort ) ; "<AssertPlaceHolder>" ; } startListening (...
org . junit . Assert . assertEquals ( newSourcePort , ipDevice . sourcePort )
testGetKeys ( ) { setStringProperty ( new org . xwiki . model . reference . DocumentReference ( CURRENT_WIKI , WikiPreferencesConfigurationSource . CLASS_SPACE_NAME , WikiPreferencesConfigurationSource . CLASS_PAGE_NAME ) , "key1" , "value" ) ; setStringProperty ( new org . xwiki . model . reference . DocumentReference...
org . junit . Assert . assertEquals ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "key1" , "key2" ) ) , new java . util . HashSet < java . lang . String > ( result ) )
testHashBaseForItemAnswersNormalizesEmbeddedResourceUrls ( ) { final org . sakaiproject . tool . assessment . data . dao . assessment . ItemData item = new org . sakaiproject . tool . assessment . data . dao . assessment . ItemData ( ) ; item . setTypeId ( TypeIfc . FILL_IN_BLANK ) ; final org . apache . commons . lang...
org . junit . Assert . assertThat ( actualHashBase . toString ( ) , org . hamcrest . CoreMatchers . equalTo ( expectedHashBase . toString ( ) ) )
testAddSeveral ( ) { org . geotools . data . DataStore csv = this . getDataStore ( ) ; org . geotools . data . simple . SimpleFeatureStore rows = ( ( org . geotools . data . simple . SimpleFeatureStore ) ( csv . getFeatureSource ( org . geotools . data . csv . CSVDataStoreTest . TYPE_NAME ) ) ) ; org . opengis . featur...
org . junit . Assert . assertEquals ( 12 , features . size ( ) )
decodeWithoutUnzipping ( ) { final java . lang . String payload = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( 1024 ) ; java . io . ByteArrayInputStream byteArrayInputStream = new java . io . ByteArrayInputStream ( payload . getBytes ( ) ) ; org . mule . runtime . core . internal . transforme...
org . junit . Assert . assertThat ( org . mule . runtime . core . api . util . IOUtils . toString ( gzipInputStream ) , org . hamcrest . CoreMatchers . is ( payload ) )
test1 ( ) { org . apache . log4j . Logger . getRootLogger ( ) . setLevel ( org . apache . log4j . Level . ALL ) ; java . net . URL fileUrl = getClass ( ) . getResource ( "overall.fgd" ) ; java . io . File srcFile = new java . io . File ( fileUrl . toURI ( ) ) ; com . technofovea . hl2parse . fgd . FgdSpec spec = new co...
org . junit . Assert . assertEquals ( 0 , spec . getEntClassNames ( ) . size ( ) )
testAddEntryNonExistingAT ( ) { org . apache . directory . ldap . client . api . LdapConnection connection = getAdminConnection ( getLdapServer ( ) ) ; org . apache . directory . api . ldap . model . name . Dn dn = new org . apache . directory . api . ldap . model . name . Dn ( ( "cn=Kate<sp>Bush," + ( org . apache . d...
org . junit . Assert . assertNull ( entry )
testOrder1_2 ( ) { if ( ( ! ( slice1File . exists ( ) ) ) || ( ! ( slice2File . exists ( ) ) ) ) { org . esa . snap . engine_utilities . util . TestUtils . skipTest ( this , "input<sp>not<sp>found" ) ; return ; } final org . esa . snap . core . datamodel . Product slice1Product = org . esa . snap . engine_utilities . u...
org . junit . Assert . assertNotNull ( op )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . PasswordPolicyRel newPasswordPolicyRel = addPasswordPolicyRel ( ) ; com . liferay . portal . kernel . model . PasswordPolicyRel existingPasswordPolicyRel = _persistence . findByPrimaryKey ( newPasswordPolicyRel . getPrimaryKey ( ) ) ; "<Assert...
org . junit . Assert . assertEquals ( existingPasswordPolicyRel , newPasswordPolicyRel )
testListByBarcodeEmpty ( ) { java . util . List < uk . ac . bbsrc . tgac . miso . core . data . SequencerPartitionContainer > spcs = dao . listSequencerPartitionContainersByBarcode ( "A0AAAAAXX" ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , spcs . size ( ) )
injectIntoLong ( ) { org . eclipse . collections . api . set . ImmutableSet < java . lang . Integer > objects = this . newSetWith ( 1 , 2 , 3 ) ; long result = objects . injectInto ( 1 , AddFunction . INTEGER_TO_LONG ) ; "<AssertPlaceHolder>" ; } injectInto ( double , org . eclipse . collections . api . block . functio...
org . junit . Assert . assertEquals ( 7 , result )
checkMessageMethod ( ) { java . lang . String str = "test" ; info . smart_tools . smartactors . ioc . istrategy_container . exception . StrategyContainerException exception = new info . smart_tools . smartactors . ioc . istrategy_container . exception . StrategyContainerException ( str ) ; "<AssertPlaceHolder>" ; throw...
org . junit . Assert . assertEquals ( exception . getMessage ( ) , str )
testNoClassContentSupport ( ) { when ( preferenceManager . isClientSupportsClassFileContent ( ) ) . thenReturn ( true ) ; java . lang . String uri = org . eclipse . jdt . ls . core . internal . ClassFileUtil . getURI ( project , "org.apache.commons.lang3.StringUtils" ) ; when ( preferenceManager . isClientSupportsClass...
org . junit . Assert . assertNull ( definitions )
testJsonObjectEquality2 ( ) { io . vertx . core . json . JsonObject obj1 = new io . vertx . core . json . JsonObject ( ) . put ( "arr" , new io . vertx . core . json . JsonArray ( ) . add ( "x" ) ) ; io . vertx . core . json . List < java . lang . Object > list = new io . vertx . core . json . ArrayList ( ) ; list . ad...
org . junit . Assert . assertEquals ( obj2 , obj1 )
testGetLineMixed ( ) { java . lang . String input = "col1\tcol2\tcol3\r\ndata1\tdata2\tdata3\r" ; java . lang . String expected = "col1\tcol2\tcol3" ; java . lang . String output = org . pentaho . di . trans . steps . fileinput . text . TextFileInputUtils . getLine ( null , org . pentaho . di . trans . steps . fileinpu...
org . junit . Assert . assertEquals ( expected , output )
checkNullOnTryToGetIterator ( ) { info . smart_tools . smartactors . iobject_extension . configuration_object . ConfigurationObject co = new info . smart_tools . smartactors . iobject_extension . configuration_object . ConfigurationObject ( this . configString ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return new inf...
org . junit . Assert . assertNull ( co . iterator ( ) )
testFatCat1 ( ) { java . lang . String result = org . biojava . nbio . structure . align . multiple . util . MultipleAlignmentWriter . toFatCat ( alignment1 ) ; java . io . FileReader file = new java . io . FileReader ( "src/test/resources/testMSTA1.fatcat" ) ; java . io . BufferedReader reader = new java . io . Buffer...
org . junit . Assert . assertEquals ( expected , result )
whenCallExtractSimpleQueryParamWithHiddenCharacter ( ) { java . util . Map < java . lang . String , com . stratio . explorer . notebook . form . Input > params = com . stratio . explorer . notebook . form . Input . extractSimpleQueryParam ( ScriptTypes . HIDDEN_CHAR ) ; "<AssertPlaceHolder>" ; } extractSimpleQueryParam...
org . junit . Assert . assertTrue ( params . isEmpty ( ) )
testParse6 ( ) { java . lang . String input = null ; long [ ] result = org . drools . core . base . evaluators . TimeIntervalParser . parse ( input ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { if ( ( paramText == null ) || ( ( paramText . trim ( ) . length ( ) ) == 0 ) ) { return new long [ 0 ] ; } ja...
org . junit . Assert . assertEquals ( 0 , result . length )
testLog2Floor_zero ( ) { org . apache . beam . runners . dataflow . worker . OrderedCode orderedCode = new org . apache . beam . runners . dataflow . worker . OrderedCode ( ) ; "<AssertPlaceHolder>" ; } log2Floor ( long ) { if ( n < 0 ) { throw new java . lang . IllegalArgumentException ( "must<sp>be<sp>non-negative" )...
org . junit . Assert . assertEquals ( ( - 1 ) , orderedCode . log2Floor ( 0 ) )
shouldReadHighIdUsingStaticMethod ( ) { long highId = 12345L ; org . neo4j . kernel . impl . store . id . IdGeneratorImpl . createGenerator ( fsr . get ( ) , file , highId , false ) ; long readHighId = org . neo4j . kernel . impl . store . id . IdGeneratorImpl . readHighId ( fsr . get ( ) , file ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( highId , readHighId )
happyCase ( ) { final java . util . List all = com . google . common . collect . Lists . newArrayList ( ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( mockContainer ) . allInstances ( dom . simple . SimpleObject . class ) ; will ( returnValue ( all ) ) ; } } ) ; final java . util . List list = ...
org . junit . Assert . assertThat ( list , org . hamcrest . CoreMatchers . is ( all ) )
testMethodDispatching ( ) { org . openl . rules . project . instantiation . ProjectEngineFactory < ? > factory = new org . openl . rules . project . instantiation . SimpleProjectEngineFactory . SimpleProjectEngineFactoryBuilder ( ) . setProvideRuntimeContext ( true ) . setProject ( "test-resources/dependencies/testMeth...
org . junit . Assert . assertEquals ( 2 , method . invoke ( factory . newInstance ( ) , context ) )
test_parse_changeStyle_sensitive ( ) { setCaseSensitive ( true ) ; java . text . ParsePosition pos = new java . text . ParsePosition ( 0 ) ; getFormatter ( ) . parseUnresolved ( "a" , pos ) ; "<AssertPlaceHolder>" ; } getIndex ( ) { return m_index ; }
org . junit . Assert . assertEquals ( pos . getIndex ( ) , 0 )
testSignatureConfirmation ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . w...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
test_staticNestedTypes_constructor ( ) { java . lang . String typeName = org . eclipse . xtext . common . types . testSetups . Bug347739 . class . getName ( ) ; org . eclipse . xtext . common . types . JvmGenericType type = ( ( org . eclipse . xtext . common . types . JvmGenericType ) ( getTypeProvider ( ) . findTypeBy...
org . junit . Assert . assertEquals ( 2 , constructor . getParameters ( ) . size ( ) )
equalsSame ( ) { "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { else if ( object instanceof org . mcsoxford . rss . RSSBase ) { final org . mcsoxford . rss . RSSBase other = ( ( org . mcsoxford . rss . RSSBase ) ( object ) ) ; if ( ( link ) == null ) { return ( other . link ) == null ; } return link . equa...
org . junit . Assert . assertTrue ( base . equals ( base ) )
testSymlinkTreeInputBasedRuleKeyDoesNotChangeIfLinkTargetsChange ( ) { graphBuilder . addToIndex ( symlinkTreeBuildRule ) ; com . facebook . buck . rules . keys . InputBasedRuleKeyFactory ruleKeyFactory = new com . facebook . buck . rules . keys . TestInputBasedRuleKeyFactory ( com . facebook . buck . testutil . FakeFi...
org . junit . Assert . assertEquals ( key1 , key2 )
testWelVerstrekkingsbeperkingMogelijk ( ) { java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > meldingen ; meldingen = bedrijfsregel . voerRegelUit ( null , bouwPersoon ( true ) , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
matchRequiredVersions_shouldReturnTrueWhenRequiredVersionIsEmpty ( ) { java . lang . String openmrsVersion = "1.11.4" ; java . lang . String requiredVersion = "" ; "<AssertPlaceHolder>" ; } matchRequiredVersions ( java . lang . String , java . lang . String ) { if ( org . apache . commons . lang3 . StringUtils . isNotE...
org . junit . Assert . assertTrue ( org . openmrs . module . ModuleUtil . matchRequiredVersions ( openmrsVersion , requiredVersion ) )
testIsDeliver ( ) { try { boolean deliver = com . liferay . portal . kernel . notifications . UserNotificationManagerUtil . isDeliver ( 1 , TestUserNotificationHandler . SELECTOR , TestUserNotificationHandler . PORTLET_ID , 1 , 1 , 1 , null ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { throw new j...
org . junit . Assert . assertTrue ( deliver )
testRunSetsInstantStarted ( ) { edu . illinois . library . cantaloupe . async . AuditableFutureTask < ? > task = new edu . illinois . library . cantaloupe . async . AuditableFutureTask ( ( ) -> "" ) ; task . run ( ) ; final long delta = ( java . time . Instant . now ( ) . toEpochMilli ( ) ) - ( task . getInstantStarted...
org . junit . Assert . assertTrue ( ( delta < 10 ) )
jsonParameter_notEqual_valueType ( ) { org . oscm . json . JsonParameter jsonParam1 = givenJsonParameter ( ) ; org . oscm . json . JsonParameter jsonParam2 = givenJsonParameter ( ) ; jsonParam2 . setValueType ( ( ( jsonParam1 . getValueType ( ) ) + "changed" ) ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object...
org . junit . Assert . assertFalse ( jsonParam1 . equals ( jsonParam2 ) )
canLoadNormalFile ( ) { final com . google . common . collect . Multimap < com . hartwig . hmftools . common . chromosome . Chromosome , com . hartwig . hmftools . common . gc . GCProfile > gcContent = com . hartwig . hmftools . common . gc . GCProfileFactory . loadGCContent ( 1000 , ( ( com . hartwig . hmftools . comm...
org . junit . Assert . assertEquals ( 100 , gcContent . size ( ) )
givenInputstreamOKWhenCheckThenReturnOK ( ) { when ( fr . gouv . vitam . functional . administration . client . AdminManagementClientRestTest . mock . post ( ) ) . thenReturn ( javax . ws . rs . core . Response . status ( Status . OK ) . build ( ) ) ; try ( fr . gouv . vitam . functional . administration . client . Adm...
org . junit . Assert . assertEquals ( Status . OK . getStatusCode ( ) , checkFormatReponse . getStatus ( ) )
testUnwrapMerge ( ) { com . metamx . collections . bitmap . RoaringBitmapFactory factory = new com . metamx . collections . bitmap . RoaringBitmapFactory ( ) ; com . metamx . collections . bitmap . WrappedRoaringBitmap set = new com . metamx . collections . bitmap . WrappedRoaringBitmap ( ) ; set . add ( 1 ) ; set . ad...
org . junit . Assert . assertEquals ( 3 , bitmap . size ( ) )
testDiagToolStdOut ( ) { try { java . lang . String stdout = getDiagToolStdOutAsStr ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( ) ; } }
org . junit . Assert . assertNotNull ( stdout )
testReleaseExternalParent ( ) { org . apache . maven . shared . release . config . ReleaseDescriptorBuilder builder = new org . apache . maven . shared . release . config . ReleaseDescriptorBuilder ( ) ; java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createDescriptorFromProjects ...
org . junit . Assert . assertTrue ( true )
keySet_toArray_withSmallTarget ( ) { org . eclipse . collections . api . map . MutableMap < java . lang . Integer , java . lang . String > map = this . newMapWithKeysValues ( 1 , "One" , 2 , "Two" , 3 , "Three" , 4 , "Four" ) ; java . lang . Integer [ ] destination = new java . lang . Integer [ 2 ] ; java . lang . Inte...
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 1 , 2 , 3 , 4 } , result )
testProblemSuppression ( ) { java . io . File file = new java . io . File ( "/test/testfile" ) ; profile . addProblemSuppression ( file , "id1" ) ; "<AssertPlaceHolder>" ; } isProblemInLineSuppressed ( java . io . File , java . lang . String , int ) { if ( file == null ) { return false ; } java . io . File absoluteFile...
org . junit . Assert . assertTrue ( profile . isProblemInLineSuppressed ( file , "id1" , 12 ) )
listAccessLevelsWithNoComponents ( ) { when ( this . componentManager . < org . phenotips . data . permissions . AccessLevel > getInstanceList ( org . phenotips . data . permissions . AccessLevel . class ) ) . thenReturn ( java . util . Collections . emptyList ( ) ) ; java . util . Collection < org . phenotips . data ....
org . junit . Assert . assertTrue ( returnedLevels . isEmpty ( ) )
test_Registration4 ( ) { java . lang . String pattern = "/blah" ; java . lang . String expected = "Pattern<sp>already<sp>in<sp>use:<sp>" + pattern ; try { org . eclipse . equinox . http . servlet . ExtendedHttpService extendedHttpService = ( ( org . eclipse . equinox . http . servlet . ExtendedHttpService ) ( getHttpSe...
org . junit . Assert . assertEquals ( expected , ne . getMessage ( ) )
testW1Y1900Previous ( ) { org . jfree . data . time . Week previous = ( ( org . jfree . data . time . Week ) ( this . w1Y1900 . previous ( ) ) ) ; "<AssertPlaceHolder>" ; } previous ( ) { org . jfree . data . time . Month result ; if ( ( this . month ) != ( org . jfree . date . MonthConstants . JANUARY ) ) { result = n...
org . junit . Assert . assertNull ( previous )
eagerLoadingCollection ( ) { javax . persistence . EntityManager em = factory . createEntityManager ( ) ; org . meri . jpa . relationships . entities . onetomany_manytoone . CollectionOwner owner = em . find ( org . meri . jpa . relationships . entities . onetomany_manytoone . CollectionOwner . class , 1 ) ; em . close...
org . junit . Assert . assertEquals ( 5 , inverse . getId ( ) )
testStop ( ) { ninja . jpa . JpaInitializer jpaInitializer = new ninja . jpa . JpaInitializer ( persistService ) ; jpaInitializer . stop ( ) ; verify ( persistService ) . stop ( ) ; java . lang . reflect . Method method = ninja . jpa . JpaInitializer . class . getMethod ( "stop" ) ; ninja . lifecycle . Dispose dispose ...
org . junit . Assert . assertEquals ( 10 , dispose . order ( ) )
testSending ( ) { org . springframework . messaging . Message < java . lang . String > smsMsg = org . springframework . integration . support . MessageBuilder . withPayload ( this . smsMessageToSend ) . setHeader ( SmppConstants . SRC_ADDR , "1616" ) . setHeader ( SmppConstants . DST_ADDR , "1616" ) . build ( ) ; outCh...
org . junit . Assert . assertNull ( exception )
test_copy_static ( ) { org . eclipse . gef . geometry . planar . Point [ ] points = new org . eclipse . gef . geometry . planar . Point [ 10 ] ; for ( int i = 0 ; i < 10 ; i ++ ) { points [ i ] = new org . eclipse . gef . geometry . planar . Point ( ( i * i ) , ( i + i ) ) ; } org . eclipse . gef . geometry . planar . ...
org . junit . Assert . assertTrue ( points [ i ] . equals ( copy [ i ] ) )
testCreateVariableStringObjectClassNextFactory ( ) { org . mvel2 . integration . VariableResolverFactory nextFactory = createMock ( org . mvel2 . integration . VariableResolverFactory . class ) ; org . mvel2 . integration . VariableResolver resolver = createMock ( org . mvel2 . integration . VariableResolver . class ) ...
org . junit . Assert . assertEquals ( resolver , factory . createVariable ( "myName" , "myValue" , java . lang . String . class ) )
testGetErrorFrameNull ( ) { if ( java . awt . GraphicsEnvironment . isHeadless ( ) ) { org . jdesktop . swingx . plaf . basic . BasicErrorPaneUITest . LOG . fine ( "cannot<sp>run<sp>-<sp>headless<sp>environment" ) ; return ; } "<AssertPlaceHolder>" ; } getErrorFrame ( java . awt . Component ) { javax . swing . JFrame f...
org . junit . Assert . assertNotNull ( ui . getErrorFrame ( null ) )
iteratorRemove ( ) { int count = ( set1 . size ( ) ) - 1 ; for ( java . util . Iterator < java . lang . String > i = set1 . iterator ( ) ; i . hasNext ( ) ; count -- ) { i . next ( ) ; i . remove ( ) ; "<AssertPlaceHolder>" ; } } size ( ) { return propertyEditorRegistrars . size ( ) ; }
org . junit . Assert . assertEquals ( count , set1 . size ( ) )
testCreateInvalidRepositoryDirectoryForRoot ( ) { org . pentaho . di . repository . RepositoryDirectoryInterface treeMocked = mock ( org . pentaho . di . repository . RepositoryDirectoryInterface . class ) ; org . pentaho . di . repository . pur . PurRepository repository = mock ( org . pentaho . di . repository . pur ...
org . junit . Assert . assertNull ( repository . createRepositoryDirectory ( treeMocked , newDirectory ) . getPath ( ) )
createdShouldAddConnectionToActiveConnections ( ) { java . lang . String id = java . util . UUID . randomUUID ( ) . toString ( ) ; org . neo4j . bolt . runtime . BoltConnection connection = newConnection ( id ) ; boltScheduler . start ( ) ; boltScheduler . created ( connection ) ; verify ( connection ) . id ( ) ; "<Ass...
org . junit . Assert . assertTrue ( boltScheduler . isRegistered ( connection ) )
asCollectionReturnsAllKnownDefaultProperties ( ) { final org . nem . core . model . mosaic . Properties properties = new org . nem . core . model . mosaic . Properties ( ) ; final org . nem . core . model . mosaic . MosaicProperties mosaicProperties = new org . nem . core . model . mosaic . DefaultMosaicProperties ( pr...
org . junit . Assert . assertThat ( nemProperties , org . nem . core . model . mosaic . IsEquivalent . equivalentTo ( expectedProperties ) )
testDeployJARToModules ( ) { com . liferay . portal . tools . deploy . BaseDeployer baseDeployer = getDeployer ( ) ; com . liferay . portal . kernel . deploy . auto . context . AutoDeploymentContext autoDeploymentContext = new com . liferay . portal . kernel . deploy . auto . context . AutoDeploymentContext ( ) ; java ...
org . junit . Assert . assertTrue ( deployedJarFile . exists ( ) )
notifyPrivateMessageArrivedWhenGuiInFocusAndPrivateChatHiddenShouldDoNothing ( ) { doNothing ( ) . when ( mediator ) . updateTitleAndTray ( ) ; when ( kouChatFrame . isVisible ( ) ) . thenReturn ( true ) ; when ( kouChatFrame . isFocused ( ) ) . thenReturn ( true ) ; when ( privchat . isVisible ( ) ) . thenReturn ( fal...
org . junit . Assert . assertFalse ( me . isNewMsg ( ) )
getSingleJobMasterRpcAddress ( ) { alluxio . conf . AlluxioConfiguration conf = createConf ( com . google . common . collect . ImmutableMap . of ( PropertyKey . JOB_MASTER_HOSTNAME , "testhost" , PropertyKey . JOB_MASTER_RPC_PORT , "1000" ) ) ; "<AssertPlaceHolder>" ; } getJobMasterRpcAddresses ( alluxio . conf . Allux...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( new java . net . InetSocketAddress ( "testhost" , 1000 ) ) , alluxio . util . ConfigurationUtils . getJobMasterRpcAddresses ( conf ) )
closeTest ( ) { final java . lang . String testException = "TestException" ; domBroker . setCloseable ( ( ) -> { throw new java . lang . Exception ( testException ) ; } ) ; try { domBroker . close ( ) ; } catch ( final java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } contains ( org . opendaylight . yangtools ....
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( testException ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . document . library . kernel . model . DLFileEntryMetadata . class , _dynamicQueryClassLoader ) ; dynamicQ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
newResponse ( ) { org . jboss . elasticsearch . river . jira . mgm . fullupdate . FullUpdateResponse rb = FullUpdateAction . INSTANCE . newResponse ( ) ; "<AssertPlaceHolder>" ; } newResponse ( ) { return new org . jboss . elasticsearch . river . jira . mgm . fullupdate . FullUpdateResponse ( ) ; }
org . junit . Assert . assertNotNull ( rb )
testTellMyFriends ( ) { final net . violet . platform . datamodel . Lang frLang = Factories . LANG . findByIsoCode ( "fr-FR" ) ; final net . violet . platform . datamodel . User theOwner = new net . violet . platform . datamodel . mock . UserMock ( 542 , net . violet . common . StringShop . EMPTY_STRING , net . violet ...
org . junit . Assert . assertNull ( theResult )
testDisassociateMacFromNetworkApi ( ) { resource . configure ( "BrocadeVcsResource" , parameters ) ; when ( api . disassociateMacFromNetwork ( com . cloud . network . resource . BrocadeVcsResourceTest . NETWORK_ID , com . cloud . network . resource . BrocadeVcsResourceTest . MAC_ADDRESS_32 ) ) . thenReturn ( true ) ; f...
org . junit . Assert . assertTrue ( answer . getResult ( ) )
testTransformationObjectInArray ( ) { com . google . gson . JsonArray jsonArray = org . jglue . fluentjson . JsonBuilderFactory . buildArray ( ) . add ( new org . jglue . fluentjson . AbstractMapper < org . jglue . fluentjson . TestBuilderFactory . A > ( ) { @ org . jglue . fluentjson . Override public org . jglue . fl...
org . junit . Assert . assertEquals ( test , jsonArray )
removeVariablesWithAuthenticatedTenant ( ) { identityService . setAuthentication ( "user" , null , java . util . Arrays . asList ( org . camunda . bpm . engine . test . api . multitenancy . tenantcheck . MultiTenancyCaseInstanceCmdsTenantCheckTest . TENANT_ONE ) ) ; caseService . removeVariable ( caseExecutionId , org ...
org . junit . Assert . assertThat ( variables . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testPersist_withPerson ( ) { de . akquinet . jbosscc . needle . example . Person person = new de . akquinet . jbosscc . example . PersonTestdataBuilder ( entityManager ) . buildAndSave ( ) ; new de . akquinet . jbosscc . example . AddressTestdataBuilder ( entityManager ) . withPerson ( person ) . buildAndSave ( ) ; new...
org . junit . Assert . assertEquals ( 3 , query . getResultList ( ) . size ( ) )
testGetCreation ( ) { final java . util . Date creation = new java . util . Date ( ) ; com . github . sardine . DavResource folder = new com . github . sardine . DavResourceTest . Builder ( "/test/path/" ) . createdOn ( creation ) . build ( ) ; "<AssertPlaceHolder>" ; } getCreation ( ) { return this . props . creation ...
org . junit . Assert . assertEquals ( creation , folder . getCreation ( ) )
testGetIntFromInt ( ) { int value = org . apache . activemq . artemis . utils . RandomUtil . randomInt ( ) ; org . apache . activemq . artemis . jms . client . ActiveMQMapMessage message = new org . apache . activemq . artemis . jms . client . ActiveMQMapMessage ( ) ; message . setInt ( itemName , value ) ; "<AssertPla...
org . junit . Assert . assertEquals ( value , message . getInt ( itemName ) )
testConvergenceCriterionWithParameterForIterateDelta ( ) { final org . apache . flink . api . java . ExecutionEnvironment env = org . apache . flink . api . java . ExecutionEnvironment . getExecutionEnvironment ( ) ; env . setParallelism ( org . apache . flink . test . iterative . aggregators . AggregatorsITCase . para...
org . junit . Assert . assertEquals ( expected , result )
testRequestGetHistoricalData_OverloadedMethod ( ) { java . util . List < com . sumzerotrading . data . BarData > barData = new java . util . ArrayList ( ) ; barData . add ( new com . sumzerotrading . data . BarData ( ) ) ; com . sumzerotrading . data . Ticker ticker = new com . sumzerotrading . data . StockTicker ( "AB...
org . junit . Assert . assertEquals ( barData , client . requestHistoricalData ( ticker , startDate , duration , unit , barSize , sizeUnit , showProperty , true ) )
testInjectsResponse ( ) { com . eclipsesource . restfuse . Response currentResponse = pollState . getResponse ( pollState . getTimes ( ) ) ; "<AssertPlaceHolder>" ; } getTimes ( ) { return responses . size ( ) ; }
org . junit . Assert . assertEquals ( currentResponse , response )