input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testError ( ) { org . apache . olingo . commons . api . edmx . EdmxReference reference = new org . apache . olingo . commons . api . edmx . EdmxReference ( java . net . URI . create ( "../v4.0/cs02/vocabularies/Org.OData.Core.V1.xml" ) ) ; reference . addInclude ( new org . apache . olingo . commons . api . edmx . Edmx...
org . junit . Assert . assertNotNull ( error )
RatioCullingOperation_ctorWithCullRatio_ShouldHaveParamRatio ( ) { org . deeplearning4j . arbiter . optimize . genetic . culling . RatioCullOperatorTests . TestRatioCullOperator sut = new org . deeplearning4j . arbiter . optimize . genetic . culling . RatioCullOperatorTests . TestRatioCullOperator ( 0.123 ) ; "<AssertP...
org . junit . Assert . assertEquals ( 0.123 , sut . getCullRatio ( ) , 0.0 )
testAddRemoveAndAddAgainColumn ( ) { grid . addColumn ( "foo" ) ; grid . removeColumn ( "foo" ) ; com . vaadin . v7 . data . Property < ? > property = container . getContainerProperty ( container . firstItemId ( ) , "foo" ) ; "<AssertPlaceHolder>" ; grid . addColumn ( "foo" ) ; } getType ( ) { java . util . Map < java ...
org . junit . Assert . assertEquals ( property . getType ( ) , java . lang . String . class )
bijhoudingsPartijGeboorteGemeenteDientIn ( ) { when ( getBericht ( ) . getZendendePartij ( ) ) . thenReturn ( nl . bzk . brp . bijhouding . bericht . model . PARTIJ_1 ) ; when ( getDynamischeStamtabelRepository ( ) . getGemeenteByPartijcode ( anyString ( ) ) ) . thenReturn ( new nl . bzk . algemeenbrp . dal . domein . ...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testSortAtomContainers_Comparator ( ) { org . openscience . cdk . interfaces . IAtomContainerSet som = ( ( org . openscience . cdk . interfaces . IAtomContainerSet ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IAtomContainer ac1 = som . getBuilder ( ) . newInstance ( org . openscience . cdk . inter...
org . junit . Assert . assertEquals ( 2 , som . getAtomContainerCount ( ) )
testAccount ( ) { ch . elexis . core . mail . MailAccount account = new ch . elexis . core . mail . MailAccount ( ) ; account . setId ( "testSmtpAccount" ) ; account . setType ( TYPE . SMTP ) ; account . setUsername ( "testUser" ) ; account . setPassword ( "testPassword" ) ; account . setHost ( "localhost" ) ; account ...
org . junit . Assert . assertTrue ( client . testAccount ( account ) )
testLazyFlatMapDoubling ( ) { java . util . List < java . lang . Integer > eval = org . opencastproject . util . data . Monadics . mlazy ( java . util . Arrays . asList ( 1 , 2 , 3 , 4 , 5 ) ) . flatMap ( org . opencastproject . util . data . MonadicsTest . < java . lang . Integer > twice ( ) ) . eval ( ) ; "<AssertPla...
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 1 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 5 } , eval . toArray ( new java . lang . Integer [ ] { } ) )
testNextBoundNameWrite ( ) { com . sun . sgs . test . impl . service . data . store . BasicTxnIsolationTest . store . setBinding ( txn , "a" , 100 ) ; newTransaction ( ) ; com . sun . sgs . test . impl . service . data . store . BasicTxnIsolationTest . store . setBinding ( txn , "a" , 200 ) ; com . sun . sgs . test . i...
org . junit . Assert . assertSame ( null , runner . getResult ( ) )
testGetValue ( ) { System . out . println ( "getValue" ) ; kg . apc . charting . elements . GraphPanelChartAverageElement instance = new kg . apc . charting . elements . GraphPanelChartAverageElement ( ) ; double expResult = 0.0 ; double result = instance . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return...
org . junit . Assert . assertEquals ( expResult , result , 0.0 )
test ( ) { java . lang . Integer [ ] ia = new misc . Integer [ ] { 1 , 2 , 3 } ; java . lang . Object [ ] oa = ia ; java . lang . Integer [ ] ia2 = ( ( java . lang . Integer [ ] ) ( oa ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 1 ) ) , ia2 [ 0 ] )
testMatchesFuzzyNumericLongNoMatch ( ) { final com . allanbank . mongodb . bson . Document t = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . addLong ( "c" , 2 ) . build ( ) ; final com . allanbank . mongodb . bson . Document [ ] tags = new com . allanbank . mongodb . bson . Document [ ] { co...
org . junit . Assert . assertFalse ( prefs . matches ( t ) )
testPerformanceAndEntriesCount ( ) { long repeats = java . lang . Long . parseLong ( java . lang . System . getProperty ( "r" , "1" ) ) ; long n = java . lang . Long . parseLong ( java . lang . System . getProperty ( "n" , "10000" ) ) ; com . github . davidmoten . rtree . RTree < java . lang . Object , com . github . d...
org . junit . Assert . assertEquals ( n , ( ( int ) ( tree . entries ( ) . count ( ) . toBlocking ( ) . single ( ) ) ) )
testSetSelfIsNoOp ( ) { io . netty . handler . codec . DefaultHeadersTest . TestDefaultHeaders headers = io . netty . handler . codec . DefaultHeadersTest . newInstance ( ) ; headers . add ( "name" , "value" ) ; headers . set ( headers ) ; "<AssertPlaceHolder>" ; } size ( ) { return delegate . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , headers . size ( ) )
test13 ( ) { long modulus = 7 ; cc . redberry . rings . poly . univar . UnivariatePolynomialZp64 a = cc . redberry . rings . poly . univar . UnivariatePolynomialZ64 . create ( 5 , 1 , 4 , 6 , 4 , 3 , 5 , 5 , 3 , 4 , 2 , 2 , 5 , 2 , 5 , 6 , 1 , 1 , 2 , 5 , 1 , 0 , 0 , 6 , 6 , 5 , 5 , 1 , 0 , 1 , 4 , 1 , 1 ) . modulus ( ...
org . junit . Assert . assertArrayEquals ( fast , plain )
setPageSizeSuccess ( ) { java . lang . Integer expectedPageSize = new java . lang . Integer ( 758 ) ; com . microsoft . azure . sdk . iot . service . devicetwin . QueryOptions options = new com . microsoft . azure . sdk . iot . service . devicetwin . QueryOptions ( ) ; options . setPageSize ( expectedPageSize ) ; java ...
org . junit . Assert . assertEquals ( expectedPageSize , actualPageSize )
testGetXPosition ( ) { final com . valkryst . VTerminal . TileGrid grid = StaticGrid . TILE_GRID ; "<AssertPlaceHolder>" ; } getXPosition ( ) { return position . x ; }
org . junit . Assert . assertEquals ( 0 , grid . getXPosition ( ) )
testManageWebAppCosmosDbThroughKeyVault ( ) { "<AssertPlaceHolder>" ; } runSample ( com . microsoft . azure . management . Azure ) { final com . microsoft . azure . management . resources . fluentcore . arm . Region region = com . microsoft . azure . management . resources . fluentcore . arm . Region . US_WEST ; final ...
org . junit . Assert . assertTrue ( com . microsoft . azure . management . appservice . samples . ManageWebAppCosmosDbThroughKeyVault . runSample ( azure ) )
shouldSupportTopLevelObjectWithArgumentsWhenBackedWithObjectMessageSource ( ) { org . springframework . springfaces . message . ObjectMessageSource objectMessageSource = mock ( org . springframework . springfaces . message . ObjectMessageSource . class ) ; org . springframework . springfaces . message . ui . MessageSou...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expected ) ) )
testGetValueNotFound ( ) { org . bson . BSONObject field = new org . bson . BasicBSONObject ( "field" , "Unknown" ) ; org . bson . BSONObject entry = new org . bson . BasicBSONObject ( "enum" , field ) ; com . mongodb . hadoop . io . BSONWritable entity = new com . mongodb . hadoop . io . BSONWritable ( entry ) ; org ....
org . junit . Assert . assertTrue ( ( value instanceof org . apache . hadoop . io . NullWritable ) )
testArithmeticWithNull ( ) { com . hortonworks . streamline . streams . sql . Values v = testExpr ( com . google . common . collect . Lists . newArrayList ( "1<sp>+<sp>CAST(NULL<sp>AS<sp>INT)" , "CAST(NULL<sp>AS<sp>INT)<sp>+<sp>1" , "CAST(NULL<sp>AS<sp>INT)<sp>+<sp>CAST(NULL<sp>AS<sp>INT)" , "1<sp>+<sp>2" ) ) ; "<Asser...
org . junit . Assert . assertEquals ( new com . hortonworks . streamline . streams . sql . Values ( null , null , null , 3 ) , v )
collectionOfEmptyStreamShouldBeEmpty ( ) { final org . apache . jena . query . Dataset collected = java . util . stream . Stream . < org . apache . jena . query . Dataset > empty ( ) . collect ( testInstance ( ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { checkRead ( ) ; return holder . getBaseItem ( ) . isEmpty ( ) ; ...
org . junit . Assert . assertTrue ( collected . isEmpty ( ) )
testGenerateSecretKeyEncryptionException ( ) { javax . crypto . SecretKey key = org . owasp . esapi . crypto . CryptoHelper . generateSecretKey ( "NoSuchAlg" , 128 ) ; "<AssertPlaceHolder>" ; } generateSecretKey ( java . lang . String , int ) { if ( ( alg == null ) || ( alg . equals ( "" ) ) ) { throw new java . lang ....
org . junit . Assert . assertTrue ( ( key == null ) )
testStoreConnectionTxn2 ( ) { org . apache . jena . tdb2 . sys . TDBInternal . reset ( ) ; org . apache . jena . sparql . core . DatasetGraph dg1 = org . apache . jena . tdb2 . sys . DatabaseConnection . connectCreate ( org . apache . jena . dboe . base . file . Location . mem ( "FOO" ) ) . getDatasetGraph ( ) ; org . ...
org . junit . Assert . assertSame ( dg1 , dg2 )
shouldAddNewAccessListLoadBalancerWhenOperationSucceeds ( ) { java . util . List < org . openstack . atlas . service . domain . services . AccessList > accessListsBefore = accessListService . getAccessListByAccountIdLoadBalancerId ( loadBalancer . getAccountId ( ) , loadBalancer . getId ( ) ) ; org . openstack . atlas ...
org . junit . Assert . assertEquals ( ( ( accessListsBefore . size ( ) ) + 1 ) , accessListsAfter . size ( ) )
testToGetPrivateFieldDirectly ( ) { int value = mockit . Deencapsulation . getField ( mock , "privateField" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 5 , value )
testSAML2BearerAuthenticationInterceptor ( ) { java . lang . String address = ( "https://localhost:" + ( port ) ) + "/oauth2-auth/token" ; org . apache . cxf . jaxrs . client . WebClient wc = createWebClientWithProps ( address ) ; org . apache . cxf . rs . security . oauth2 . common . ClientAccessToken at = org . apach...
org . junit . Assert . assertNotNull ( at . getTokenKey ( ) )
shouldClearInitialStateOnAdd ( ) { this . stateHolders . markInitialState ( ) ; this . stateHolders . add ( this . stateHolder ) ; "<AssertPlaceHolder>" ; } initialStateMarked ( ) { if ( ( this . bean ) instanceof javax . faces . component . PartialStateHolder ) { return ( ( javax . faces . component . PartialStateHold...
org . junit . Assert . assertThat ( this . stateHolders . initialStateMarked ( ) , org . hamcrest . Matchers . is ( false ) )
testDefineRegionInSubgroupBothInSubdir ( ) { java . lang . String dir = getRandomDir ( ) ; writeFile ( ( dir + "/subdir" ) , "g1.stg" , "a()<sp>::=<sp><<[<@r()>]>>\n" ) ; writeFile ( ( dir + "/subdir" ) , "g2.stg" , "@a.r()<sp>::=<sp><<foo>>\n" ) ; org . stringtemplate . v4 . test . STGroup group1 = new org . stringtem...
org . junit . Assert . assertEquals ( expected , result )
one_$parent_regex_on_field_partial_string_match_works ( ) { com . redhat . lightblue . query . QueryExpression q = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'field':'field2.$parent.field1','regex':'val.*'}" ) ; com . redhat . lightblue . eval . QueryEvaluator qe = com . redhat . li...
org . junit . Assert . assertTrue ( ctx . getResult ( ) )
capacity ( ) { int size = fFull . size ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { fFull . add ( i ) ; } "<AssertPlaceHolder>" ; } add ( org . hamcrest . Matcher ) { matchers . add ( matcher ) ; }
org . junit . Assert . assertTrue ( ( ( fFull . size ( ) ) == ( 100 + size ) ) )
testReachableViaField ( ) { com . spotify . missinglink . datamodel . DeclaredClass remote = com . spotify . missinglink . Simple . newClass ( "other/Unknown" ) . fields ( com . google . common . collect . ImmutableSet . of ( com . spotify . missinglink . Simple . newField ( com . spotify . missinglink . Simple . INT ,...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableSet . of ( root . className ( ) , remote . className ( ) ) , reachable )
sumOfLong ( ) { com . gs . collections . api . map . MapIterable < java . lang . String , java . lang . Integer > map = this . newMapWithKeysValues ( "1" , 1 , "2" , 2 , "3" , 3 , "4" , 4 ) ; long actual = map . sumOfLong ( Integer :: longValue ) ; "<AssertPlaceHolder>" ; } sumOfLong ( com . gs . collections . api . bl...
org . junit . Assert . assertEquals ( 10 , actual )
getDiscussionByIdForUpdateReturnNull ( ) { when ( mockDiscussionMapper . selectByPrimaryKey ( anyInt ( ) ) ) . thenReturn ( null ) ; com . onboard . domain . model . Discussion result = discussionServiceImpl . getDiscussionByIdForUpdate ( com . onboard . service . collaboration . impl . test . DiscussionServiceImplTest...
org . junit . Assert . assertEquals ( null , result )
testCompareSameEmpty ( ) { "<AssertPlaceHolder>" ; } compare ( com . splicemachine . dbTesting . functionTests . tests . jdbcapi . ProcedureTest$AllTypesTuple ) { java . lang . String message = "_booleanArg" 0 ; message = message + ( compare ( "_booleanArg" 4 , this . _bigintArg , that . _bigintArg ) ) ; message = mess...
org . junit . Assert . assertEquals ( 0 , empty . compare ( empty ) )
testRemoveSubplot ( ) { org . jfree . chart . plot . CombinedRangeXYPlot plot = new org . jfree . chart . plot . CombinedRangeXYPlot ( ) ; org . jfree . chart . plot . XYPlot plot1 = new org . jfree . chart . plot . XYPlot ( ) ; org . jfree . chart . plot . XYPlot plot2 = new org . jfree . chart . plot . XYPlot ( ) ; p...
org . junit . Assert . assertTrue ( ( ( plots . get ( 0 ) ) == plot1 ) )
testBounds ( ) { doCallRealMethod ( ) . when ( gridLienzoScrollPosition ) . bounds ( ) ; "<AssertPlaceHolder>" ; } bounds ( ) { return gridLienzoScrollHandler . scrollBounds ( ) ; }
org . junit . Assert . assertTrue ( ( ( gridLienzoScrollPosition . bounds ( ) ) != null ) )
shouldAcceptValidLbLimitObject ( ) { org . openstack . atlas . api . validation . results . ValidatorResult result = lbLimitGroupsValidator . validate ( lbLimitGroups , HttpRequestType . POST ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . openstack . atlas . api . validation . results . ValidatorResult , java . la...
org . junit . Assert . assertTrue ( resultMessage ( result , HttpRequestType . POST ) , result . passedValidation ( ) )
testNotAddLayer ( ) { org . geowebcache . layer . TileLayer tl = mock ( org . geowebcache . layer . wms . WMSLayer . class ) ; when ( tl . getName ( ) ) . thenReturn ( "testLayer" ) ; when ( tl . isTransientLayer ( ) ) . thenReturn ( true ) ; "<AssertPlaceHolder>" ; } canSave ( org . geowebcache . layer . TileLayer ) {...
org . junit . Assert . assertFalse ( config . canSave ( tl ) )
testPersoon2NietIngeschrevene ( ) { final nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht relatieBericht = maakRelatie ( nl . bzk . brp . bijhouding . business . regels . impl . bijhouding . huwelijkgeregistreerdpartnerschap . acties . registratieaanvanghuwelijkpartnerschap . BRBY0409...
org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) )
parentOf ( ) { indexRevision ( com . b2international . snowowl . snomed . core . ecl . MAIN , concept ( Concepts . MODULE_SCT_CORE ) . parents ( java . lang . Long . parseLong ( Concepts . MODULE_ROOT ) ) . statedParents ( java . lang . Long . parseLong ( Concepts . MODULE_ROOT ) ) . build ( ) ) ; final com . b2interna...
org . junit . Assert . assertEquals ( expected , actual )
testIsStartup_whenDisplayWasCreated ( ) { new org . eclipse . swt . widgets . Display ( ) ; "<AssertPlaceHolder>" ; } isStartup ( ) { return ( org . eclipse . rap . rwt . internal . lifecycle . LifeCycleUtil . getSessionDisplay ( ) ) == null ; }
org . junit . Assert . assertFalse ( org . eclipse . rap . rwt . internal . lifecycle . LifeCycleUtil . isStartup ( ) )
canConvertLikeAction ( ) { converter = new edu . zipcloud . cloudstreetmarket . core . converters . IdentifiableToIdConverter ( edu . zipcloud . cloudstreetmarket . core . converters . LikeAction . class ) ; "<AssertPlaceHolder>" ; } canConvert ( java . lang . Class ) { return type . isAssignableFrom ( this . type ) ; ...
org . junit . Assert . assertTrue ( converter . canConvert ( edu . zipcloud . cloudstreetmarket . core . converters . LikeAction . class ) )
testMatchByRelatedObjectId ( ) { org . apache . cayenne . testdo . testmap . Artist a1 = context . newObject ( org . apache . cayenne . testdo . testmap . Artist . class ) ; a1 . setArtistName ( "a1" ) ; org . apache . cayenne . testdo . testmap . Artist a2 = context . newObject ( org . apache . cayenne . testdo . test...
org . junit . Assert . assertSame ( p1 , query . selectOne ( context ) )
testGetUniqueInstance_uiSession_returnsSameInstanceInSameScope ( ) { org . eclipse . rap . rwt . service . UISession uiSession = mockUISessionWithAttributeStore ( ) ; org . eclipse . rap . rwt . internal . SingletonManager . install ( uiSession ) ; java . lang . Object instance1 = org . eclipse . rap . rwt . SingletonU...
org . junit . Assert . assertSame ( instance1 , instance2 )
testWithShardIterator ( ) { java . lang . Object actual = adapter . withShardIterator ( TEST_STRING ) ; "<AssertPlaceHolder>" ; } withShardIterator ( java . lang . String ) { internalRequest . setShardIterator ( shardIterator ) ; return this ; }
org . junit . Assert . assertEquals ( adapter , actual )
indicatesFailure ( ) { net . sf . hajdbc . dialect . Dialect dialect = mock ( net . sf . hajdbc . dialect . Dialect . class ) ; javax . transaction . xa . XAException exception = new javax . transaction . xa . XAException ( ) ; when ( dialect . indicatesFailure ( exception ) ) . thenReturn ( true ) ; boolean result = t...
org . junit . Assert . assertTrue ( result )
testMessageException ( ) { try { throw new com . intuit . wasabi . authentication . util . RetriableException ( "Some<sp>test<sp>exception" ) ; } catch ( com . intuit . wasabi . authentication . util . RetriableException e ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return getDetailMessage ( ) ; }
org . junit . Assert . assertEquals ( e . getMessage ( ) , "Some<sp>test<sp>exception" )
testGetArgumentNames ( ) { java . util . List < java . lang . String > expected = java . util . Arrays . asList ( "user.email" 7 , "organization.email" , "user.email" 5 , "organization.name" , "organization.phone" , "organization.url" , "organization.roles" , "user.email" 2 , "user.email" 9 , "organization.operatorrevs...
org . junit . Assert . assertEquals ( expected , command . getArgumentNames ( ) )
closeClientCacheWithKeepAlive ( ) { org . apache . geode . cache . client . ClientCache mockClientCache = org . mockito . Mockito . mock ( org . apache . geode . cache . client . ClientCache . class ) ; org . springframework . data . gemfire . client . ClientCacheFactoryBean clientCacheFactoryBean = new org . springfra...
org . junit . Assert . assertThat ( clientCacheFactoryBean . isKeepAlive ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testDoImport2 ( ) { com . graphhopper . matching . gpx . Gpx gpx = xmlMapper . readValue ( getClass ( ) . getResourceAsStream ( "/test2.gpx" ) , com . graphhopper . matching . gpx . Gpx . class ) ; java . util . List < com . graphhopper . util . GPXEntry > gpxEntries = gpx . trk . get ( 0 ) . getEntries ( ) ; "<AssertP...
org . junit . Assert . assertEquals ( 2 , gpxEntries . size ( ) )
testClientArea_withImageInItem_top ( ) { folder = new org . eclipse . swt . widgets . TabFolder ( shell , org . eclipse . swt . SWT . TOP ) ; folder . setSize ( 100 , 200 ) ; org . eclipse . swt . widgets . TabItem item = new org . eclipse . swt . widgets . TabItem ( folder , org . eclipse . swt . SWT . NONE ) ; item ....
org . junit . Assert . assertEquals ( expected , folder . getClientArea ( ) )
testShouldRetrieveNegativeIntValue ( ) { org . apache . hadoop . hbase . client . HBaseAdmin admin = org . apache . hadoop . hbase . index . coprocessor . regionserver . TestMultipleIndicesInScan . UTIL . getHBaseAdmin ( ) ; org . apache . hadoop . hbase . HBaseTestingUtility . getZooKeeperWatcher ( org . apache . hado...
org . junit . Assert . assertTrue ( ( ( testRes . size ( ) ) == 5 ) )
testSetAllPricesInitialized_AlreadyInitialized ( ) { strategy . allPricesInitialized = true ; java . util . Map mockLastPriceMap = mock ( java . util . Map . class ) ; strategy . lastPriceMap = mockLastPriceMap ; "<AssertPlaceHolder>" ; verify ( mockLastPriceMap , never ( ) ) . get ( longTicker ) ; verify ( mockLastPri...
org . junit . Assert . assertTrue ( strategy . setAllPricesInitialized ( ) )
testReportingWithOpLevelNoneBySetter ( ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollectorTest . TestTraceService traceService = new org . hawkular . apm . client . collector . internal . DefaultTraceCollectorTest . TestTraceService ( ) ; org . hawkular . apm . client . collector . internal...
org . junit . Assert . assertEquals ( 0 , traces . size ( ) )
testAdminGroup ( ) { org . junit . Assume . assumeTrue ( org . geoserver . security . ldap . LDAPTestUtils . initLdapServer ( true , ldapServerUrl , basePath ) ) ; ( ( org . geoserver . security . ldap . LDAPSecurityServiceConfig ) ( config ) ) . setUserDnPattern ( "uid={0},ou=People" ) ; config . setAdminGroup ( "othe...
org . junit . Assert . assertTrue ( foundAdmin )
testSupportsErrorHandling ( ) { org . pentaho . di . trans . steps . elasticsearchbulk . ElasticSearchBulkMeta esbm = new org . pentaho . di . trans . steps . elasticsearchbulk . ElasticSearchBulkMeta ( ) ; boolean supportsError = esbm . supportsErrorHandling ( ) ; "<AssertPlaceHolder>" ; } supportsErrorHandling ( ) { ...
org . junit . Assert . assertTrue ( supportsError )
testIndexPutWithNegativeIntDataTypes ( ) { org . apache . hadoop . fs . Path basedir = new org . apache . hadoop . fs . Path ( ( ( DIR ) + "TestIndexPut" ) ) ; org . apache . hadoop . conf . Configuration conf = TEST_UTIL . getConfiguration ( ) ; org . apache . hadoop . hbase . HTableDescriptor htd = new org . apache ....
org . junit . Assert . assertTrue ( org . apache . hadoop . hbase . util . Bytes . equals ( expectedResult , actualResult ) )
testBackgroundPosition_Valid ( ) { org . w3c . css . sac . LexicalUnit input = org . eclipse . rap . rwt . internal . theme . css . PropertyResolver_Test . parseProperty ( "left<sp>top" ) ; org . eclipse . rap . rwt . internal . theme . CssIdentifier identifier = org . eclipse . rap . rwt . internal . theme . css . Pro...
org . junit . Assert . assertEquals ( "left<sp>top" , identifier . value )
run ( ) { sqlite . feature . globaltypeadapters . bitmap . BindAppDataSource ds = sqlite . feature . globaltypeadapters . bitmap . BindAppDataSource . getInstance ( ) ; ds . execute ( new sqlite . feature . globaltypeadapters . bitmap . BindAppDataSource . Transaction ( ) { @ sqlite . feature . globaltypeadapters . Ove...
org . junit . Assert . assertTrue ( ( ( list . get ( 0 ) . image ) != null ) )
testData ( ) { getTable ( ) ; org . eclipse . tracecompass . tmf . ui . tests . shared . WaitUtils . waitForJobs ( ) ; "<AssertPlaceHolder>" ; org . eclipse . swtbot . swt . finder . widgets . SWTBotTable tableBot = new org . eclipse . swtbot . swt . finder . widgets . SWTBotTable ( fTable . getTableViewer ( ) . getTab...
org . junit . Assert . assertNotNull ( fTable )
httpUrlToFile ( ) { java . net . URL url = new java . net . URL ( "http://www.xyz.com" ) ; java . io . File file = ch . qos . cal10n . util . MiscUtil . urlToFile ( url ) ; "<AssertPlaceHolder>" ; } urlToFile ( java . net . URL ) { if ( ( url . getProtocol ( ) ) != "file" ) { return null ; } java . lang . String path =...
org . junit . Assert . assertNull ( file )
testIsConnectedSuccessConnected ( ) { org . mockito . Mockito . doReturn ( WiFiAssociationIndicationStatus . SUCCESSFULLY_JOINED ) . when ( wifiDevice ) . getWiFiAssociationIndicationStatus ( ) ; "<AssertPlaceHolder>" ; } isConnected ( ) { com . digi . xbee . api . models . WiFiAssociationIndicationStatus status = getW...
org . junit . Assert . assertTrue ( wifiDevice . isConnected ( ) )
simpleParse ( ) { liquibase . ext . percona . PerconaToolkitVersion version = new liquibase . ext . percona . PerconaToolkitVersion ( "2.2.17" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( major ) + "." ) + ( minor ) ) + "." ) + ( patch ) ; }
org . junit . Assert . assertEquals ( "2.2.17" , version . toString ( ) )
testCustomExceptionStrategy ( ) { @ org . async . utils . cache . SuppressWarnings ( { "ThrowableInstanceNeverThrown" } ) final java . util . concurrent . atomic . AtomicReference < java . lang . Object > result = new java . util . concurrent . atomic . AtomicReference ( new java . net . UnknownHostException ( "foo" ) ...
org . junit . Assert . assertThat ( "foo" , org . hamcrest . CoreMatchers . equalTo ( cache . get ( "foo" ) ) )
shouldHandleMapWithTypesUsingEmbedTypeSettingV2d0 ( ) { final org . apache . tinkerpop . shaded . jackson . databind . ObjectMapper mapper = org . apache . tinkerpop . gremlin . structure . io . graphson . GraphSONMapper . build ( ) . version ( GraphSONVersion . V2_0 ) . typeInfo ( TypeInfo . PARTIAL_TYPES ) . create (...
org . junit . Assert . assertEquals ( 100L , read . get ( "test" ) )
testAllFiles ( ) { java . io . File dir = new java . io . File ( "./src/test/testdata/gs-glui" ) ; java . io . File [ ] files = dir . listFiles ( ) ; "<AssertPlaceHolder>" ; long start = java . lang . System . currentTimeMillis ( ) ; for ( java . io . File f : files ) { if ( f . getName ( ) . endsWith ( ".gml2" ) ) { n...
org . junit . Assert . assertTrue ( ( ( files . length ) > 0 ) )
testRemoveSingleElement ( ) { java . util . List < java . lang . String > list = new java . util . ArrayList ( ) ; list . add ( "aaa" ) ; list . add ( "bbb" ) ; list . add ( "ccc" ) ; java . util . List < java . lang . String > removeList = new java . util . ArrayList ( ) ; removeList . add ( "aaa" ) ; java . util . Li...
org . junit . Assert . assertEquals ( expectedList , com . liferay . portal . kernel . util . ListUtil . remove ( list , removeList ) )
testUpdateStatsUserWhenSavingDraftMessageAsDraft ( ) { int initialStatsUserMessageCount = getStatsUserMessageCount ( ) ; addMessage ( false ) ; updateMessage ( WorkflowConstants . ACTION_SAVE_DRAFT ) ; "<AssertPlaceHolder>" ; } getStatsUserMessageCount ( ) { com . liferay . message . boards . model . MBStatsUser statsU...
org . junit . Assert . assertEquals ( initialStatsUserMessageCount , getStatsUserMessageCount ( ) )
testAddForwardingRulesToLoadBalancer ( ) { com . myjeeva . digitalocean . pojo . ForwardingRules rule = new com . myjeeva . digitalocean . pojo . ForwardingRules ( ) ; rule . setEntryProtocol ( Protocol . HTTP ) ; rule . setTargetProtocol ( Protocol . HTTP ) ; rule . setEntryPort ( 8080 ) ; rule . setTargetPort ( 8080 ...
org . junit . Assert . assertNotNull ( result )
testJsonInOnlyRPCMessageReceiver ( ) { java . lang . String jsonRequest = "{\"ping\":[{\"arg0\":{\"name\":\"Simon\",\"age\":\"35\",\"gender\":\"male\"}}]}" ; java . lang . String echoPersonUrl = ( org . apache . axis2 . json . gson . rpc . JSONRPCIntegrationTest . server . getEndpoint ( "JSONPOJOService" ) ) + "ping" ;...
org . junit . Assert . assertEquals ( "" , response )
example ( ) { org . psjava . ds . graph . MutableDirectedUnweightedGraph < java . lang . String > graph = org . psjava . ds . graph . MutableDirectedUnweightedGraph . create ( ) ; graph . insertVertex ( "A" ) ; graph . insertVertex ( "B" ) ; graph . insertVertex ( "C" ) ; graph . addEdge ( "A" , "B" ) ; graph . addEdge...
org . junit . Assert . assertTrue ( hasCycle )
testGetAllUrlsDirect ( ) { java . util . Map < java . lang . String , java . lang . String > confOverlay = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; confOverlay . put ( "hive.server2.zookeeper.publish.configs" , "false" ) ; miniHS2 . start ( confOverlay ) ; java . lang . String dir...
org . junit . Assert . assertEquals ( jdbcUrl , directUrl )
testExecute ( ) { javax . persistence . Query query = getEntityManager ( ) . createQuery ( "SELECT<sp>COUNT(*)<sp>FROM<sp>InAppNotification" ) ; long oldCount = ( ( java . lang . Long ) ( query . getSingleResult ( ) ) ) ; final long id42 = 42L ; org . eurekastreams . server . persistence . mappers . db . notification ....
org . junit . Assert . assertEquals ( ( oldCount - 2 ) , newCount )
testDoublePrecisionOverTextWire ( ) { final net . openhft . chronicle . wire . Bytes < ? > bytes = net . openhft . chronicle . wire . Wires . acquireBytes ( ) ; final net . openhft . chronicle . wire . Wire wire = WireType . TEXT . apply ( bytes ) ; final double d = 2.12345678901E-4 ; wire . getValueOut ( ) . float64 (...
org . junit . Assert . assertEquals ( d2 , d , 0 )
testBoroughSearch ( ) { org . onebusaway . geocoder . impl . GoogleGeocoderImpl geocoder = new org . onebusaway . geocoder . impl . GoogleGeocoderImpl ( ) ; org . onebusaway . geocoder . model . GeocoderResults results = geocoder . geocode ( "Staten<sp>Island" ) ; java . util . List < org . onebusaway . geocoder . mode...
org . junit . Assert . assertTrue ( ( ( records . size ( ) ) > 0 ) )
testGetExistingValue ( ) { longCounter . set ( 5 ) ; org . springframework . data . redis . support . atomic . RedisAtomicLong keyCopy = new org . springframework . data . redis . support . atomic . RedisAtomicLong ( longCounter . getKey ( ) , factory ) ; "<AssertPlaceHolder>" ; } get ( ) { return this . buf . get ( ) ...
org . junit . Assert . assertEquals ( longCounter . get ( ) , keyCopy . get ( ) )
testCompareTo2 ( ) { final int num = 1860 ; org . apache . tajo . storage . fragment . FileFragment [ ] tablets = new org . apache . tajo . storage . fragment . FileFragment [ num ] ; for ( int i = num - 1 ; i >= 0 ; i -- ) { tablets [ i ] = new org . apache . tajo . storage . fragment . FileFragment ( ( "tablet1_" + i...
org . junit . Assert . assertEquals ( num , sortedSet . size ( ) )
testOrElseThrowWithPresentValue ( ) { boolean value = com . annimon . stream . OptionalBoolean . of ( true ) . orElseThrow ( ) ; "<AssertPlaceHolder>" ; } orElseThrow ( ) { if ( ( value ) == null ) { throw new java . util . NoSuchElementException ( "No<sp>value<sp>present" ) ; } return value ; }
org . junit . Assert . assertTrue ( value )
testWadl ( ) { net . java . dev . wadl . x2009 . x02 . ApplicationDocument applicationDocument = ApplicationDocument . Factory . newInstance ( ) ; net . java . dev . wadl . x2009 . x02 . ApplicationDocument . Application application = applicationDocument . addNewApplication ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( application )
should_demonstrate_sorting_with_swedish_collation ( ) { final java . util . List < java . lang . String > stringsToSort = asList ( "" , "" , "O" ) ; stringsToSort . sort ( new se . sawano . java . text . AlphanumericComparator ( new java . util . Locale ( "sv" , "SE" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( asList ( "O" , "" , "" ) , stringsToSort )
testNormalExecution ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "//some/target" , "arg1" , "arg2" , "arg3" } ; java . lang . String [ ] expectedArgs = new java . lang . String [ ] { "//some/target" , "arg1" , "arg2" , "arg3" } ; "<AssertPlaceHolder>" ; } testWithArgs ( java . lang . String [ ] ...
org . junit . Assert . assertArrayEquals ( expectedArgs , testWithArgs ( args ) )
deveObterNumeroProtocoloComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno eventoRetorno = new com . fincatto . documentofiscal . nfe310 . classes . evento . NFInfoEventoRetorno ( ) ; final java . lang . String numeroProtocolo = "132456789" ; eventoRetorno . set...
org . junit . Assert . assertEquals ( numeroProtocolo , eventoRetorno . getNumeroProtocolo ( ) )
hasArgument ( ) { "<AssertPlaceHolder>" ; } hasArgument ( joptsimple . OptionSpec ) { requireNonNull ( option ) ; java . util . List < java . lang . String > values = optionsToArguments . get ( option ) ; return ( values != null ) && ( ! ( values . isEmpty ( ) ) ) ; }
org . junit . Assert . assertFalse ( empty . hasArgument ( "a" ) )
testTimeInterval ( ) { com . bc . calvalus . reporting . restservice . io . JSONExtractor . FilterUserTimeInterval timeInterval = new com . bc . calvalus . reporting . restservice . io . JSONExtractor . FilterUserTimeInterval ( 1483933291070L , "2017" , "01" , "01" ) ; boolean isWithIn = timeInterval . filterYear ( ) ;...
org . junit . Assert . assertTrue ( isWithIn )
No_specimen_result_from_context_returns_new_no_specimen ( ) { java . lang . Object innerRequest = new java . lang . Object ( ) ; when ( this . mockSpecimenContext . resolve ( innerRequest ) ) . thenReturn ( new com . flextrade . jfixture . NoSpecimen ( ) ) ; java . lang . Object result = this . builder . create ( new c...
org . junit . Assert . assertEquals ( new com . flextrade . jfixture . NoSpecimen ( ) , result )
testGetLoggedInUser ( ) { java . util . concurrent . Future < de . micromata . jira . rest . core . domain . UserBean > future = jiraRestClient . getUserClient ( ) . getLoggedInRemoteUser ( ) ; final de . micromata . jira . rest . core . domain . UserBean userBean = future . get ( ) ; "<AssertPlaceHolder>" ; } getLogge...
org . junit . Assert . assertNotNull ( userBean )
isExportEnabled_ServiceSelected ( ) { java . util . List < org . oscm . ui . model . TechnicalService > services = givenServicesSelected ( 1 ) ; doReturn ( services ) . when ( bean ) . getSelectableTechnicalServices ( ) ; boolean isExportEnabled = bean . isExportEnabled ( ) ; "<AssertPlaceHolder>" ; } isExportEnabled (...
org . junit . Assert . assertTrue ( isExportEnabled )
newTabList ( ) { "<AssertPlaceHolder>" ; } newTabList ( ) { org . junit . Assert . assertNotNull ( net . tridentsdk . ui . tablist . TabList . newTabList ( ) ) ; }
org . junit . Assert . assertNotNull ( net . tridentsdk . ui . tablist . TabList . newTabList ( ) )
shouldReleaseNotAcquiredLocks ( ) { org . neo4j . kernel . impl . locking . community . LockResource node = new org . neo4j . kernel . impl . locking . community . LockResource ( org . neo4j . kernel . impl . locking . ResourceTypes . NODE , 1L ) ; org . neo4j . kernel . impl . locking . community . LockTransaction loc...
org . junit . Assert . assertEquals ( 0 , countLocks ( lockManager ) )
testCopyDoubleArrayIntIntArrayImgOfT ( ) { final double [ ] input = new double [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; final int [ ] offsets = new int [ ] { 0 , 0 , 8 } ; final int [ ] [ ] strides = new int [ ] [ ] { new int [ ] { 1 , 3 } , new int [ ] { 3 , 1 } , new int [ ] { - 1 , - 3 } } ; final double [ ] [ ] ...
org . junit . Assert . assertEquals ( expected [ i ] [ y ] [ x ] , ra . get ( ) . get ( ) , 0 )
test_extract_two_target_vars ( ) { java . lang . String cmd = "SELECT<sp>*<sp>WHERE<sp>{<sp>VALUES(?p<sp>?o){?valuesName}<sp>?s<sp>?p<sp>?o<sp>}" ; java . lang . String valueName = "valuesName" ; java . lang . String [ ] res = org . apache . jena . query . ParameterizedSparqlString . extractTargetVars ( cmd , valueName...
org . junit . Assert . assertArrayEquals ( exp , res )
testRunningNormally ( ) { try ( com . zaxxer . hikari . HikariDataSource ds = new com . zaxxer . hikari . HikariDataSource ( basicConfig ( ) ) ) { "<AssertPlaceHolder>" ; } } isRunning ( ) { return ( ( pool ) != null ) && ( ( pool . poolState ) == ( POOL_NORMAL ) ) ; }
org . junit . Assert . assertTrue ( ds . isRunning ( ) )
testSerialization ( ) { org . jfree . data . category . DefaultCategoryDataset d = new org . jfree . data . category . DefaultCategoryDataset ( ) ; d . addValue ( 1.0 , "R1" , "C1" ) ; d . addValue ( 2.0 , "R1" , "C2" ) ; d . addValue ( 3.0 , "R2" , "C1" ) ; d . addValue ( 4.0 , "R2" , "C2" ) ; org . jfree . chart . en...
org . junit . Assert . assertEquals ( e1 , e2 )
testPathConverter ( ) { com . heb . finance . analytics . utils . PathConverter converter = new com . heb . finance . analytics . utils . PathConverterImpl ( ) ; java . util . List < java . lang . String > parts = converter . convertPathToParts ( "a/b/c" ) ; "<AssertPlaceHolder>" ; } convertPathToParts ( java . lang . ...
org . junit . Assert . assertTrue ( ( ( parts . size ( ) ) == 3 ) )
convertStringToDouble ( ) { "<AssertPlaceHolder>" ; } convert ( java . lang . Object , java . lang . Class ) { if ( destinationClass . isPrimitive ( ) ) { return ( ( T ) ( org . slim3 . util . ConversionUtil . convertToPrimitiveWrapper ( value , destinationClass ) ) ) ; } else if ( value == null ) { return null ; } els...
org . junit . Assert . assertThat ( org . slim3 . util . ConversionUtil . convert ( "1" , org . slim3 . util . Double . class ) , org . hamcrest . CoreMatchers . is ( 1.0 ) )
when_setAllDatasets_then_mobileFilterActive ( ) { org . n52 . io . request . IoParameters parameters = org . n52 . io . request . IoParameters . createDefaults ( ) ; org . n52 . io . request . FilterResolver resolver = createResolver ( parameters ) ; "<AssertPlaceHolder>" ; } hasMobileFilter ( ) { return ( parameters ....
org . junit . Assert . assertFalse ( resolver . hasMobileFilter ( ) )
testOnPlayerInteractWrongMaterial ( ) { when ( clickedBlock . getType ( ) ) . thenReturn ( Material . STONE ) ; org . bukkit . event . player . PlayerInteractEvent e = new org . bukkit . event . player . PlayerInteractEvent ( player , org . bukkit . event . block . Action . PHYSICAL , item , clickedBlock , org . bukkit...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
testToAndFromBinaryString ( ) { for ( ch . hsr . geohash . GeoHash gh : ch . hsr . geohash . util . RandomGeohashes . fullRange ( ) ) { java . lang . String binaryString = gh . toBinaryString ( ) ; ch . hsr . geohash . GeoHash readBack = ch . hsr . geohash . GeoHash . fromBinaryString ( binaryString ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( gh , readBack )
compileRouteIsNotAnEndpoint ( ) { "<AssertPlaceHolder>" ; doReturn ( java . lang . Object . class ) . when ( route ) . getControllerClass ( ) ; try { webSockets . compileRoute ( route ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { } verify ( serverContainer , times ( 0 ) ) ...
org . junit . Assert . assertThat ( webSockets . isEnabled ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testCheckRoles ( ) { com . liferay . portal . security . membershippolicy . SiteMembershipPolicyFactoryImplTest . _atomicState . reset ( ) ; com . liferay . portal . kernel . security . membershippolicy . SiteMembershipPolicyUtil . checkRoles ( null , null ) ; "<AssertPlaceHolder>" ; } isSet ( ) { if ( Boolean . TRUE ....
org . junit . Assert . assertTrue ( com . liferay . portal . security . membershippolicy . SiteMembershipPolicyFactoryImplTest . _atomicState . isSet ( ) )