input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
unspecifiedMass ( ) { org . openscience . cdk . interfaces . IAtom a = g2c . toCDKAtom ( uk . ac . ebi . beam . AtomBuilder . aliphatic ( Element . Carbon ) . hydrogens ( 4 ) . build ( ) , 4 ) ; "<AssertPlaceHolder>" ; } getMassNumber ( ) { return java . lang . Integer . valueOf ( 1 ) ; }
org . junit . Assert . assertNull ( a . getMassNumber ( ) )
testReading ( ) { org . apache . hadoop . hbase . client . Put p = new org . apache . hadoop . hbase . client . Put ( b ( "test" ) ) ; org . apache . hadoop . hbase . KeyValue kv = new org . apache . hadoop . hbase . KeyValue ( b ( "test" ) , b ( "t" ) , b ( "col" ) , java . lang . System . currentTimeMillis ( ) , b ( ...
org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( kv ) , sink . getOutputs ( ) )
testPasteWholeCommentStart ( ) { doReturn ( "/**" ) . when ( document ) . getLineContent ( 0 ) ; doReturn ( "<sp>*" ) . when ( document ) . getLineContent ( 1 ) ; final org . eclipse . che . ide . jseditor . client . changeintercept . TextChange input = new org . eclipse . che . ide . jseditor . client . changeintercep...
org . junit . Assert . assertNull ( output )
testModularGCD1 ( ) { cc . redberry . rings . poly . multivar . MultivariatePolynomial < cc . redberry . rings . bigint . BigInteger > a = cc . redberry . rings . poly . multivar . MultivariatePolynomial . parse ( "a<sp>+<sp>17*b<sp>+<sp>2*c" ) ; cc . redberry . rings . poly . multivar . MultivariatePolynomial < cc . r...
org . junit . Assert . assertEquals ( gcd , ZippelGCDInZ ( a . clone ( ) . multiply ( gcd ) , b . clone ( ) . multiply ( gcd ) ) )
deveGerarXMLDeAcordoComOPadraoEstabelecidoBCAliquotaPercentual ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoPISST impostoPISST = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoPISST ( ) ; impostoPISST . setPercentualAliquota ( new j...
org . junit . Assert . assertEquals ( xmlEsperado , impostoPISST . toString ( ) )
testAssignedEObjectRuleCall ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "Rule:<sp>call=Called;" ) ; _builder . newLine ( ) ; _builder . append ( "Called:<sp>name=ID;" ) ; _builder . newLine ( ) ; final java . lang ....
org . junit . Assert . assertEquals ( expected , actual )
testGetAjaxClientList ( ) { ca . corefacility . bioinformatics . irida . model . IridaClientDetails client1 = new ca . corefacility . bioinformatics . irida . model . IridaClientDetails ( ) ; client1 . setId ( 1L ) ; ca . corefacility . bioinformatics . irida . model . IridaClientDetails client2 = new ca . corefacility...
org . junit . Assert . assertEquals ( 2 , models . size ( ) )
testGetItemByIdInProject_NullTest ( ) { com . onboard . service . collaboration . impl . test . Mockito . reset ( mockBugMapper ) ; java . util . List < com . onboard . domain . model . Bug > emptyList = new java . util . ArrayList < com . onboard . domain . model . Bug > ( ) ; when ( mockBugMapper . selectByExample ( ...
org . junit . Assert . assertNull ( projectItem )
testThreeUpdates ( ) { statistics . update ( org . openehealth . ipf . commons . test . performance . PerformanceMeasurementTestUtils . createMeasurementHistory ( ) ) ; statistics . update ( org . openehealth . ipf . commons . test . performance . PerformanceMeasurementTestUtils . createMeasurementHistory ( ) ) ; stati...
org . junit . Assert . assertEquals ( 1 , getCountAt ( org . openehealth . ipf . commons . test . performance . throughput . ThroughputDistributionStatisticsTest . LAST_BIN_INDEX , distribution ) )
testValues_readwrite ( ) { java . util . Collection values = tree . values ( ) ; boolean failedAsExpected = false ; try { values . clear ( ) ; } catch ( java . lang . UnsupportedOperationException e ) { failedAsExpected = true ; } "<AssertPlaceHolder>" ; } clear ( ) { if ( ( delegate ) != ( java . util . Collections . ...
org . junit . Assert . assertTrue ( failedAsExpected )
iterator_isEmptyAfterCreation ( ) { "<AssertPlaceHolder>" ; } iterator ( ) { return new com . restfb . Connection . Itr ( this ) ; }
org . junit . Assert . assertFalse ( object . iterator ( ) . hasNext ( ) )
checkSuperAdminAccessToSensorType ( ) { final org . sentilo . web . catalog . domain . SensorType resource = new org . sentilo . web . catalog . domain . SensorType ( "1" ) ; when ( userDetails . isSuperAdminUser ( ) ) . thenReturn ( true ) ; when ( service . findAndThrowErrorIfNotExist ( any ( org . sentilo . web . ca...
org . junit . Assert . assertTrue ( allowedCRUL )
testEmptinessFreshEnable ( ) { test . SRA . LinkedList < java . lang . Character > registers = new test . SRA . LinkedList < java . lang . Character > ( ) ; registers . add ( null ) ; registers . add ( null ) ; theory . characters . CharPred abPred = ba . MkOr ( new theory . characters . CharPred ( 'a' ) , new theory ....
org . junit . Assert . assertFalse ( test . SRA . SRA . isLanguageEmpty ( testSRA , ba , Long . MAX_VALUE ) )
shouldDoNothingWithEmptyResult ( ) { when ( mockViewRepository . findAll ( ) ) . thenReturn ( emptySet ( ) ) ; java . util . List < io . gravitee . management . model . ViewEntity > list = viewService . findAll ( ) ; "<AssertPlaceHolder>" ; verify ( mockViewRepository , times ( 1 ) ) . findAll ( ) ; } findAll ( ) { ret...
org . junit . Assert . assertTrue ( list . isEmpty ( ) )
shouldAllowNullParameters ( ) { executeUpdate ( "CREATE<sp>(m:User<sp>{name:'Michal'})<-[:FRIEND_OF]-(a:User<sp>{name:'Adam'})" ) ; transactionTemplate . execute ( new org . springframework . transaction . support . TransactionCallbackWithoutResult ( ) { @ org . springframework . data . neo4j . queries . Override publi...
org . junit . Assert . assertNull ( u . getName ( ) )
testBigDecimalJsonUnmarshaller ( ) { java . math . BigDecimal bd = new java . math . BigDecimal ( "1.5" ) ; java . io . StringWriter sw = new java . io . StringWriter ( ) ; com . amazonaws . util . json . AwsJsonWriter jw = com . amazonaws . util . json . JsonUtils . getJsonWriter ( sw ) ; jw . beginObject ( ) ; jw . n...
org . junit . Assert . assertEquals ( unmarshalledBD . toPlainString ( ) , bd . toPlainString ( ) )
testDirectToHeapBuffer ( ) { io . atomix . storage . buffer . DirectBuffer directBuffer = io . atomix . storage . buffer . DirectBuffer . allocate ( 8 ) ; directBuffer . writeLong ( 10 ) ; directBuffer . flip ( ) ; byte [ ] bytes = new byte [ 8 ] ; directBuffer . read ( bytes ) ; directBuffer . rewind ( ) ; io . atomix...
org . junit . Assert . assertEquals ( directBuffer . readLong ( ) , heapBuffer . readLong ( ) )
shouldConvertBackToTheSameInstance ( ) { F originalFuture = createFinishedOriginal ( ) ; T converted = convert ( originalFuture ) ; "<AssertPlaceHolder>" ; } convertBack ( java . util . concurrent . CompletableFuture ) { return net . javacrumbs . futureconverter . java8apifuture . FutureConverter . toApiFuture ( conver...
org . junit . Assert . assertSame ( originalFuture , convertBack ( converted ) )
givenUserService_whenSearchForUserByEmail_thenFound ( ) { expect ( userService . findByEmail ( anyString ( ) ) ) . andReturn ( java . util . Collections . emptyList ( ) ) ; replay ( userService ) ; java . util . List < com . baeldung . easymock . User > result = userService . findByEmail ( "test@example.com" ) ; verify...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testBlobMethodPresent ( ) { byte [ ] b = new byte [ 1 ] ; "<AssertPlaceHolder>" ; } blob ( byte [ ] ) { return org . davidmoten . rx . jdbc . Database . toSentinelIfNull ( bytes ) ; }
org . junit . Assert . assertEquals ( b , org . davidmoten . rx . jdbc . Database . blob ( b ) )
canSpecifyReplacements ( ) { org . libreplan . business . util . deepcopy . DeepCopy deepCopy = new org . libreplan . business . util . deepcopy . DeepCopy ( ) ; org . libreplan . business . util . deepcopy . EntityExamples . Parent parent = new org . libreplan . business . util . deepcopy . EntityExamples . Parent ( )...
org . junit . Assert . assertSame ( copy . getEntityAProperty ( ) , anotherEntity )
testSetInputPath ( ) { granularityPathSpec . setInputPath ( TEST_STRING_PATH ) ; "<AssertPlaceHolder>" ; } getInputPath ( ) { return inputPath ; }
org . junit . Assert . assertEquals ( TEST_STRING_PATH , granularityPathSpec . getInputPath ( ) )
testMaxCounts ( ) { org . openscience . cdk . config . IsotopeFactory ifac = org . openscience . cdk . config . Isotopes . getInstance ( ) ; org . openscience . cdk . interfaces . IIsotope c = ifac . getMajorIsotope ( "C" ) ; org . openscience . cdk . interfaces . IIsotope h = ifac . getMajorIsotope ( "H" ) ; org . ope...
org . junit . Assert . assertTrue ( ( count <= 7 ) )
testUpdatePartial ( ) { ddf . catalog . source . solr . provider . SolrProviderTestUtil . deleteAll ( ddf . catalog . source . solr . provider . SolrProviderUpdate . provider ) ; ddf . catalog . source . solr . provider . MockMetacard metacard = new ddf . catalog . source . solr . provider . MockMetacard ( ddf . catalo...
org . junit . Assert . assertEquals ( 1 , response . getUpdatedMetacards ( ) . size ( ) )
findEndpointForShouldWorkAutodiscovery5 ( ) { ac . simons . oembed . OembedService oembedService = new ac . simons . oembed . OembedService ( defaultHttpClient , null , new java . util . ArrayList ( ) , null ) ; oembedService . setAutodiscovery ( false ) ; java . util . Optional < ac . simons . oembed . OembedEndpoint ...
org . junit . Assert . assertFalse ( endpoint . isPresent ( ) )
forEachWith ( ) { com . gs . collections . api . collection . MutableCollection < java . lang . Integer > result = Lists . mutable . of ( ) ; this . classUnderTest ( ) . forEachWith ( ( argument1 , argument2 ) -> result . add ( ( argument1 + argument2 ) ) , 0 ) ; "<AssertPlaceHolder>" ; } classUnderTest ( ) { return So...
org . junit . Assert . assertEquals ( this . classUnderTest ( ) , result )
testToString ( ) { org . locationtech . geogig . model . Node node = org . locationtech . geogig . model . RevObjectFactory . defaultInstance ( ) . createNode ( "Points.1" , org . locationtech . geogig . model . ObjectId . valueOf ( "abc123000000000000001234567890abcdef0000" ) , ObjectId . NULL , TYPE . FEATURE , null ...
org . junit . Assert . assertEquals ( expected , readableNode . toString ( ) )
loadAllBrokerKeysWithinPeriod_multipleOrganizations ( ) { givenOrganizationsWithRoles ( OrganizationRoleType . BROKER , OrganizationRoleType . RESELLER , OrganizationRoleType . BROKER ) ; java . util . List < java . lang . Long > brokerKeys = dao . loadAllBrokerKeysWithinPeriod ( java . lang . System . currentTimeMilli...
org . junit . Assert . assertEquals ( 2 , brokerKeys . size ( ) )
testBlockingQueue ( ) { final java . util . concurrent . ArrayBlockingQueue < java . lang . Integer > queue = new java . util . concurrent . ArrayBlockingQueue < java . lang . Integer > ( 100 ) ; final long start = java . lang . System . currentTimeMillis ( ) ; final long run = start + ( org . csstudio . archive . engi...
org . junit . Assert . assertEquals ( i , val . intValue ( ) )
union_multiple_columns3 ( ) { com . querydsl . core . types . SubQueryExpression < com . querydsl . core . Tuple > sq1 = query ( ) . from ( com . querydsl . sql . Constants . employee ) . select ( employee . firstname , employee . lastname ) ; com . querydsl . core . types . SubQueryExpression < com . querydsl . core ....
org . junit . Assert . assertFalse ( list . isEmpty ( ) )
iobEncoderTest ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "O" , "O" , "O" , "B-NP" , "I-NP" , "I-NP" , "I-NP" , "O" , "O" , "O" , "O" , "O" , "B-NP" , "O" , "B-NP" , "O" , "O" , "O" } ; org . apache . uima . jcas . JCas jcas = getJCas ( ) ; org . apache . uima . cas . Type chunkType = org ...
org . junit . Assert . assertEquals ( expected [ i ] , encoder . encode ( token ) )
bindAppWidgetIdIfAllowed_shouldRecordTheBinding ( ) { android . content . ComponentName provider = new android . content . ComponentName ( "A" , "B" ) ; appWidgetManager . bindAppWidgetIdIfAllowed ( 789 , provider ) ; "<AssertPlaceHolder>" ; } getAppWidgetIds ( android . content . ComponentName ) { java . util . List <...
org . junit . Assert . assertArrayEquals ( new int [ ] { 789 } , appWidgetManager . getAppWidgetIds ( provider ) )
testSetInboundStandardMode ( ) { gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry registry = gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry . getInstance ( ) ; gov . hhs . fha . nhinc . configuration . IConfiguration . serviceEnum serviceName = gov . hhs . fha . nhinc . con...
org . junit . Assert . assertEquals ( true , standard )
testHandleFound ( ) { org . apache . felix . http . base . internal . handler . ServletHandler h1 = createHandler ( "/a" ) ; final org . apache . felix . http . base . internal . dispatch . InvocationChain ic = new org . apache . felix . http . base . internal . dispatch . InvocationChain ( h1 , new org . apache . feli...
org . junit . Assert . assertEquals ( 0 , res . getStatus ( ) )
setMultiplierBasic ( ) { org . candlepin . model . Product product = org . candlepin . test . TestUtil . createProduct ( "test" , "Test<sp>Product" ) ; product . setMultiplier ( 4L ) ; "<AssertPlaceHolder>" ; } getMultiplier ( ) { return multiplier ; }
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 4 ) , product . getMultiplier ( ) )
testGetConnection ( ) { java . lang . String jndiName = "HSQL" ; java . sql . Connection connection = org . pentaho . platform . dataaccess . datasource . wizard . service . agile . AgileHelper . getConnection ( jndiName ) ; "<AssertPlaceHolder>" ; } getConnection ( java . lang . String ) { org . pentaho . platform . e...
org . junit . Assert . assertNotNull ( connection )
testParseScriptCfcHarder ( ) { java . lang . String path = "" ; try { path = new java . net . URL ( "file:src/test/resources/cfml/ScriptComponentHarder.cfc" ) . getPath ( ) ; } catch ( java . net . MalformedURLException e ) { e . printStackTrace ( ) ; } cfml . parsing . cfscript . script . CFScriptStatement scriptState...
org . junit . Assert . assertNotNull ( scriptStatement )
testBasicTwoOutputs ( ) { org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; org . deeplearning4j . nn . conf . ComputationGraphConfiguration conf = new org . deeplearning4j . nn . conf . NeuralNetConfiguration . Builder ( ) . seed ( 12345 ) . optimizationAlgo ( OptimizationAlgorithm . STOCHASTI...
org . junit . Assert . assertTrue ( testName , gradOK )
createPointGeometry ( ) { org . locationtech . jts . geom . Geometry geom = org . n52 . shetland . util . JTSHelper . createGeometryFromWKT ( "POINT<sp>(40<sp>40)" , 4326 ) ; org . n52 . shetland . ogc . filter . SpatialFilter filter = new org . n52 . shetland . ogc . filter . SpatialFilter ( org . n52 . shetland . ogc...
org . junit . Assert . assertNotNull ( map )
testClose ( ) { org . jboss . as . process . protocol . Pipe pipe = new org . jboss . as . process . protocol . Pipe ( 8192 ) ; java . io . InputStream in = pipe . getIn ( ) ; java . io . OutputStream out = pipe . getOut ( ) ; out . close ( ) ; try { out . write ( 0 ) ; org . junit . Assert . fail ( "Expected<sp>except...
org . junit . Assert . assertEquals ( ( - 1 ) , in . read ( ) )
hasDuplicatesShouldReturnFalseWhenClassHasNoDuplicates ( ) { org . apache . maven . plugins . enforcer . ClassFile classFile = classFileHelper . createWithContent ( org . apache . maven . plugins . enforcer . ClassesWithSameNameTest . PATH_TO_CLASS_FILE , "" ) ; org . apache . maven . plugins . enforcer . ClassesWithSa...
org . junit . Assert . assertFalse ( result )
testInstancePredicate ( ) { org . jclouds . openstack . nova . v2_0 . domain . FloatingIP ip = new org . jclouds . openstack . nova . v2_0 . domain . FloatingIP ( "id" , "ip" , "fixedIp" , "mid" , "pool" ) { } ; net . roboconf . target . openstack . internal . OpenstackIaasHandler . InstancePredicate predicate = new ne...
org . junit . Assert . assertTrue ( predicate . apply ( ip ) )
testGetCurrTimeMS ( ) { System . out . println ( "getCurrTimeMS" ) ; com . bixly . pastevid . recorders . AudioCache instance = new com . bixly . pastevid . recorders . AudioCache ( ) ; long expResult = 0L ; long result = instance . getCurrTimeMS ( ) ; "<AssertPlaceHolder>" ; } getCurrTimeMS ( ) { return currTimeMS ; }
org . junit . Assert . assertEquals ( expResult , result )
testWriteSimple ( ) { org . teiid . translator . infinispan . hotrod . IckleConversionVisitor visitor = helpExecute ( "select<sp>*<sp>from<sp>G1" ) ; org . teiid . infinispan . api . TeiidTableMarsheller g1WriteMarshaller = new org . teiid . infinispan . api . TeiidTableMarsheller ( org . teiid . translator . infinispa...
org . junit . Assert . assertEquals ( buildG1 ( ) , result )
shouldExportMatchQuery ( ) { com . couchbase . client . java . search . queries . MatchQuery fts = com . couchbase . client . java . search . SearchQuery . match ( "salty<sp>beers" ) ; com . couchbase . client . java . search . SearchQuery query = new com . couchbase . client . java . search . SearchQuery ( "foo" , fts...
org . junit . Assert . assertEquals ( expected , query . export ( ) )
testSetGetBlueprintName ( ) { org . apache . ambari . server . orm . entities . HostGroupConfigEntityPK pk = new org . apache . ambari . server . orm . entities . HostGroupConfigEntityPK ( ) ; pk . setBlueprintName ( "foo" ) ; "<AssertPlaceHolder>" ; } getBlueprintName ( ) { return blueprintName ; }
org . junit . Assert . assertEquals ( "foo" , pk . getBlueprintName ( ) )
testFromEtagValueNoQuotes ( ) { won . protocol . rest . WonEtagHelper helper = won . protocol . rest . WonEtagHelper . fromEtagValue ( "1" ) ; "<AssertPlaceHolder>" ; } fromEtagValue ( java . lang . String ) { if ( etagValue == null ) return null ; etagValue = etagValue . trim ( ) ; if ( etagValue . startsWith ( "W/" )...
org . junit . Assert . assertNull ( helper )
testComputeLatLonFromStringWithInvalidDegMinSec ( ) { gov . nasa . worldwind . geom . LatLon result = au . gov . ga . earthsci . worldwind . common . util . Util . computeLatLonFromString ( "-90�<sp>23\'<sp>33\",<sp>123�<sp>45\'<sp>56\"" ) ; "<AssertPlaceHolder>" ; } computeLatLonFromString ( java . lang . String , gov...
org . junit . Assert . assertNull ( result )
isVerwijderingAfnemerIndicatieNee ( ) { final nl . bzk . brp . model . operationeel . kern . AdministratieveHandelingModel administratieveHandelingModel = new nl . bzk . brp . model . operationeel . kern . AdministratieveHandelingModel ( new nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortAdministratieveH...
org . junit . Assert . assertFalse ( resultaat )
testQueryForObjectAllShardsNullable ( ) { try { com . ctrip . platform . dal . dao . shard . DalHints hints = new com . ctrip . platform . dal . dao . shard . DalHints ( ) ; com . ctrip . platform . dal . dao . shard . StatementParameters parameters = new com . ctrip . platform . dal . dao . shard . StatementParameters...
org . junit . Assert . assertNull ( result )
testGetAlgorithmIdentifiers ( ) { java . lang . System . out . println ( "getAlgorithmIdentifiers()" ) ; java . lang . String expResult = "RS256" ; java . lang . String result = instance . getAlgorithmIdentifiers ( ) ; "<AssertPlaceHolder>" ; } getAlgorithmIdentifiers ( ) { return algorithmIdentifiers ; }
org . junit . Assert . assertEquals ( expResult , result )
testGetForeground_Initial ( ) { org . eclipse . nebula . widgets . grid . GridItem item = new org . eclipse . nebula . widgets . grid . GridItem ( grid , org . eclipse . swt . SWT . NONE ) ; "<AssertPlaceHolder>" ; } getForeground ( ) { checkWidget ( ) ; handleVirtual ( ) ; org . eclipse . swt . graphics . Color defaul...
org . junit . Assert . assertSame ( grid . getForeground ( ) , item . getForeground ( ) )
testNoItems ( ) { System . out . println ( "AvgAggregatorTest<sp>-<sp>No<sp>Items" ) ; org . calrissian . flowmix . api . aggregator . AvgAggregator instance = new org . calrissian . flowmix . api . aggregator . AvgAggregator ( ) ; instance . add ( ( ( long ) ( 33 ) ) ) ; instance . add ( ( ( long ) ( 33 ) ) ) ; instan...
org . junit . Assert . assertEquals ( expectedResult , result )
usage ( ) { java . lang . String [ ] args = new java . lang . String [ ] { } ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . io . PrintStream ps = new java . io . PrintStream ( baos ) ; java . lang . System . setOut ( ps ) ; opennlp . tools . cmdline . namefind . TokenNameF...
org . junit . Assert . assertEquals ( tool . getHelp ( ) , content . trim ( ) )
testCompoundStatusParentNotFinishedBecauseOfExpectedSubtasksMissing ( ) { com . box . l10n . mojito . entity . PollableTask createPollableTask = pollableTaskService . createPollableTask ( null , testIdWatcher . getEntityName ( "testCompoundStatusParentNotFinishedBecauseOfExpectedSubtasksMissing" ) , null , 1 ) ; pollab...
org . junit . Assert . assertFalse ( createPollableTask . isAllFinished ( ) )
testPopulateNonNullCollectionWithNonNullCollection ( ) { final java . util . Collection < org . springframework . roo . support . util . CollectionUtilsTest . Parent > originalCollection = new java . util . ArrayList < org . springframework . roo . support . util . CollectionUtilsTest . Parent > ( ) ; originalCollectio...
org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( child ) , result )
distributePortsWhileSweeping_givenTwoHierarchicalNodesInOneLayer ( ) { org . eclipse . elk . alg . layered . graph . Layer leftLayer = makeLayer ( getGraph ( ) ) ; org . eclipse . elk . alg . layered . graph . Layer rightLayer = makeLayer ( getGraph ( ) ) ; for ( int i = 0 ; i < 2 ; i ++ ) { org . eclipse . elk . alg ....
org . junit . Assert . assertThat ( leftOuterNode . getPorts ( ) , org . hamcrest . CoreMatchers . is ( expectedPortOrderLeftNode ) )
when_3instreams_then_pushAllIntoOutstream ( ) { com . hazelcast . jet . impl . execution . MockInboundStream instream1 = new com . hazelcast . jet . impl . execution . MockInboundStream ( 0 , mockInput . subList ( 0 , 4 ) , 4 ) ; com . hazelcast . jet . impl . execution . MockInboundStream instream2 = new com . hazelca...
org . junit . Assert . assertEquals ( new java . util . HashSet ( mockInput ) , new java . util . HashSet ( outstream1 . getBuffer ( ) ) )
shouldDeleteDeployment ( ) { org . camunda . bpm . model . bpmn . BpmnModelInstance instance = org . camunda . bpm . model . bpmn . Bpmn . createExecutableProcess ( "process" ) . startEvent ( ) . endEvent ( ) . done ( ) ; org . camunda . bpm . engine . repository . DeploymentWithDefinitions deployment = engineRule . ge...
org . junit . Assert . assertEquals ( 0 , count )
testNeuralNetConfigAPI ( ) { org . nd4j . linalg . lossfunctions . LossFunctions . LossFunction newLoss = org . nd4j . linalg . lossfunctions . LossFunctions . LossFunction . SQUARED_LOSS ; int newNumIn = ( numIn ) + 1 ; int newNumOut = ( numOut ) + 1 ; org . deeplearning4j . nn . weights . WeightInit newWeight = org ....
org . junit . Assert . assertFalse ( firstLayer . equals ( secondLayer ) )
testGetFirstNotAllowedCodePoint_null ( ) { java . lang . String testStr = null ; org . terasoluna . gfw . common . codepoints . Set < java . lang . Integer > allowedCodePointSet = new org . terasoluna . gfw . common . codepoints . HashSet < java . lang . Integer > ( ) ; int result = new org . terasoluna . gfw . common ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( CodePoints . NOT_FOUND ) )
addType_CD ( ) { java . lang . String preURI = "http://partsregistry.org" ; org . sbolstandard . core2 . SBOLDocument document1 = new org . sbolstandard . core2 . SBOLDocument ( ) ; document1 . setDefaultURIprefix ( preURI ) ; document1 . setTypesInURIs ( true ) ; java . util . HashSet < java . net . URI > types = new ...
org . junit . Assert . assertTrue ( TetR_promoter . addType ( ComponentDefinition . DNA_REGION ) )
testGetContentTypeFromInvalidFile ( ) { java . lang . String fieldName = com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) ; java . lang . String contentType = com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) ; java . lang . String fileName = com . lifera...
org . junit . Assert . assertNotNull ( fileItem )
testDeleteImageString ( ) { try { com . fit2cloud . aliyun . Response response = client . deleteImage ( "cn-beijing" , "m-25hgaq94m" ) ; System . out . println ( ( "testDeleteImageString<sp>::<sp>" + response ) ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . A...
org . junit . Assert . assertTrue ( true )
testBasicPathMatch2 ( ) { org . apache . ogt . http . impl . cookie . BasicClientCookie cookie = new org . apache . ogt . http . impl . cookie . BasicClientCookie ( "name" , "value" ) ; org . apache . ogt . http . cookie . CookieOrigin origin = new org . apache . ogt . http . cookie . CookieOrigin ( "somehost" , 80 , "...
org . junit . Assert . assertTrue ( h . match ( cookie , origin ) )
addByteBufferTest ( ) { com . ociweb . pronghorn . pipe . Pipe < com . ociweb . pronghorn . pipe . RawDataSchema > ring = new com . ociweb . pronghorn . pipe . Pipe < com . ociweb . pronghorn . pipe . RawDataSchema > ( config ) ; ring . initBuffers ( ) ; ring . reset ( 0 , 0 ) ; com . ociweb . pronghorn . pipe . Pipe ....
org . junit . Assert . assertEquals ( "HelloWorld" , target . toString ( ) )
testGetParametersWithDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . Long specOfferId = 1L ; org . lnu . is . domain . specoffer . SpecOffer specOffer = new org . lnu . is . domain . specoffer . SpecOffer ( ) ; specOffer . setId ( specOfferId ) ; java . lang . Long benef...
org . junit . Assert . assertEquals ( expected , actual )
testGetHostname ( ) { com . intel . mtwilson . util . net . Hostname hostname = new com . intel . mtwilson . util . net . Hostname ( "hostname" ) ; "<AssertPlaceHolder>" ; } getHostname ( ) { return hostname ; }
org . junit . Assert . assertEquals ( "hostname" , hostname . getHostname ( ) )
testEmptyStructure ( ) { final net . meisen . dissertation . model . data . DataStructure ds = new net . meisen . dissertation . model . data . DataStructure ( ) ; "<AssertPlaceHolder>" ; } getSize ( ) { return this . size ; }
org . junit . Assert . assertEquals ( 0 , ds . getSize ( ) )
appendJsonAttribute_good_case_notquoted_last ( ) { java . lang . StringBuilder stringBuilder = new java . lang . StringBuilder ( ) ; stringBuilder . append ( "prefix_" ) ; java . lang . String expResult = "prefix_\"keyname\":value" ; com . microsoft . azure . sdk . iot . service . Tools . appendJsonAttribute ( stringBu...
org . junit . Assert . assertEquals ( expResult , stringBuilder . toString ( ) )
testValidateListGood ( ) { java . util . List < tigase . xml . Element > items = new java . util . ArrayList < tigase . xml . Element > ( ) ; tigase . xmpp . impl . Authorization result = null ; items . add ( new tigase . xml . Element ( "item" , new java . lang . String [ ] { "type" , "value" , "action" , "order" } , ...
org . junit . Assert . assertEquals ( null , result )
manageOperationsProcess_VSERVER_STARTED ( ) { org . oscm . app . iaas . data . FlowState result = vServerProcessor . manageOperationsProcess ( "controllerId" , "instanceId" , paramHandler , FlowState . VSERVER_STARTED , null ) ; "<AssertPlaceHolder>" ; } manageOperationsProcess ( java . lang . String , java . lang . St...
org . junit . Assert . assertEquals ( FlowState . FINISHED , result )
panopticStoreOperationsHandlerGetAllDatabasesLogsException ( ) { when ( primaryDatabaseClient . get_all_databases ( ) ) . thenThrow ( new org . apache . thrift . TException ( ) ) ; when ( metaStoreMappingFederated . getClient ( ) ) . thenReturn ( federatedDatabaseClient ) ; when ( federatedDatabaseClient . get_all_data...
org . junit . Assert . assertThat ( handler . getAllDatabases ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
apply_A$BigDecimal ( ) { java . math . BigDecimal i_ = new java . math . BigDecimal ( 123 ) ; com . m3 . scalaflavor4j . SNum actual = com . m3 . scalaflavor4j . SNum . apply ( i_ ) ; "<AssertPlaceHolder>" ; } toInt ( ) { return value . intValue ( ) ; }
org . junit . Assert . assertThat ( actual . toInt ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 123 ) ) )
testValidateCompleteTestTree ( ) { final java . lang . String sessionId = java . lang . String . valueOf ( randomUUID ( ) ) ; final java . lang . String testId_1 = java . lang . String . valueOf ( randomUUID ( ) ) ; final java . lang . String testId_2 = java . lang . String . valueOf ( randomUUID ( ) ) ; fsmRegistry . ...
org . junit . Assert . assertTrue ( internalTreeRegistry . validateTestTree ( sessionId ) )
checkReleaseWithArgMethod ( ) { initFieldNameStrategy ( ) ; info . smart_tools . smartactors . iobject . iobject . IObject message = mock ( info . smart_tools . smartactors . iobject . iobject . IObject . class ) ; io . netty . handler . codec . http . FullHttpRequest request = new info . smart_tools . smartactors . te...
org . junit . Assert . assertNotNull ( request )
testExecute ( ) { org . eurekastreams . server . domain . SystemSettings settings = new org . eurekastreams . server . domain . SystemSettings ( ) ; org . eurekastreams . server . persistence . mappers . cache . testhelpers . SimpleMemoryCache cache = new org . eurekastreams . server . persistence . mappers . cache . t...
org . junit . Assert . assertSame ( settings , sut . execute ( null ) )
testCurrentWorkItem ( ) { final java . lang . String expectedWorkItem = "workItem" ; when ( plugin . getWorkItem ( ) ) . thenReturn ( expectedWorkItem ) ; final java . lang . String actualWorkItem = page . currentWorkItem ( ) ; verify ( plugin ) . getWorkItem ( ) ; "<AssertPlaceHolder>" ; } getWorkItem ( ) { return sel...
org . junit . Assert . assertEquals ( expectedWorkItem , actualWorkItem )
testExecute ( ) { System . out . println ( "execute" ) ; org . apache . jmeter . samplers . SampleResult previousResult = null ; org . apache . jmeter . samplers . Sampler currentSampler = null ; java . util . Collection < org . apache . jmeter . engine . util . CompoundVariable > parameters = new java . util . ArrayLi...
org . junit . Assert . assertTrue ( ( ! ( result1 . equals ( result2 ) ) ) )
testParseNegativeZ ( ) { java . lang . String source = ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343}" ; org . apache . commons . math4 . geometry . euclidean . twod . Vector2D expected = new org . apache . commons . math4 . geometry . euclidean . twod . Cartesian2D...
org . junit . Assert . assertEquals ( expected , actual )
readTillEnd ( ) { org . apache . maven . shared . filtering . BoundedReader mr = new org . apache . maven . shared . filtering . BoundedReader ( sr , 3 ) ; mr . mark ( 3 ) ; mr . read ( ) ; mr . read ( ) ; mr . read ( ) ; "<AssertPlaceHolder>" ; mr . close ( ) ; } read ( ) { if ( ( replaceIndex ) > 0 ) { return replace...
org . junit . Assert . assertEquals ( ( - 1 ) , mr . read ( ) )
testWALCoprocessorLoaded ( ) { org . apache . hadoop . hbase . regionserver . wal . AbstractFSWAL < ? > wal = null ; try { wal = newWAL ( org . apache . hadoop . hbase . regionserver . wal . AbstractTestFSWAL . FS , org . apache . hadoop . hbase . util . CommonFSUtils . getWALRootDir ( org . apache . hadoop . hbase . r...
org . junit . Assert . assertNotNull ( c )
testGetDataElementGroups ( ) { org . hisp . dhis . analytics . DataQueryParams params = org . hisp . dhis . analytics . DataQueryParams . newBuilder ( ) . withDataElementGroupSet ( degsA ) . withPeriods ( com . google . common . collect . Lists . newArrayList ( peA , peB ) ) . withOrganisationUnits ( com . google . com...
org . junit . Assert . assertEquals ( expected , params . getAllDataElementGroups ( ) )
shouldCloneEntity ( ) { final java . lang . String vertex = "vertex1" ; final java . lang . String propValue = "propValue" ; final uk . gov . gchq . gaffer . data . element . Entity entity = new uk . gov . gchq . gaffer . data . element . Entity ( uk . gov . gchq . gaffer . commonutil . TestGroups . ENTITY , vertex ) ;...
org . junit . Assert . assertEquals ( clone , entity )
testAge ( ) { person . setAge ( 30 ) ; "<AssertPlaceHolder>" ; } getAge ( ) { return age ; }
org . junit . Assert . assertEquals ( 30 , person . getAge ( ) )
oneIRI ( ) { org . apache . clerezza . commons . rdf . Graph mGraph = new org . apache . clerezza . commons . rdf . impl . utils . simple . SimpleGraph ( ) ; org . apache . clerezza . commons . rdf . IRI mbox1 = new org . apache . clerezza . commons . rdf . IRI ( "mailto:foo@example.org" ) ; final org . apache . clerez...
org . junit . Assert . assertEquals ( 3 , mGraph . size ( ) )
testBasic ( ) { setAuthType ( AuthType . BASIC , true ) ; boolean result = checkExpected ( "Authentication_API_BasicMainWindow" , "Successfully<sp>logged<sp>in" ) ; "<AssertPlaceHolder>" ; } getExpectedErrorMsg ( ) { return expectedErrorMsg ; }
org . junit . Assert . assertTrue ( getExpectedErrorMsg ( ) , result )
testGetCurrentSprint_notLoaded ( ) { sprintService . resetValues ( ) ; "<AssertPlaceHolder>" ; } getCurrentSprint ( ) { if ( ( sprintSelector . values ) == null ) { return null ; } for ( com . hp . alm . ali . idea . model . Entity sprint : sprintSelector . values ) { if ( com . hp . alm . ali . idea . services . Sprin...
org . junit . Assert . assertNull ( sprintService . getCurrentSprint ( ) )
testFilter_nothingPasses ( ) { org . calrissian . flowmix . api . Flow flow = new org . calrissian . flowmix . api . builder . FlowBuilder ( ) . id ( "myflow" ) . flowDefs ( ) . stream ( "stream1" ) . filter ( ) . filter ( new org . calrissian . flowmix . api . filter . CriteriaFilter ( criteriaFromNode ( new org . cal...
org . junit . Assert . assertEquals ( 0 , org . calrissian . flowmix . api . storm . bolt . MockSinkBolt . getEvents ( ) . size ( ) )
deveObterIdentificadorLocalComoFoiObtida ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNota nota = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNota ( ) ; final int identificadorLocal = 123456 ; nota . setIdentificadorLocal ( identificadorLocal ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( identificadorLocal , nota . getIdentificadorLocal ( ) , 0 )
testNoError ( ) { java . lang . String error = validator . validate ( "var<sp>a=1;<sp>var<sp>b<sp>=<sp>42+a;<sp>alert(b);" , null ) ; "<AssertPlaceHolder>" ; } validate ( java . lang . String , org . uberfire . ext . editor . commons . client . validation . ValidatorCallback ) { validateName ( name , new org . uberfire...
org . junit . Assert . assertNull ( error )
test_isSelected_Gets_Value_From_Pattern ( ) { mmarquee . automation . AutomationElement element = org . mockito . Mockito . mock ( mmarquee . automation . AutomationElement . class ) ; mmarquee . automation . pattern . SelectionItem selection = org . mockito . Mockito . mock ( mmarquee . automation . pattern . Selectio...
org . junit . Assert . assertTrue ( value )
testRemoveEverything ( ) { for ( java . lang . Class < ? extends org . apache . druid . collections . bitmap . MutableBitmap > clazz : org . apache . druid . collections . TestIntegerSet . clazzes ) { org . apache . druid . collections . bitmap . MutableBitmap wrappedBitmap = clazz . newInstance ( ) ; org . apache . dr...
org . junit . Assert . assertTrue ( isEmpty )
throwsIfCommandNameIsNotRecognized ( ) { org . openqa . selenium . remote . Command command = new org . openqa . selenium . remote . Command ( null , "garbage-command-name" ) ; try { codec . encode ( command ) ; org . junit . Assert . fail ( ) ; } catch ( org . openqa . selenium . UnsupportedCommandException expected )...
org . junit . Assert . assertThat ( expected . getMessage ( ) , org . hamcrest . Matchers . startsWith ( ( ( command . getName ( ) ) + "\n" ) ) )
shouldAppendGroupByClause ( ) { java . lang . String selectClause = uniqueString ( ) ; java . lang . String fromClause = uniqueString ( ) ; setupSelectAndFromClause ( selectClause , fromClause ) ; java . lang . String groupBy = uniqueString ( ) ; @ annis . sqlgen . SuppressWarnings ( "unchecked" ) annis . sqlgen . Grou...
org . junit . Assert . assertThat ( sql , org . hamcrest . CoreMatchers . is ( expected ) )
testUpdateUsers_NoProvOnInstance ( ) { final java . lang . String instanceId = createService ( ProvisioningStatus . COMPLETED ) ; final java . util . List < org . oscm . provisioning . data . User > users = new java . util . ArrayList ( ) ; final org . oscm . provisioning . data . BaseResult result = new org . oscm . p...
org . junit . Assert . assertEquals ( 0 , ur . getRc ( ) )
cube2eneWithBonds ( ) { org . openscience . cdk . group . AtomRefinable ar = make ( cubene ( ) , false ) ; org . openscience . cdk . group . EquitablePartitionRefiner refiner = new org . openscience . cdk . group . EquitablePartitionRefiner ( ar ) ; org . openscience . cdk . group . Partition finer = refiner . refine (...
org . junit . Assert . assertEquals ( expected , finer )
getReprovisionPolicyWorks ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . SymmetricKeyAttestation ) { tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . ReprovisionPolicy expectedReprovisionPolicy = new tests . unit . com . microsoft . azure...
org . junit . Assert . assertEquals ( expectedReprovisionPolicy , actualReprovisionPolicy )
testParseIntArray ( ) { java . lang . String str = "[1,<sp>2,<sp>3,<sp>4]" ; int [ ] a = new int [ ] { 1 , 2 , 3 , 4 } ; "<AssertPlaceHolder>" ; } parseIntArray ( java . lang . String ) { return mltk . util . ArrayUtils . parseIntArray ( str , "," ) ; }
org . junit . Assert . assertArrayEquals ( a , mltk . util . ArrayUtils . parseIntArray ( str ) )
testReadModifyWrite ( ) { prepareTestData ( ) ; failures . set ( 0 ) ; int numThreads = 100 ; concurrentExec ( new org . apache . hadoop . hbase . coprocessor . TestRowProcessorEndpoint . IncrementRunner ( ) , numThreads ) ; org . apache . hadoop . hbase . client . Get get = new org . apache . hadoop . hbase . client ....
org . junit . Assert . assertEquals ( ( ( numThreads + 1 ) - failureNumber ) , finalCounter )