input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
blobKeyImage ( ) { com . google . appengine . api . images . Image i1 = com . google . appengine . api . images . ImagesServiceFactory . makeImageFromBlob ( new com . google . appengine . api . blobstore . BlobKey ( "gs/bucket/123" ) ) ; com . google . appengine . api . images . Image i2 = com . google . appengine . ap...
org . junit . Assert . assertEquals ( i1 , i2 )
testString2Boolean_2 ( ) { try { javax . jms . Message message = senderSession . createMessage ( ) ; message . setStringProperty ( "prop" , "test" ) ; "<AssertPlaceHolder>" ; } catch ( javax . jms . MessageFormatException e ) { } catch ( javax . jms . JMSException e ) { fail ( e ) ; } } getBooleanProperty ( java . lang...
org . junit . Assert . assertEquals ( false , message . getBooleanProperty ( "prop" ) )
test ( ) { java . lang . String [ ] macString = new java . lang . String [ ] { "19" , "5C" , "11" , "19" , "5C" , "11" } ; org . parabot . core . network . NetworkInterface networkInterface = new org . parabot . core . network . NetworkInterface ( ) ; byte [ ] mac = new byte [ 6 ] ; for ( int j = 0 ; j < 6 ; j ++ ) { m...
org . junit . Assert . assertArrayEquals ( networkInterface . getHardwareAddress ( ) , mac )
testWriteOneInbound ( ) { final java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 1 ) ; final java . util . concurrent . atomic . AtomicInteger flushCount = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; io . netty . channel . embedded . EmbeddedChannel cha...
org . junit . Assert . assertEquals ( 0 , flushCount . get ( ) )
cached ( ) { java . io . File cacheRepo = folder . newFolder ( ) ; org . apache . hadoop . conf . Configuration configuration = new com . asakusafw . runtime . util . hadoop . ConfigurationProvider ( ) . newInstance ( ) ; com . asakusafw . runtime . util . lock . LockProvider < org . apache . hadoop . fs . Path > locks...
org . junit . Assert . assertThat ( file ( retry ) . lastModified ( ) , is ( timestamp ) )
testBooleanUpgrade ( ) { java . lang . String object = "true" ; final org . apache . rya . accumulo . mr . tools . Upgrade322Tool . UpgradeObjectSerialization upgradeObjectSerialization = new org . apache . rya . accumulo . mr . tools . Upgrade322Tool . UpgradeObjectSerialization ( ) ; final java . lang . String upgrad...
org . junit . Assert . assertEquals ( "1" , upgrade )
connection_statement_batch_08 ( ) { org . apache . jena . jdbc . connections . JenaConnection conn = this . getConnection ( ) ; conn . setHoldability ( ResultSet . HOLD_CURSORS_OVER_COMMIT ) ; org . apache . jena . jdbc . connections . Statement stmt = conn . createStatement ( ) ; stmt . addBatch ( "SELECT<sp>*<sp>WHER...
org . junit . Assert . assertEquals ( 0 , batchResults . length )
shouldWithdraw ( ) { accountEntity . withdraw ( 10 ) ; "<AssertPlaceHolder>" ; } getBalance ( ) { return balance ; }
org . junit . Assert . assertThat ( accountEntity . getBalance ( ) , org . hamcrest . CoreMatchers . is ( ( - 10 ) ) )
get_response_interceptors ( ) { handlerChain = com . amazon . ask . request . handler . chain . TestRequestHandlerChain . builder ( ) . addResponseInterceptor ( responseInterceptor ) . withRequestHandler ( mockHandler ) . build ( ) ; "<AssertPlaceHolder>" ; } getResponseInterceptors ( ) { return responseInterceptors ; ...
org . junit . Assert . assertEquals ( handlerChain . getResponseInterceptors ( ) , java . util . Collections . singletonList ( responseInterceptor ) )
testFindByWhenNoElementsMatch ( ) { final java . util . List < java . lang . Integer > numbers = java . util . Arrays . asList ( 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 7 , 8 , 9 ) ; final java . lang . Integer match = com . gemstone . gemfire . internal . util . CollectionUtils . findBy ( numbers , new com . gemstone . gemfir...
org . junit . Assert . assertNull ( match )
getCustomerSubscriptions_NoBrokers ( ) { container . login ( tpSupUserKey , org . oscm . subscriptionservice . bean . ROLE_SERVICE_MANAGER ) ; java . util . List < org . oscm . internal . vo . VOSubscriptionIdAndOrganizations > result = subscriptionSvc . getCustomerSubscriptions ( ) ; "<AssertPlaceHolder>" ; } size ( )...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testToProto ( ) { org . apache . tajo . catalog . Column column = new org . apache . tajo . catalog . Column ( field1 . getProto ( ) ) ; org . apache . tajo . catalog . proto . CatalogProtos . ColumnProto proto = column . getProto ( ) ; org . apache . tajo . catalog . Column fromProto = new org . apache . tajo . catalo...
org . junit . Assert . assertEquals ( column , fromProto )
testToString ( ) { com . quantego . clp . CLP solver = new com . quantego . clp . com . quantego . clp . CLP ( ) . buffer ( 2 ) . maximization ( ) ; com . quantego . clp . CLPVariable x0 = solver . addVariable ( ) . ub ( 1.0 ) ; com . quantego . clp . CLPVariable x1 = solver . addVariable ( ) . ub ( 0.3 ) . obj ( 2.655...
org . junit . Assert . assertEquals ( str , solver . toString ( ) )
groupProperty ( ) { io . robe . hibernate . criteria . api . criteria . projection . PropertyProjection expectedProjection = new io . robe . hibernate . criteria . api . criteria . projection . PropertyProjection ( "name" , true ) ; io . robe . hibernate . criteria . api . criteria . projection . Projection projection ...
org . junit . Assert . assertEquals ( expectedProjection , projection )
testListByRunId ( ) { java . util . List < uk . ac . bbsrc . tgac . miso . core . data . SequencerPartitionContainer > spcs = dao . listAllSequencerPartitionContainersByRunId ( 1L ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , spcs . size ( ) )
testHasEightColumnWidth ( ) { com . eclipsesource . tabris . passepartout . FluidGridConfiguration configuration = new com . eclipsesource . tabris . passepartout . FluidGridConfiguration ( LayoutMode . AUTO , 100 , 200 ) ; int eightColumnWidth = configuration . getEightColumnWidth ( ) ; "<AssertPlaceHolder>" ; } getEi...
org . junit . Assert . assertEquals ( eightColumnWidth , 100 )
testCreate ( ) { org . hivedb . meta . persistence . ResourceDao d = new org . hivedb . meta . persistence . ResourceDao ( getDataSource ( getConnectString ( getHiveDatabaseName ( ) ) ) ) ; int intitialSize = d . loadAll ( ) . size ( ) ; d . create ( createResource ( ) ) ; "<AssertPlaceHolder>" ; } loadAll ( ) { org . ...
org . junit . Assert . assertEquals ( ( intitialSize + 1 ) , d . loadAll ( ) . size ( ) )
downloadMediasInfoAfter ( ) { int max = 1 ; org . restlet . resource . ClientResource client = new org . restlet . resource . ClientResource ( ( ( ( ( ( com . buddycloud . mediaserver . download . DownloadMediasInfoTest . URL ) + "?max=" ) + max ) + "&after=" ) + ( com . buddycloud . mediaserver . download . DownloadMe...
org . junit . Assert . assertTrue ( ( ( medias . size ( ) ) == 1 ) )
testModularGB6 ( ) { java . lang . String [ ] vars = new java . lang . String [ ] { "x" , "y" , "z" } ; cc . redberry . rings . poly . multivar . MultivariatePolynomial < cc . redberry . rings . bigint . BigInteger > a = cc . redberry . rings . poly . multivar . MultivariatePolynomial . parse ( "x*y^2*z^3" , cc . redbe...
org . junit . Assert . assertEquals ( buch , mod )
testValidateDefault ( ) { org . hawkular . apm . server . security . jaas . JAASSecurityProvider sp = new org . hawkular . apm . server . security . jaas . JAASSecurityProvider ( ) ; java . lang . String result = null ; try { result = sp . validate ( null , "anyone" ) ; } catch ( org . hawkular . apm . server . api . s...
org . junit . Assert . assertEquals ( JAASSecurityProvider . DEFAULT_TENANT , result )
testKafkaFind ( ) { final java . lang . String topicName = testName . getMethodName ( ) ; org . apache . metron . management . KafkaFunctionsIntegrationTest . variables . put ( "topic" , topicName ) ; java . util . concurrent . Future < java . lang . Object > future = runAsync ( "KAFKA_FIND(topic,<sp>m<sp>-><sp>MAP_GET...
org . junit . Assert . assertEquals ( expected , actual )
testDelegatingCaching ( ) { es . start ( new org . teiid . runtime . EmbeddedConfiguration ( ) ) ; org . teiid . runtime . HardCodedExecutionFactory hcef = new org . teiid . runtime . HardCodedExecutionFactory ( ) ; hcef . addData ( "cachePattern" 2 , java . util . Arrays . asList ( java . util . Arrays . asList ( "a" ...
org . junit . Assert . assertEquals ( 1 , hcef . getCommands ( ) . size ( ) )
testEmptyPropertyName ( ) { when ( bindings . get ( "location" ) ) . thenReturn ( null ) ; when ( bindings . get ( "name" ) ) . thenReturn ( "" ) ; multiFieldPanelWCMUse . init ( bindings ) ; java . util . List < java . util . Map < java . lang . String , java . lang . String > > actual = multiFieldPanelWCMUse . getVal...
org . junit . Assert . assertEquals ( 0 , actual . size ( ) )
deveObterRazaoSocialComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral retorno = new com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral ( ) ; retorno . setRazaoSocial ( "Pedro<sp>d...
org . junit . Assert . assertEquals ( "Pedro<sp>da<sp>Silva" , retorno . getRazaoSocial ( ) )
TestCorrectConnectionStringTopic ( ) { com . elastacloud . storm . tests . ServiceBusTopicConnection connection = new com . elastacloud . storm . tests . ServiceBusTopicConnection ( "test;this;thing" , null , null , null ) ; "<AssertPlaceHolder>" ; } getConnectionString ( ) { if ( ( this . connectionString . split ( ";...
org . junit . Assert . assertEquals ( "test;this;thing" , connection . getConnectionString ( ) )
testBRBY9901DrieDubbeleID ( ) { final nl . bzk . brp . model . bijhouding . BijhoudingsBericht simplegGeboorteBericht = maakSimpleInschrijvingBericht2 ( ) ; final nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht famBericht = ( ( nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBe...
org . junit . Assert . assertEquals ( 1 , berichtenDieDeRegelOvertreden . size ( ) )
testNoError ( ) { boolean result = checkNoError ( "Social_Communities_Get_Community_Forum_Topics" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
testGetAstPrimitiveTypeBoolean ( ) { java . util . Map < java . lang . String , org . eclipse . jdt . core . dom . PrimitiveType . Code > primitiveTypes = createPrimitiveTypeCodes ( ) ; when ( dataTypeUtils . getPrimitiveTypeCodes ( ) ) . thenReturn ( primitiveTypes ) ; java . lang . String typeName = "boolean" ; org ....
org . junit . Assert . assertEquals ( "boolean" , tp . toString ( ) )
testIndexRequestTranslation ( ) { com . liferay . portal . search . engine . adapter . index . RefreshIndexRequest refreshIndexRequest = new com . liferay . portal . search . engine . adapter . index . RefreshIndexRequest ( com . liferay . portal . search . elasticsearch6 . internal . search . engine . adapter . index ...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { com . liferay . portal . search . elasticsearch6 . internal . search . engine . adapter . index . RefreshIndexRequestExecutorTest . _INDEX_NAME } , refreshRequest . indices ( ) )
testGetSetRemotePortNumber ( ) { com . swingsane . preferences . model . Scanner scannerPreferences = new com . swingsane . preferences . model . Scanner ( ) ; scannerPreferences . setRemotePortNumber ( com . swingsane . preferences . device . ScannerPreferencesTest . DEFAULT_SANE_PORT ) ; "<AssertPlaceHolder>" ; } get...
org . junit . Assert . assertEquals ( com . swingsane . preferences . device . ScannerPreferencesTest . DEFAULT_SANE_PORT , scannerPreferences . getRemotePortNumber ( ) )
testRunTimeoutWithTimeoutExact ( ) { setupBackend ( ) ; queue . sendRequest ( mockRequest , mockCallback ) ; ticker . advance ( AbstractClientConnection . DEFAULT_BACKEND_ALIVE_TIMEOUT_NANOS ) ; java . util . Optional < java . lang . Long > ret = queue . checkTimeout ( ticker . read ( ) ) ; "<AssertPlaceHolder>" ; } re...
org . junit . Assert . assertNull ( ret )
testSetFormatLanguageMt ( ) { System . out . println ( "setFormatLanguageMt" ) ; org . opencyc . cycobject . CycObject languageMt = new org . opencyc . cycobject . CycConstant ( "EnglishParaphraseMt" , new org . opencyc . cycobject . Guid ( "bda16220-9c29-11b1-9dad-c379636f7270" ) ) ; org . opencyc . api . NLFormat ins...
org . junit . Assert . assertEquals ( languageMt , instance . getFormatLanguageMt ( ) )
transform ( ) { java . util . List < java . lang . String > numbersAsStrings = com . google . common . collect . Lists . newArrayList ( "1" , "2" , "3" ) ; java . util . Collection < java . lang . Double > doubles = com . google . common . collect . Collections2 . transform ( numbersAsStrings , new com . google . commo...
org . junit . Assert . assertThat ( doubles , contains ( new java . lang . Double ( 1 ) , new java . lang . Double ( 2 ) , new java . lang . Double ( 3 ) ) )
shouldHandleNestedOperationChain ( ) { final uk . gov . gchq . gaffer . store . operation . OperationChainValidator opChainValidator = mock ( uk . gov . gchq . gaffer . store . operation . OperationChainValidator . class ) ; final java . util . List < uk . gov . gchq . gaffer . store . optimiser . OperationChainOptimis...
org . junit . Assert . assertSame ( entityA , result )
testSetFamilyMemberPreferredFlagDadEmptyParents2 ( ) { org . gedcom4j . model . Family f = new org . gedcom4j . model . Family ( ) ; org . gedcom4j . model . Individual mom = new org . gedcom4j . model . Individual ( ) ; mom . setXref ( "@I1@" ) ; f . setWife ( new org . gedcom4j . model . IndividualReference ( mom ) )...
org . junit . Assert . assertEquals ( "Foo" , lfta . getFamilyMemberPreferredFlag ( f , kid ) )
returnsTheCorrectStatType ( ) { "<AssertPlaceHolder>" ; } getStatType ( ) { return com . rackspacecloud . blueflood . io . Constants . MIN ; }
org . junit . Assert . assertEquals ( Constants . MIN , min . getStatType ( ) )
testRoundTripPseudoAtom ( ) { org . openscience . cdk . smiles . SmilesParser sp = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; java . lang . String smiles = "[12*H2-]" ; org . openscience . cdk . interfaces . IAtomContainer mol = sp . pa...
org . junit . Assert . assertEquals ( smiles , genSmiles )
getClob ( ) { java . sql . ResultSet rs = org . verdictdb . jdbc41 . JdbcResultSetBasicCorrectnessTest . stmt . executeQuery ( "SELECT<sp>gender,<sp>count(*)<sp>as<sp>cnt,<sp>cast(0x1234567<sp>as<sp>clob)<sp>as<sp>b<sp>FROM<sp>PEOPLE<sp>GROUP<sp>BY<sp>gender" ) ; org . verdictdb . connection . JdbcQueryResult queryResu...
org . junit . Assert . assertEquals ( 8 , bin . length ( ) )
testEjbRefLookup ( ) { final org . jboss . as . test . integration . ejb . injection . injectiontarget . InjectingBean bean = ( ( org . jboss . as . test . integration . ejb . injection . injectiontarget . InjectingBean ) ( iniCtx . lookup ( ( "java:module/" + ( org . jboss . as . test . integration . ejb . injection ....
org . junit . Assert . assertEquals ( org . jboss . as . test . integration . ejb . injection . injectiontarget . InjectedBean . class . getName ( ) , bean . getName ( ) )
testShuffleFragment ( ) { int [ ] a = new int [ 100 ] ; for ( int i = a . length ; ( i -- ) != 0 ; ) a [ i ] = - 1 ; for ( int i = 10 ; i < 30 ; i ++ ) a [ i ] = i - 10 ; it . unimi . dsi . fastutil . ints . IntArrays . shuffle ( a , 10 , 30 , new java . util . Random ( ) ) ; boolean [ ] b = new boolean [ 20 ] ; for ( ...
org . junit . Assert . assertFalse ( b [ a [ ( i + 10 ) ] ] )
testXavierFanIn ( ) { org . nd4j . linalg . api . ndarray . INDArray params = org . nd4j . linalg . factory . Nd4j . create ( shape , 'f' ) ; org . nd4j . linalg . api . ndarray . INDArray weightsActual = org . deeplearning4j . nn . weights . WeightInitUtil . initWeights ( fanIn , fanOut , shape , WeightInit . XAVIER_F...
org . junit . Assert . assertEquals ( weightsExpected , weightsActual )
testUserConnectionWithInvalidPassword ( ) { final java . lang . Process mosquitto = startMosquitto ( "src/test/resources/mosquitto/mosquitto_specified_users.conf" ) ; final pl . baczkowicz . mqttspy . common . generated . MqttConnectionDetails connectionDetails = createMqttConnectionDetails ( "tcp://localhost:10002" , ...
org . junit . Assert . assertFalse ( connection . connect ( ) )
fetchItems ( ) { itemProvider . addItems ( book . twju . chapter_3 . Listing_3_Spy_TimelineTest . FIRST_ITEM , book . twju . chapter_3 . Listing_3_Spy_TimelineTest . SECOND_ITEM , book . twju . chapter_3 . Listing_3_Spy_TimelineTest . THIRD_ITEM ) ; timeline . setFetchCount ( 1 ) ; timeline . fetchItems ( ) ; timeline ...
org . junit . Assert . assertArrayEquals ( new book . twju . chapter_3 . Item [ ] { book . twju . chapter_3 . Listing_3_Spy_TimelineTest . THIRD_ITEM , book . twju . chapter_3 . Listing_3_Spy_TimelineTest . SECOND_ITEM } , actual . toArray ( new book . twju . chapter_3 . Item [ 2 ] ) )
testRecordingInMultipleThreads ( ) { org . easymock . tests2 . Callable < java . lang . String > replay = ( ) -> { org . easymock . tests . IMethods mock = createMock ( . class ) ; expect ( mock . oneArg ( "test" ) ) . andReturn ( "result" ) ; replay ( mock ) ; java . lang . String s = mock . oneArg ( "test" ) ; verify...
org . junit . Assert . assertEquals ( "result" , future . get ( ) )
putAsync ( ) { com . google . appengine . api . datastore . Key key = delegate . putAsync ( ( ( com . google . appengine . api . datastore . Transaction ) ( null ) ) , new com . google . appengine . api . datastore . Entity ( "Hoge" ) ) . get ( ) ; "<AssertPlaceHolder>" ; } get ( ) { slim3 . demo . model . Blog blog = ...
org . junit . Assert . assertThat ( key , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . notNullValue ( ) ) )
testNoDeadlockWhenSubsystemsInitializing ( ) { final org . osgi . framework . Bundle bundle = getSubsystemCoreBundle ( ) ; bundle . stop ( ) ; final java . util . concurrent . atomic . AtomicBoolean completed = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; final java . util . concurrent . ExecutorSe...
org . junit . Assert . assertTrue ( "Deadlock<sp>detected" , completed . get ( ) )
testStart ( ) { com . hp . application . automation . tools . sse . sdk . Client client = new com . hp . application . automation . tools . sse . sdk . TestBvsRunHandler . MockRestStartClient ( URL , DOMAIN , PROJECT , USER ) ; com . hp . application . automation . tools . sse . sdk . Response response = new com . hp ....
org . junit . Assert . assertTrue ( response . isOk ( ) )
testVertexSetIteratorTooFar ( ) { edu . ucla . sspace . graph . Graph < edu . ucla . sspace . graph . WeightedEdge > g = new edu . ucla . sspace . graph . SparseWeightedGraph ( ) ; edu . ucla . sspace . graph . Set < java . lang . Integer > control = new edu . ucla . sspace . graph . HashSet < java . lang . Integer > (...
org . junit . Assert . assertEquals ( vertices . size ( ) , i )
testSerialization ( ) { org . jfree . data . xy . VectorSeries s1 = new org . jfree . data . xy . VectorSeries ( "s1" ) ; s1 . add ( 1.0 , 0.5 , 1.5 , 2.0 ) ; org . jfree . data . xy . VectorSeries s2 = ( ( org . jfree . data . xy . VectorSeries ) ( org . jfree . chart . TestUtils . serialised ( s1 ) ) ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( s1 , s2 )
testDifferentLocaleRFC2822 ( ) { java . util . Locale . setDefault ( new java . util . Locale ( "fr" , "CA" ) ) ; org . joda . time . DateTime dateTime = com . twilio . converter . DateConverter . rfc2822DateTimeFromString ( "Tue,<sp>29<sp>Mar<sp>2016<sp>13:00:05<sp>+0000" ) ; "<AssertPlaceHolder>" ; } rfc2822DateTimeF...
org . junit . Assert . assertNotNull ( dateTime )
testCompliesWithWidthSameThanMinWidth ( ) { com . eclipsesource . tabris . passepartout . internal . condition . MinWidthCondition condition = new com . eclipsesource . tabris . passepartout . internal . condition . MinWidthCondition ( new com . eclipsesource . tabris . passepartout . internal . unit . Pixel ( 100 ) ) ...
org . junit . Assert . assertTrue ( complies )
testCheckForRowLevelConflictWithConflict ( ) { java . lang . String etag = "anEtag" ; java . lang . Long etagVersion = 25L ; when ( mockTruthDao . getVersionForEtag ( tableId , etag ) ) . thenReturn ( 25L ) ; org . sagebionetworks . repo . model . table . TableRowChange change = new org . sagebionetworks . repo . model...
org . junit . Assert . assertTrue ( e . getMessage ( ) . startsWith ( "" ) )
testAddMatrix ( ) { org . nd4j . linalg . api . ndarray . INDArray five = org . nd4j . linalg . factory . Nd4j . ones ( 5 ) ; five . addi ( five ) ; org . nd4j . linalg . api . ndarray . INDArray twos = org . nd4j . linalg . factory . Nd4j . valueArrayOf ( 5 , 2 ) ; "<AssertPlaceHolder>" ; } valueArrayOf ( int [ ] , do...
org . junit . Assert . assertEquals ( twos , five )
testGetTrustBundles_emptyBundleStore_assertNotBundlesRetrieved ( ) { final java . util . Collection < org . nhindirect . config . store . TrustBundle > bundles = tbDao . getTrustBundles ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( bundles . isEmpty ( ) )
testUpdateExisting ( ) { java . lang . String name = "somePool" ; java . net . InetSocketAddress [ ] ip = new java . net . InetSocketAddress [ ] { new java . net . InetSocketAddress ( 0 ) } ; org . dcache . chimera . nfsv41 . door . NFSv41Door . PoolDS ds = _poolDeviceMap . getOrCreateDS ( name , 0 , ip ) ; "<AssertPla...
org . junit . Assert . assertSame ( ds , _poolDeviceMap . getOrCreateDS ( name , 0 , ip ) )
testGetLabItems ( ) { java . util . List < ch . elexis . data . LabItem > items = ch . elexis . data . LabItem . getLabItems ( ) ; "<AssertPlaceHolder>" ; } size ( ) { try { ch . rgw . tools . JdbcLink . Stm stm = ch . elexis . data . PersistentObject . getConnection ( ) . getStatement ( ) ; java . lang . String res = ...
org . junit . Assert . assertEquals ( 1 , items . size ( ) )
testEmptyInStringArrays ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--string=" , "--string=" , "--string=" } ; org . apache . beam . sdk . options . PipelineOptionsFactoryTest . Arrays options = org . apache . beam . sdk . options . PipelineOptionsFactory . fromArgs ( args ) . as ( org . apach...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "" , "" , "" } , options . getString ( ) )
testWithNullResources ( ) { opennlp . tools . util . InputStreamFactory in = new opennlp . tools . formats . ResourceAsStreamFactory ( getClass ( ) , "/opennlp/tools/namefind/AnnotatedSentences.txt" ) ; opennlp . tools . util . ObjectStream < opennlp . tools . namefind . NameSample > sampleStream = new opennlp . tools ...
org . junit . Assert . assertNotNull ( cv . getFMeasure ( ) )
testPostDataRecordCollectionDataRecordCollectionPermission ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
resolveValidNetworkId_empty_deterministic ( ) { org . oscm . app . ror . client . LPlatformClient lPlatformClient = mock ( org . oscm . app . ror . client . LPlatformClient . class ) ; org . oscm . app . ror . data . LPlatformConfiguration lPlatformConfiguration = mock ( org . oscm . app . ror . data . LPlatformConfigu...
org . junit . Assert . assertEquals ( NETWORKID1 , resolvedId )
testGetAllMembers ( ) { org . eclipse . smarthome . core . items . GroupItem rootGroupItem = new org . eclipse . smarthome . core . items . GroupItem ( "root" ) ; rootGroupItem . addMember ( new org . eclipse . smarthome . core . items . TestItem ( "member1" ) ) ; rootGroupItem . addMember ( new org . eclipse . smartho...
org . junit . Assert . assertThat ( rootGroupItem . getAllMembers ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 5 ) )
test_metaProperty_hashCode ( ) { org . joda . beans . MetaProperty < java . lang . String > p1 = org . joda . beans . sample . Person . meta ( ) . forename ( ) ; org . joda . beans . MetaProperty < java . lang . String > p2 = org . joda . beans . sample . Person . meta ( ) . forename ( ) ; "<AssertPlaceHolder>" ; } has...
org . junit . Assert . assertEquals ( p1 . hashCode ( ) , p2 . hashCode ( ) )
testAtomDate2 ( ) { java . lang . String date = "2007-12-13T14:15:16.123Z" ; org . apache . abdera . model . AtomDate atomDate = new org . apache . abdera . model . AtomDate ( date ) ; java . util . Calendar calendar = atomDate . getCalendar ( ) ; atomDate = new org . apache . abdera . model . AtomDate ( calendar ) ; "...
org . junit . Assert . assertEquals ( date , atomDate . toString ( ) )
testSingleCluster ( ) { final java . util . List < org . hipparchus . clustering . DoublePoint > points = new java . util . ArrayList < org . hipparchus . clustering . DoublePoint > ( ) ; points . add ( new org . hipparchus . clustering . DoublePoint ( new double [ ] { 1 , 1 } ) ) ; final org . hipparchus . clustering ...
org . junit . Assert . assertEquals ( 1 , clusters . size ( ) )
filterIsValidFormFalse ( ) { org . spincast . core . request . Form form = getFormFactory ( ) . createForm ( "myFormName" , null ) ; org . spincast . core . json . JsonObject model = getJsonManager ( ) . create ( ) ; org . spincast . core . json . JsonObject validationElement = getJsonManager ( ) . create ( ) ; model ....
org . junit . Assert . assertEquals ( "" , html )
testInputSize0FilterSize1 ( ) { final java . io . StringReader input = new java . io . StringReader ( "" ) ; final java . util . HashSet < java . lang . Integer > codePoints = new java . util . HashSet ( ) ; codePoints . add ( java . lang . Integer . valueOf ( 'a' ) ) ; try ( org . apache . commons . io . input . Chara...
org . junit . Assert . assertEquals ( ( - 1 ) , reader . read ( ) )
testCanCompleteWhenSomePageIsNotCompleted ( ) { when ( page1 . isCompleted ( ) ) . thenReturn ( true ) ; when ( page2 . isCompleted ( ) ) . thenReturn ( false ) ; when ( page3 . isCompleted ( ) ) . thenReturn ( true ) ; wizard . addPage ( page1 ) ; wizard . addPage ( page2 ) ; wizard . addPage ( page3 ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( false , wizard . canComplete ( ) )
testNoRepeatsVisit ( ) { org . antlr . runtime . tree . TreeWizard wiz = new org . antlr . runtime . tree . TreeWizard ( org . antlr . test . TestTreeWizard . adaptor , org . antlr . test . TestTreeWizard . tokens ) ; org . antlr . runtime . tree . CommonTree t = ( ( org . antlr . runtime . tree . CommonTree ) ( wiz . ...
org . junit . Assert . assertEquals ( expecting , found )
testSelection_RemoveSingleItemAdjustSelection ( ) { combo . add ( "test0" ) ; combo . add ( "test1" ) ; combo . add ( "test2" ) ; combo . select ( 2 ) ; combo . remove ( 0 ) ; "<AssertPlaceHolder>" ; } getSelectionIndex ( ) { checkWidget ( ) ; int result = - 1 ; if ( cellSelectionEnabled ) { if ( ( selectedCells . size...
org . junit . Assert . assertEquals ( 1 , combo . getSelectionIndex ( ) )
whenClearingTreeSet_shouldClearTreeSet ( ) { java . util . Set < java . lang . String > clearTreeSet = new java . util . TreeSet ( ) ; clearTreeSet . add ( "String<sp>Added" ) ; clearTreeSet . clear ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( total ) == 0 ; }
org . junit . Assert . assertTrue ( clearTreeSet . isEmpty ( ) )
can_switch_to_the_niem_uml_perspective ( ) { final org . eclipse . ui . IWorkbench theWorkbench = get_the_workbench ( ) ; theWorkbench . showPerspective ( org . search . niem . uml . ui . PerspectiveFactory . THE_NIEM_UML_PERSPECTIVE_ID , get_the_active_workbench_window ( ) ) ; "<AssertPlaceHolder>" ; } is_open_to_the_...
org . junit . Assert . assertThat ( theWorkbench , is_open_to_the_niem_uml_perspective ( ) )
whenCommittedBeforeTimeout ( ) { org . multiverse . commitbarriers . VetoCommitBarrier barrier = new org . multiverse . commitbarriers . VetoCommitBarrier ( ) ; barrier . setTimeout ( 500 , TimeUnit . MILLISECONDS ) ; barrier . atomicVetoCommit ( ) ; org . multiverse . TestUtils . sleepMs ( 1000 ) ; "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( barrier . isCommitted ( ) )
testDecodeClientAuthnHeaderNoClientId ( ) { java . lang . String header = ":secret" ; java . lang . String encodedHeader = ( org . apache . oltu . oauth2 . common . utils . OAuthUtilsTest . BASIC_PREFIX ) + ( encodeHeader ( header ) ) ; "<AssertPlaceHolder>" ; } decodeClientAuthenticationHeader ( java . lang . String )...
org . junit . Assert . assertNull ( org . apache . oltu . oauth2 . common . utils . OAuthUtils . decodeClientAuthenticationHeader ( encodedHeader ) )
testFlavor ( ) { com . runabove . api . RunAboveManager runAboveApi = login ( ) ; com . runabove . model . instance . Flavor [ ] falvors = runAboveApi . getFlavor ( ) ; "<AssertPlaceHolder>" ; for ( com . runabove . model . instance . Flavor flavor : falvors ) { com . runabove . ApiTest . LOG . info ( ( "Flavor<sp>getD...
org . junit . Assert . assertNotNull ( falvors )
checkIsAllowedForLocalizingService_customer_targetCustomer ( ) { org . oscm . domobjects . Organization customerOrganization = givenCustomerOrganization ( ) ; givenCurrentUserForOrganization ( customerOrganization ) ; org . oscm . domobjects . Product givenProduct = givenProduct ( givenSupplierOrganization ( ) ) ; give...
org . junit . Assert . assertTrue ( result )
testUpdateSecurityZone ( ) { org . apache . ranger . plugin . model . RangerSecurityZone rangerSecurityZoneToUpdate = createRangerSecurityZone ( ) ; java . lang . Long securityZoneId = 1L ; rangerSecurityZoneToUpdate . setId ( securityZoneId ) ; when ( rangerBizUtil . isAdmin ( ) ) . thenReturn ( true ) ; when ( valida...
org . junit . Assert . assertEquals ( rangerSecurityZoneToUpdate . getId ( ) , updatedRangerSecurityZone . getId ( ) )
batchIterable_forEachEntry ( ) { com . gs . collections . impl . parallel . BatchIterable < Map . Entry < java . lang . Integer , java . lang . Integer > > entries = ( ( com . gs . collections . impl . parallel . BatchIterable < Map . Entry < java . lang . Integer , java . lang . Integer > > ) ( com . gs . collections ...
org . junit . Assert . assertEquals ( 20 , sum . getValue ( ) )
rejectMap ( ) { org . eclipse . collections . api . map . MapIterable < java . lang . String , java . lang . String > map = this . newMapWithKeysValues ( "1" , "One" , "2" , "Two" , "3" , "Three" ) ; org . eclipse . collections . api . map . MapIterable < java . lang . String , java . lang . String > actual = map . rej...
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . map . mutable . UnifiedMap . newWithKeysValues ( "3" , "Three" ) , actual )
testGetUsage ( ) { classUnderTest . setUsage ( "aTestString" ) ; "<AssertPlaceHolder>" ; } getUsage ( ) { return this . _usage ; }
org . junit . Assert . assertEquals ( "aTestString" , classUnderTest . getUsage ( ) )
convertEmptyJsonToPojoShouldSucceed ( ) { P something = newPojo ( new io . vertx . core . json . JsonObject ( ) ) ; "<AssertPlaceHolder>" ; } newPojo ( io . vertx . core . json . JsonObject ) { return new generated . classic . reactive . guice . vertx . tables . pojos . Somethingcomposite ( json ) ; }
org . junit . Assert . assertNotNull ( something )
testConfigInternalElement ( ) { javax . json . JsonArray json = new componenttest . topology . utils . HttpsRequest ( com . ibm . ws . rest . handler . config . fat . ConfigRESTHandlerTest . server , "/ibm/api/config/udpOptions" ) . run ( javax . json . JsonArray . class ) ; java . lang . String err = "unexpected<sp>re...
org . junit . Assert . assertEquals ( err , 0 , json . size ( ) )
testOngeldigeAangewezenObjectOfVoorkomen_GeenHistorieGevonden ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon partner = mock ( nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon . class ) ; when ( bericht . getEntiteitVoorObjectSleutel ( nl . bzk . brp . bijhouding . bericht...
org . junit . Assert . assertNotNull ( actie . getOngeldigAangewezenObjectOfVoorkomen ( ) )
testWithUserTimeZone ( ) { java . util . List < org . joda . time . DateTime > excludeDaysOfTheMonth = timetrackerManager . getIncludeDaysOfTheMonth ( new org . joda . time . DateTime ( 1451606400000L , org . joda . time . DateTimeZone . forID ( "Pacific/Apia" ) ) , new java . util . HashSet ( java . util . Arrays . as...
org . junit . Assert . assertEquals ( new java . util . HashSet ( ) , new java . util . HashSet ( excludeDaysOfTheMonth ) )
testWriteField ( ) { java . lang . reflect . Field field = parentClass . getDeclaredField ( "s" ) ; org . apache . commons . lang3 . reflect . FieldUtils . writeField ( field , publicChild , "S" ) ; "<AssertPlaceHolder>" ; field = parentClass . getDeclaredField ( "b" ) ; try { org . apache . commons . lang3 . reflect ....
org . junit . Assert . assertEquals ( "S" , field . get ( publicChild ) )
convertToShortNull ( ) { java . lang . Long l = null ; java . lang . Short s = converter . toShort ( l ) ; "<AssertPlaceHolder>" ; } toShort ( java . lang . Long ) { if ( value == null ) { return null ; } if ( ( value > ( Short . MAX_VALUE ) ) || ( value < ( Short . MIN_VALUE ) ) ) { throw new io . atlasmap . api . Atl...
org . junit . Assert . assertNull ( s )
testExecutePowerUpTaskForDiscverableNode ( ) { System . out . println ( "[TS]:<sp>testExecutePowerUpTaskForDiscverableNode" ) ; com . vmware . vrack . hms . common . notification . TaskResponse TR = new com . vmware . vrack . hms . common . notification . TaskResponse ( new com . vmware . vrack . hms . common . servern...
org . junit . Assert . assertTrue ( TR . getNode ( ) . isPowered ( ) )
WriteFile ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "output.ump" , ( pathToInput ) + "/003_invoke_RequiresAlready.vml" } ; cruise . vml . VmlConsole . main ( args ) ; java . lang . String actual = cruise . umple . util . SampleFileWriter . readContent ( new java . io . File ( "output.ump" ) )...
org . junit . Assert . assertEquals ( expected , actual )
testEmptyCells ( ) { org . drools . decisiontable . parser . LhsBuilder builder = new org . drools . decisiontable . parser . LhsBuilder ( 9 , 1 , "Person" ) ; "<AssertPlaceHolder>" ; } hasValues ( ) { return hasValues ; }
org . junit . Assert . assertFalse ( builder . hasValues ( ) )
test_toString ( ) { "<AssertPlaceHolder>" ; } toString ( ) { return com . google . common . base . MoreObjects . toStringHelper ( this ) . omitNullValues ( ) . add ( "AD_Process_ID" , AD_Process_ID ) . add ( "pinstanceId" , pinstanceId ) . add ( "AD_Language" , AD_Language ) . add ( "outputType" , outputType ) . add ( ...
org . junit . Assert . assertNotNull ( factory . toString ( ) )
testGetColorSet1 ( ) { org . mintcode . errabbit . model . LogLevelHourStatistics hs = new org . mintcode . errabbit . model . LogLevelHourStatistics ( ) ; hs . setHour ( 1 ) ; hs . setLevel_DEBUG ( 1 ) ; org . mintcode . errabbit . model . Graph graph = new org . mintcode . errabbit . model . Graph ( ) ; graph . add (...
org . junit . Assert . assertEquals ( graph . getColorSet ( ) . size ( ) , 1 )
resolve_INS_REF ( ) { org . opencb . biodata . models . variant . Variant a = org . opencb . opencga . storage . hadoop . variant . archive . mr . VariantLocalConflictResolverTest . addAttribute ( org . opencb . opencga . storage . hadoop . variant . archive . mr . VariantLocalConflictResolverTest . getVariantFilter ( ...
org . junit . Assert . assertEquals ( 2 , resolved . size ( ) )
testVeelData ( ) { int aantalPersonenPersbestand = ( ( int ) ( 1000000.0 ) ) ; final java . util . List < java . nio . file . Path > pathList = java . util . stream . IntStream . range ( 0 , 10 ) . mapToObj ( ( i ) -> maakFile ( ( ( "#" + i ) + "#" ) , aantalPersonenPersbestand ) ) . collect ( java . util . stream . Co...
org . junit . Assert . assertEquals ( steekproefService . maxPersonenInSteekproef ( ) , personenInSteekproef . size ( ) )
testDdl_TYPE_IMAGE ( ) { java . lang . String ddl = ( "CREATE<sp>FOREIGN<sp>TABLE<sp>ONE_TYPE<sp>(" + ( org . teiid . designer . vdb . dynamic . TestModelToDdlGenerator . BQT2_TYPE_DDL . TYPE_IMAGE ) ) + ")<sp>OPTIONS(UPDATABLE<sp>'TRUE');" ; java . lang . String expectedDdl = ( "CREATE<sp>FOREIGN<sp>TABLE<sp>ONE_TYPE<...
org . junit . Assert . assertEquals ( expectedDdl , generatedDdl )
testCreateAndDeleteModel ( ) { java . lang . Long id = service . createUserSystem ( "first" ) . getId ( ) ; ch . hsr . servicecutter . model . usersystem . UserSystem result = service . getSystem ( id ) ; "<AssertPlaceHolder>" ; service . deleteUserSystem ( id ) ; try { service . getSystem ( id ) ; org . junit . Assert...
org . junit . Assert . assertEquals ( "first" , result . getName ( ) )
collectKeysValues ( ) { com . gs . collections . api . multimap . Multimap < java . lang . String , java . lang . Integer > multimap = this . newMultimapWithKeysValues ( "1" , 1 , "1" , 12 , "2" , 2 , "3" , 3 ) ; com . gs . collections . api . multimap . Multimap < java . lang . Integer , java . lang . String > collect...
org . junit . Assert . assertEquals ( expectedMultimap , collectedMultimap )
testGetSpellCheckSuggestionWithEmptySuggestion ( ) { setUpSearchedKeywords ( "q" , "a<sp>b" ) ; "<AssertPlaceHolder>" ; } buildSpellCheckSuggestion ( java . lang . String ) { _displayBuilder . setSpellCheckSuggestion ( spellCheckSuggestion ) ; _displayBuilder . setSpellCheckSuggestionEnabled ( true ) ; com . liferay . ...
org . junit . Assert . assertNull ( buildSpellCheckSuggestion ( "" ) )
testParseCubeWerx_GovernmentalUnitCE ( ) { javax . xml . namespace . QName featureName = org . geotools . data . wfs . WFSTestData . CUBEWERX_GOVUNITCE . TYPENAME ; java . net . URL schemaLocation = org . geotools . data . wfs . WFSTestData . CUBEWERX_GOVUNITCE . SCHEMA ; java . lang . String srsName = org . geotools ....
org . junit . Assert . assertEquals ( ( - 1 ) , nof )
testGetSqlExpressionRedshiftCase3 ( ) { java . lang . String sqlLang = "SQL" ; java . lang . String sqlBody = "SQL<sp>body" ; java . lang . String redshiftLang = SupportDBUrlType . REDSHIFT . getLanguage ( ) ; org . talend . dataquality . indicators . definition . IndicatorDefinition indicatorDefinition = DefinitionFac...
org . junit . Assert . assertEquals ( tdExpression1 , sqlExpression )
testStream ( ) { org . geoserver . filters . GZIPResponseStreamTest . ByteStreamCapturingHttpServletResponse response = new org . geoserver . filters . GZIPResponseStreamTest . ByteStreamCapturingHttpServletResponse ( new org . springframework . mock . web . MockHttpServletResponse ( ) ) ; org . geoserver . filters . G...
org . junit . Assert . assertEquals ( "Hello<sp>world!" , new java . lang . String ( unzip ( response . toByteArray ( ) ) ) )
testAppsShownInBootDash ( ) { org . springframework . ide . eclipse . boot . dash . cloudfoundry . client . CFClientParams targetParams = org . springframework . ide . eclipse . boot . dash . test . CfTestTargetParams . fromEnv ( ) ; org . springframework . ide . eclipse . boot . dash . test . mocks . MockCFSpace space...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableSet . of ( "foo" , "bar" ) , appNames )