input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testPagination ( ) { com . hm . achievement . command . pagination . CommandPagination pagination = new com . hm . achievement . command . pagination . CommandPagination ( toPaginate , 18 , langConfig ) ; java . util . List < java . lang . String > expected = java . util . Arrays . asList ( getPaginationHeader ( 1 , 4 ...
org . junit . Assert . assertEquals ( expected , result )
testGetEngineManager ( ) { org . eclipse . core . resources . IWorkspaceRoot workspaceRoot = org . eclipse . core . resources . ResourcesPlugin . getWorkspace ( ) . getRoot ( ) ; org . eclipse . core . resources . IProject theProject = workspaceRoot . getProject ( org . eclipse . thym . core . HybridProjectTest . PROJE...
org . junit . Assert . assertNotNull ( hProject . getEngineManager ( ) )
testRecursiveGeneric ( ) { class MergeableImpl implements com . google . auto . value . AutoValueTest . Mergeable < MergeableImpl > { @ com . google . auto . value . Override public MergeableImpl merge ( MergeableImpl other ) { return this ; } } MergeableImpl mergeable = new MergeableImpl ( ) ; com . google . auto . va...
org . junit . Assert . assertSame ( mergeable , instance . meta ( ) )
shouldCompareWithRankingYieldingANonZeroValueReturnThatValue ( ) { @ org . uma . jmetal . util . comparator . SuppressWarnings ( "unchecked" ) java . util . Comparator < org . uma . jmetal . solution . Solution < ? > > rankComparator = mock ( java . util . Comparator . class ) ; when ( rankComparator . compare ( any ( ...
org . junit . Assert . assertEquals ( 1 , comparator . compare ( solution1 , solution2 ) )
testBuildDefaultValidatorFactory ( ) { javax . validation . ValidatorFactory factory = javax . validation . Validation . buildDefaultValidatorFactory ( ) ; javax . validation . Validator validator = factory . getValidator ( ) ; "<AssertPlaceHolder>" ; } getValidator ( ) { return new org . hibernate . validator . engine...
org . junit . Assert . assertNotNull ( validator )
largeIndent ( ) { java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; com . dslplatform . json . PrettifyOutputStream prettifyStream = new com . dslplatform . json . PrettifyOutputStream ( out , PrettifyOutputStream . IndentType . TABS , 800 ) ; prettifyStream . write ( "[42]" . getBytes...
org . junit . Assert . assertEquals ( expected , out . toString ( ) )
reconnectData ( ) { org . terracotta . lease . LeaseReconnectData reconnectData = leaseAcquirer . getReconnectData ( ) ; "<AssertPlaceHolder>" ; } getConnectionSequenceNumber ( ) { return connectionSequenceNumber ; }
org . junit . Assert . assertEquals ( 0 , reconnectData . getConnectionSequenceNumber ( ) )
testThatLanguageIsEnglish ( ) { util . validator . LanguageChecker languageChecker = new util . validator . LanguageChecker ( ) ; java . lang . String expectedLanguage = "en" ; java . lang . String actualLanguage = languageChecker . getRecognisedLanguage ( "Find<sp>information<sp>on<sp>medical<sp>topics,<sp>symptoms,<s...
org . junit . Assert . assertEquals ( expectedLanguage , actualLanguage )
clearCacheAcceptedVerifyReturnValue ( ) { when ( chargePointService . clearCache ( any ( io . motown . ocpp . v15 . soap . chargepoint . ClearCacheRequest . class ) , eq ( io . motown . ocpp . v15 . soap . chargepoint . CHARGING_STATION_ID . getId ( ) ) ) ) . thenReturn ( getClearCacheResponse ( ClearCacheStatus . ACCE...
org . junit . Assert . assertTrue ( requestResult )
testEncodingAndDecoding ( ) { int randomLimit = 500 ; boolean success = true ; byte [ ] raw = new byte [ ( ( int ) ( ( java . lang . Math . random ( ) ) * randomLimit ) ) ] ; for ( int i = 0 ; i < ( raw . length ) ; ++ i ) { if ( ( i % 1024 ) < 256 ) raw [ i ] = ( ( byte ) ( i % 1024 ) ) ; else raw [ i ] = ( ( byte ) (...
org . junit . Assert . assertTrue ( success )
request_interceptor_used ( ) { com . amazon . ask . dispatcher . request . interceptor . RequestInterceptor requestInterceptor = mock ( com . amazon . ask . dispatcher . request . interceptor . RequestInterceptor . class ) ; builder . addRequestHandler ( mockRequestHandler ) ; builder . addRequestInterceptor ( requestI...
org . junit . Assert . assertEquals ( configuration . getRequestInterceptors ( ) . get ( 0 ) , requestInterceptor )
whenAnyActionDoTypeResult ( ) { chapter1 . jvm . Calculator calc = new chapter1 . jvm . Calculator ( "Hello<sp>world" ) ; java . lang . String message = "Hello<sp>world" ; java . lang . String result = calc . sayResult ( ) ; "<AssertPlaceHolder>" ; } sayResult ( ) { return result ; }
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( message ) )
testCommitOnLastOperator ( ) { com . github . davidmoten . rx . jdbc . Database db = db ( ) ; long count = db . beginTransaction ( ) . concatMap ( com . github . davidmoten . rx . Functions . constant ( rx . Observable . just ( 99 , 88 ) ) ) . doOnEach ( com . github . davidmoten . rx . RxUtil . log ( ) ) . compose ( d...
org . junit . Assert . assertEquals ( 3 , count )
testExportFeatures ( ) { "<AssertPlaceHolder>" ; } exportFeatures ( ) { return new org . ff4j . conf . XmlParser ( ) . exportFeatures ( getFeatureStore ( ) . readAll ( ) ) ; }
org . junit . Assert . assertNotNull ( ff4j . exportFeatures ( ) )
compliantUntilDateIsNullWhenNoInstalledProductsAndNoEntitlements ( ) { org . candlepin . model . Consumer consumer = mockConsumer ( ) ; org . candlepin . policy . js . compliance . ComplianceStatus status = compliance . getStatus ( consumer , new java . util . Date ( ) ) ; "<AssertPlaceHolder>" ; } getCompliantUntil ( ...
org . junit . Assert . assertNull ( status . getCompliantUntil ( ) )
testUnassignedParserRuleCall ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "Rule:<sp>Called;" ) ; _builder . newLine ( ) ; _builder . append ( "Called<sp>returns<sp>Sub:<sp>name=ID;" ) ; _builder . newLine ( ) ; final...
org . junit . Assert . assertEquals ( expected , actual )
ValidUUIDContentEncryptionKeyFromKeyIdentifierTest ( ) { java . util . UUID validUUID = java . util . UUID . randomUUID ( ) ; com . microsoft . windowsazure . services . media . implementation . templates . playreadylicense . ContentEncryptionKeyFromKeyIdentifier contentEncryptionKeyFromKeyIdentifier = new com . micros...
org . junit . Assert . assertEquals ( resultUUID , validUUID )
testIdEqObjectId ( ) { com . j256 . ormlite . stmt . WhereTest . FooId foo = new com . j256 . ormlite . stmt . WhereTest . FooId ( ) ; int id = 112132 ; foo . id = id ; com . j256 . ormlite . stmt . Where < com . j256 . ormlite . stmt . WhereTest . FooId , java . lang . Integer > where = new com . j256 . ormlite . stmt...
org . junit . Assert . assertEquals ( sb . toString ( ) , whereSb . toString ( ) )
serializationTestWithURI ( ) { org . apache . rya . api . domain . RyaSubGraph bundle = new org . apache . rya . api . domain . RyaSubGraph ( java . util . UUID . randomUUID ( ) . toString ( ) ) ; bundle . addStatement ( new org . apache . rya . api . domain . RyaStatement ( new org . apache . rya . api . domain . RyaI...
org . junit . Assert . assertEquals ( bundle , deserializedBundle )
testGetDoublesBiggerArray ( ) { com . eclipsesource . v8 . V8Array a = v8 . executeArrayScript ( "[1.1,2.2,3,4]" ) ; double [ ] result = new double [ 40 ] ; int size = a . getDoubles ( 0 , 4 , result ) ; "<AssertPlaceHolder>" ; a . close ( ) ; } executeArrayScript ( java . lang . String ) { return executeArrayScript ( ...
org . junit . Assert . assertEquals ( 4 , size )
testParseNonDefaultSetting ( ) { java . lang . String source = ( "[1" + ( getDecimalCharacter ( ) ) ) + "2323]" ; org . apache . commons . math4 . geometry . euclidean . oned . Vector1D expected = new org . apache . commons . math4 . geometry . euclidean . oned . Cartesian1D ( 1.2323 ) ; org . apache . commons . math4 ...
org . junit . Assert . assertEquals ( expected , actual )
testEquals09 ( ) { java . util . List < org . dresdenocl . modelinstancetype . types . IModelInstanceString > elements01 ; elements01 = new java . util . ArrayList < org . dresdenocl . modelinstancetype . types . IModelInstanceString > ( ) ; elements01 . add ( org . dresdenocl . modelinstancetype . types . base . Basis...
org . junit . Assert . assertFalse ( modelInstanceCollection01 . equals ( modelInstanceCollection02 ) )
testSetErrors ( ) { org . batfish . common . BatfishException exception = new org . batfish . common . BatfishException ( "sample<sp>exception" ) ; org . batfish . common . BatfishException . BatfishStackTrace stackTrace = new org . batfish . common . BatfishException . BatfishStackTrace ( exception ) ; java . util . S...
org . junit . Assert . assertThat ( _element . getErrors ( ) . get ( "error" ) , org . hamcrest . core . Is . is ( stackTrace ) )
test ( ) { cn . com . warlock . wisp . core . plugin . router . IWispRouter wispRouter = new cn . com . warlock . wisp . plugin . router . empty . WispRouterEmpty ( ) ; try { wispRouter . init ( ) ; wispRouter . start ( ) ; wispRouter . shutdown ( ) ; } catch ( cn . com . warlock . wisp . core . exception . WispRouterE...
org . junit . Assert . assertTrue ( false )
testIICellImg ( ) { final net . imglib2 . img . Img < net . imglib2 . type . numeric . integer . ByteType > in = generateByteTestCellImg ( true , 40 , 20 ) ; final net . imagej . ops . Op nullary = net . imagej . ops . special . computer . Computers . nullary ( ops , Ops . Math . Zero . class , net . imglib2 . type . n...
org . junit . Assert . assertEquals ( ps . get ( ) , 0 )
whenWriteMultipleLinesUsingCharSink_thenWritten ( ) { final java . util . List < java . lang . String > names = com . google . common . collect . Lists . newArrayList ( "John" , "Jane" , "Adam" , "Tom" ) ; final java . io . File file = new java . io . File ( "src/test/resources/test.out" ) ; final com . google . common...
org . junit . Assert . assertEquals ( expectedValue , result . trim ( ) )
checkId ( ) { java . util . Map < java . lang . String , java . lang . String [ ] > parameters = new java . util . HashMap < java . lang . String , java . lang . String [ ] > ( ) ; parameters . put ( "id" , new java . lang . String [ ] { "1" } ) ; jrds . webapp . ParamsBean pb = new jrds . webapp . ParamsBean ( jrds . ...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , pb . getId ( ) )
shouldReturnEmptyQueryOnEmptyListOfSmembers ( ) { when ( localParamsMock . get ( "command" ) ) . thenReturn ( "smembers" ) ; when ( localParamsMock . get ( "key" ) ) . thenReturn ( "simpleKey" ) ; when ( localParamsMock . get ( QueryParsing . V ) ) . thenReturn ( "string_field" ) ; when ( jedisMock . smembers ( anyStri...
org . junit . Assert . assertEquals ( 0 , terms . size ( ) )
shouldNotExecuteJsp ( ) { br . com . caelum . vraptor . test . VRaptorTestResult result = navigate ( ) . post ( "/test/test8" ) . withoutJsp ( ) . execute ( ) ; java . lang . String html = result . getResponseBody ( ) ; "<AssertPlaceHolder>" ; } getResponseBody ( ) { try { return response . getContentAsString ( ) ; } c...
org . junit . Assert . assertTrue ( html . isEmpty ( ) )
should_return_null_cause_if_buildcause_has_not_been_initialized ( ) { final com . groupon . jenkins . github . services . GithubRepositoryService githubRepositoryService = mock ( com . groupon . jenkins . github . services . GithubRepositoryService . class ) ; final com . groupon . jenkins . dynamic . build . DynamicBu...
org . junit . Assert . assertEquals ( BuildCause . NULL_BUILD_CAUSE , model . getBuildCause ( ) )
zouGeenMeldingMoetenGevenOmdatVoorvoegselsAndersZijn ( ) { betrokkenheden . add ( createOuderBetrokkenheidBericht ( "123" ) ) ; final nl . bzk . brp . model . objecttype . operationeel . PersoonModel eerderkindModel = mock ( nl . bzk . brp . model . objecttype . operationeel . PersoonModel . class ) ; createPathToEerde...
org . junit . Assert . assertThat ( meldingen . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
convertValue ( ) { eu . dnetlib . iis . common . schemas . ReportEntry reportEntry = new eu . dnetlib . iis . common . schemas . ReportEntry ( "report.key" , eu . dnetlib . iis . common . schemas . ReportEntryType . DURATION , "3842000" ) ; com . google . gson . JsonElement json = converter . convertValue ( reportEntry...
org . junit . Assert . assertEquals ( expectedJson , json )
shouldExecuteMapReduceViaJavaScriptInTask ( ) { org . infinispan . client . hotrod . RemoteCache remoteCache = org . infinispan . server . test . task . AbstractDistributedServerTaskIT . managers . get ( 1 ) . getCache ( DistributedJSExecutingServerTask . CACHE_NAME ) ; remoteCache . put ( 1 , "word1<sp>word2<sp>word3"...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
rootFileVersionNull ( ) { org . apache . taverna . scufl2 . ucfpackage . UCFPackage container = new org . apache . taverna . scufl2 . ucfpackage . UCFPackage ( ) ; container . setPackageMediaType ( UCFPackage . MIME_WORKFLOW_BUNDLE ) ; container . addResource ( "Hello<sp>there" , "helloworld.txt" , "text/plain" ) ; con...
org . junit . Assert . assertNull ( reloaded . getRootFileVersion ( "helloworld.txt" ) )
shouldNotFindAnythingWhenSearchingForNullUid ( ) { java . util . List < org . unitedinternet . cosmo . model . CollectionSubscription > subscriptions = this . subscriptionDao . findByTargetCollectionUid ( null ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( buffer . size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( subscriptions . isEmpty ( ) )
testLoadFromStream ( ) { java . lang . String path = "modelimport/keras/examples/mnist_mlp/mnist_mlp_tf_keras_1_model.h5" ; java . io . File root = testDir . newFolder ( ) ; final java . io . File f = new org . nd4j . linalg . io . ClassPathResource ( path ) . getTempFileFromArchive ( root ) ; try ( java . io . InputSt...
org . junit . Assert . assertNotNull ( model )
testComplementMap ( ) { int [ ] expected = new int [ ] { 0 , 3 , 4 , 5 } ; int [ ] input = new int [ ] { 1 , 2 } ; int size = ( expected . length ) + ( input . length ) ; int [ ] complement = com . splicemachine . utils . IntArrays . complementMap ( input , size ) ; "<AssertPlaceHolder>" ; } printArrays ( int [ ] , int...
org . junit . Assert . assertArrayEquals ( printArrays ( input , size , expected , complement ) , expected , complement )
testValue ( ) { java . util . Map < java . lang . String , java . lang . String > values = new java . util . HashMap ( ) ; values . put ( "foo" , "bar" ) ; final org . microbule . config . core . MapConfig config = new org . microbule . config . core . MapConfig ( values ) ; "<AssertPlaceHolder>" ; } value ( java . lan...
org . junit . Assert . assertEquals ( "bar" , config . value ( "foo" ) . get ( ) )
contentTypeShouldAddToNonResponse ( ) { serializationFuture . complete ( "hi" ) ; java . lang . String contentType = getResult ( com . spotify . apollo . route . Middlewares . replyContentType ( "text/plain" ) . apply ( serializationDelegate ( ) ) ) . header ( "Content-Type" ) . get ( ) ; "<AssertPlaceHolder>" ; } get ...
org . junit . Assert . assertThat ( contentType , org . hamcrest . CoreMatchers . equalTo ( "text/plain" ) )
testSkipListenerInvocationF ( ) { org . camunda . bpm . engine . test . bpmn . multiinstance . DelegateEvent . clearEvents ( ) ; org . camunda . bpm . engine . repository . ProcessDefinition processDefinition = testRule . deployAndGetDefinition ( modify ( instance ) . activityBuilder ( "user2" ) . camundaExecutionListe...
org . junit . Assert . assertEquals ( 0 , org . camunda . bpm . engine . test . bpmn . multiinstance . DelegateEvent . getEvents ( ) . size ( ) )
testGetLCSMatchMap ( ) { java . lang . String s1 = "Mr.<sp>John<sp>Smith-Murray<sp>died<sp>at<sp>Denver,<sp>CO." ; java . lang . String s2 = "Mr.<sp>John<sp>Smith<sp>-<sp>Murray<sp>died<sp>at<sp>Denver<sp>,<sp>CO<sp>." ; java . util . Map < java . lang . Integer , java . lang . Integer > match = edu . illinois . cs . c...
org . junit . Assert . assertEquals ( s1 . charAt ( i ) , s2 . charAt ( ( ( match . get ( ( i + 1 ) ) ) - 1 ) ) )
testIsQueryLimitReachedForNumberOfRowsGreaterQueryLimit ( ) { final org . pentaho . reporting . engine . classic . core . MasterReport report = new org . pentaho . reporting . engine . classic . core . MasterReport ( ) ; final javax . swing . table . DefaultTableModel model = new javax . swing . table . DefaultTableMod...
org . junit . Assert . assertEquals ( reportProcessor . isQueryLimitReached ( ) , true )
testPassiveScan ( ) { net . continuumsecurity . restyburp . ScanQueueMap sq ; driver . get ( HOMEPAGE ) ; driver . get ( LOGINPAGE ) ; login ( "bob" , "password" ) ; driver . get ( SEARCHPAGE ) ; net . continuumsecurity . restyburp . BurpServiceTest . burp . setConfig ( new net . continuumsecurity . burpclient . ScanPo...
org . junit . Assert . assertEquals ( 2 , net . continuumsecurity . restyburp . BurpServiceTest . burp . getIssues ( ) . size ( ) )
should_save_configuration_property_and_return_by_name ( ) { java . lang . String key = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( 10 ) ; java . lang . String val = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( 10 ) ; configurationService . save ( key , val ) ; java...
org . junit . Assert . assertThat ( savedVal , org . hamcrest . Matchers . equalTo ( val ) )
shouldReturnFalseWhenTT2OrTTBoosterDoseIsNotGiven ( ) { boolean didRuleSucceed = rule . apply ( new org . ei . drishti . util . SafeMap ( ) . put ( "ttDose" , "tt1" ) ) ; "<AssertPlaceHolder>" ; } put ( java . lang . String , java . lang . String ) { data . put ( key , value ) ; return this ; }
org . junit . Assert . assertFalse ( didRuleSucceed )
testGetRequest ( ) { gov . hhs . fha . nhinc . docretrieve . entity . OutboundDocRetrieveOrchestratable instance = new gov . hhs . fha . nhinc . docretrieve . entity . OutboundStandardDocRetrieveOrchestratable ( ) ; ihe . iti . xds_b . _2007 . RetrieveDocumentSetRequestType expResult = null ; ihe . iti . xds_b . _2007 ...
org . junit . Assert . assertEquals ( expResult , result )
testSetInstancesAddClass ( ) { org . eclipse . aether . impl . DefaultServiceLocator locator = new org . eclipse . aether . impl . DefaultServiceLocator ( ) ; locator . setServices ( java . lang . String . class , "one" , "two" ) ; locator . addService ( java . lang . String . class , java . lang . String . class ) ; "...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "one" , "two" , "" ) , locator . getServices ( java . lang . String . class ) )
testNonDefaultSetting ( ) { org . apache . commons . math4 . linear . RealMatrix m = org . apache . commons . math4 . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { 1 , 1 , 1 } , new double [ ] { 1 , 1 , 1 } } ) ; java . lang . String expected = "[1,<sp>1,<sp>1;<sp>1,<sp>1,<sp>1]" ; jav...
org . junit . Assert . assertEquals ( expected , actual )
addsConstantBinding ( ) { final org . eclipse . rdf4j . query . algebra . Projection projection = org . apache . rya . api . function . projection . ProjectionEvaluatorTest . getProjection ( ( "grandchild" 2 + ( ( ( "WHERE<sp>{" + "grandchild" 4 ) + "?child<sp><urn:hasChild><sp>?grandchild<sp>.<sp>" ) + "}" ) ) ) ; fin...
org . junit . Assert . assertEquals ( expected , result )
testSetAlarmStateAndHistory ( ) { java . lang . String metricName = ( this . getClass ( ) . getName ( ) ) + ( java . lang . System . currentTimeMillis ( ) ) ; com . amazonaws . services . cloudwatch . model . PutMetricAlarmRequest [ ] rqs = createTwoNewAlarms ( metricName ) ; com . amazonaws . services . cloudwatch . m...
org . junit . Assert . assertEquals ( 1 , historyResult . getAlarmHistoryItems ( ) . size ( ) )
testThree ( ) { int [ ] input = new int [ ] { 2180 , 8 , 8 , - 4 , 4 , 4 , - 4 , 4 , 0 , 4 , - 4 , 8 , 4 , 0 , 16 , 4 , 0 , 0 , - 4 , 4 , 20 , 4 , - 12 , 4 , 4 , 8 , - 8 , - 12 , - 4 , - 4 , 0 , 0 , 0 , 0 , 4 , 8 , 0 , 0 , 0 , 0 , 24 , 4 , - 8 , 24 , - 4 , - 5 , - 15 , - 6 , 4 , 8 , - 8 , - 16 , 15 , 10 , 0 , 0 , - 8 ,...
org . junit . Assert . assertArrayEquals ( output , input )
testWithImplementationHidingInstance ( ) { java . lang . Object actual = new com . picocontainer . PicoBuilder ( ) . withComponentFactory ( new com . picocontainer . behaviors . ImplementationHiding ( ) ) . build ( ) ; java . lang . Object expected = new com . picocontainer . DefaultPicoContainer ( parent , lifecycle ,...
org . junit . Assert . assertEquals ( toXml ( expected ) , toXml ( actual ) )
saveRole_shouldSaveGivenRoleToTheDatabase ( ) { org . openmrs . Role role = new org . openmrs . Role ( "new<sp>role" , "new<sp>desc" ) ; userService . saveRole ( role ) ; "<AssertPlaceHolder>" ; } getRole ( java . lang . String ) { return ( ( org . openmrs . Role ) ( sessionFactory . getCurrentSession ( ) . get ( org ....
org . junit . Assert . assertNotNull ( userService . getRole ( "new<sp>role" ) )
testCreateOKJobId ( ) { org . eclipse . kura . message . KuraPayload request = new org . eclipse . kura . message . KuraPayload ( ) ; request . addMetric ( DeploymentPackageOptions . METRIC_DP_NAME , "name" ) ; request . addMetric ( DeploymentPackageOptions . METRIC_JOB_ID , 123L ) ; org . eclipse . kura . core . deplo...
org . junit . Assert . assertEquals ( 123L , ( ( long ) ( options . getJobId ( ) ) ) )
testCreateWithCreationTypeNotNested ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . class ) ; final org . kie . workbench . common . dmn . client . editors . types . co...
org . junit . Assert . assertEquals ( expectedAffectedDataTypes , actualAffectedDataTypes )
testRemoveAndVerifyResult ( ) { com . sun . sgs . test . app . util . TestScalableList . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { com . sun . sgs . app . util . ScalableList < java . lang . ...
org . junit . Assert . assertEquals ( "B" , obj . toString ( ) )
sa04_Query_onPojo_value ( ) { org . apache . juneau . rest . annotation2 . ParameterInfo x = org . apache . juneau . rest . annotation2 . QueryAnnotationTest . sa . getParameterInfo ( "/sa04" , "get" , "query" , "Q" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return "exit" ; }
org . junit . Assert . assertEquals ( "Q" , x . getName ( ) )
should_throw_error_if_iterable_is_null ( ) { thrown . expect ( org . fest . util . NullPointerException . class ) ; java . lang . Iterable < ? > elements = null ; "<AssertPlaceHolder>" ; } newArrayList ( T [ ] ) { org . fest . util . Preconditions . checkNotNull ( elements ) ; java . util . ArrayList < T > list = org ....
org . junit . Assert . assertNull ( org . fest . util . Lists . newArrayList ( elements ) )
testWrite ( ) { @ org . jetbrains . annotations . NotNull net . openhft . chronicle . wire . Wire wire = createWire ( ) ; wire . write ( ) ; wire . write ( ) ; wire . write ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( "NestedClass{" + "text='" ) + ( text ) ) + '\'' ) + ",<sp>number=" ) + ( number ) )...
org . junit . Assert . assertEquals ( "" , wire . toString ( ) )
testAppendByteBuffer ( ) { byte [ ] testData = runtime . getMethodName ( ) . getBytes ( org . apache . bookkeeper . client . api . UTF_8 ) ; handle . writeAsync ( entryId , java . nio . ByteBuffer . wrap ( testData , 1 , ( ( testData . length ) / 2 ) ) ) ; byte [ ] expectedData = new byte [ ( testData . length ) / 2 ] ...
org . junit . Assert . assertArrayEquals ( expectedData , bufferData )
readsMaxCacheFromConfiguration ( ) { final org . everrest . core . impl . EverrestConfiguration configuration = new org . everrest . core . impl . EverrestConfiguration ( ) ; configuration . setAsynchronousCacheSize ( 123 ) ; asynchronousJobPool = new org . everrest . core . impl . async . AsynchronousJobPool ( configu...
org . junit . Assert . assertEquals ( 123 , asynchronousJobPool . getMaxCacheSize ( ) )
shouldRejectInvalidIPv4Address ( ) { org . openstack . atlas . docs . loadbalancers . api . v1 . Node node1 = new org . openstack . atlas . docs . loadbalancers . api . v1 . Node ( ) ; node1 . setAddress ( "0.0.0.0" ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate...
org . junit . Assert . assertFalse ( result . passedValidation ( ) )
testNodeTypeOutNoURIFilterNoAction ( ) { org . hawkular . apm . api . model . config . CollectorConfiguration cc = new org . hawkular . apm . api . model . config . CollectorConfiguration ( ) ; org . hawkular . apm . api . model . config . txn . TransactionConfig btc = new org . hawkular . apm . api . model . config . ...
org . junit . Assert . assertFalse ( service . hasProperty ( "test" ) )
getVersionGetsNullIfNotPresent ( ) { java . lang . String validString = "$iothub/twin/res/?$rid=7" ; com . microsoft . azure . sdk . iot . device . transport . mqtt . TopicParser testParser = new com . microsoft . azure . sdk . iot . device . transport . mqtt . TopicParser ( validString ) ; java . lang . String version...
org . junit . Assert . assertNull ( version )
removeEvidenceRemovesEvidenceFromTheDispute ( ) { java . lang . String disputeId = createSampleDispute ( ) . getId ( ) ; java . lang . String evidenceId = gateway . dispute ( ) . addTextEvidence ( disputeId , "text<sp>evidence" ) . getTarget ( ) . getId ( ) ; com . braintreegateway . Result < com . braintreegateway . D...
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
testIntronicThreePrimeOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t59012355\t.\tN\t<INS:ME>\t.\t.\tSVTYPE=INS;END=59012355" ) ; final java . lang . String expected = "1\t59012355\t.\tN\t<INS:ME>\t.\t.\tEND=59012355;" + ( "SVANN=insertion&5_prime_UTR_intron_variant&mobile...
org . junit . Assert . assertEquals ( expected , actual )
testGetId_1 ( ) { org . jinstagram . entity . users . feed . MediaFeedData fixture = new org . jinstagram . entity . users . feed . MediaFeedData ( ) ; fixture . setId ( "" ) ; fixture . setCreatedTime ( "" ) ; fixture . setVideos ( new org . jinstagram . entity . common . Videos ( ) ) ; fixture . setCaption ( new org ...
org . junit . Assert . assertEquals ( "" , result )
testParse2 ( ) { net . openhft . chronicle . wire . TextWireTest . MyDto myDto1 = new net . openhft . chronicle . wire . TextWireTest . MyDto ( ) ; myDto1 . strings . add ( "hello" ) ; myDto1 . strings . add ( "world" ) ; java . lang . String cs = myDto1 . toString ( ) ; System . out . println ( cs ) ; net . openhft . ...
org . junit . Assert . assertEquals ( cs , o . toString ( ) )
validate_statusIsSet_valid ( ) { confirmation . setStatus ( UpdateStatus . Accepted ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; }
org . junit . Assert . assertThat ( confirmation . validate ( ) , org . hamcrest . CoreMatchers . equalTo ( true ) )
writeHeartbeatMessage ( ) { cocaine . message . Message msg = cocaine . message . Messages . heartbeat ( ) ; byte [ ] bytes = pack . write ( java . util . Arrays . asList ( 1 , 0 , java . util . Arrays . asList ( ) ) ) ; byte [ ] result = pack . write ( msg , cocaine . msgpack . MessageTemplate . getInstance ( ) ) ; "<...
org . junit . Assert . assertArrayEquals ( bytes , result )
should_addGenerationUnit ( ) { p . addGenerationUnit ( u ) ; "<AssertPlaceHolder>" ; } getSubGenerationUnitsAsList ( ) { java . util . List < ch . puzzle . itc . mobiliar . business . generator . control . extracted . templates . GenerationUnit > gus = new java . util . ArrayList < ch . puzzle . itc . mobiliar . busine...
org . junit . Assert . assertEquals ( 1 , p . getSubGenerationUnitsAsList ( ) . size ( ) )
testGetJulianDate ( ) { org . esa . snap . core . datamodel . ProductData . UTC utc = ProductData . UTC . parse ( "12-10-2006" , "dd-MM-yyyy" ) ; org . esa . s3tbx . meris . radiometry . equalization . EqualizationAlgorithm algorithm = new org . esa . s3tbx . meris . radiometry . equalization . EqualizationAlgorithm ( ...
org . junit . Assert . assertEquals ( expectedJD , algorithm . getJulianDate ( ) )
testSerialization ( ) { org . jfree . chart . axis . ColorBar a1 = new org . jfree . chart . axis . ColorBar ( "Test<sp>Axis" ) ; org . jfree . chart . axis . ColorBar a2 = ( ( org . jfree . chart . axis . ColorBar ) ( org . jfree . chart . TestUtilities . serialised ( a1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( ...
org . junit . Assert . assertEquals ( a1 , a2 )
testInitialiseWithClass ( ) { org . mule . runtime . core . api . object . AbstractObjectFactory factory = getUninitialisedObjectFactory ( ) ; factory . setObjectClass ( java . lang . Object . class ) ; ( ( org . mule . runtime . core . internal . context . MuleContextWithRegistry ) ( muleContext ) ) . getRegistry ( ) ...
org . junit . Assert . assertNotNull ( factory . getInstance ( muleContext ) )
testSearchResourceReferenceOnlyCorrectPath ( ) { org . hl7 . fhir . instance . model . api . IIdType oid1 ; { ca . uhn . fhir . jpa . dao . r4 . Organization org = new ca . uhn . fhir . jpa . dao . r4 . Organization ( ) ; org . setActive ( true ) ; oid1 = myOrganizationDao . create ( org , mySrd ) . getId ( ) . toUnqua...
org . junit . Assert . assertThat ( ids , contains ( tid1 ) )
testDoHealthChecks ( ) { org . talend . components . jms . JmsDatastoreProperties props = new org . talend . components . jms . JmsDatastoreProperties ( "test" ) ; props . serverUrl . setValue ( "tcp://localhost:61616" ) ; datastoreRuntime . initialize ( null , props ) ; java . lang . Iterable < org . talend . daikon ....
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( ValidationResult . OK ) , healthResult )
testNonRoutedExtraction ( ) { final org . opendaylight . mdsal . binding . dom . adapter . ContextReferenceExtractor extractor = org . opendaylight . mdsal . binding . dom . adapter . ContextReferenceExtractor . from ( org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns . yang . controller . m...
org . junit . Assert . assertNull ( extractedValue )
testEvaluate6 ( ) { com . huawei . streaming . expression . RelationExpression relationExpression = new com . huawei . streaming . expression . RelationExpression ( ExpressionOperator . NOT_EQUAL , new com . huawei . streaming . expression . ConstExpression ( com . huawei . streaming . support . SupportConst . I_TWO ) ...
org . junit . Assert . assertTrue ( ( ( java . lang . Boolean ) ( actualResult ) ) )
testAvailability ( ) { setUp ( org . codice . ddf . spatial . ogc . wfs . v1_0_0 . catalog . source . WfsSourceTest . NO_PROPERTY_SCHEMA , null , null , org . codice . ddf . spatial . ogc . wfs . v1_0_0 . catalog . source . WfsSourceTest . ONE_FEATURE , null ) ; "<AssertPlaceHolder>" ; } isAvailable ( ) { return isAvai...
org . junit . Assert . assertTrue ( source . isAvailable ( ) )
testEquals ( ) { org . jfree . data . time . Day day1 = new org . jfree . data . time . Day ( 29 , org . jfree . date . MonthConstants . MARCH , 2002 ) ; org . jfree . data . time . Day day2 = new org . jfree . data . time . Day ( 29 , org . jfree . date . MonthConstants . MARCH , 2002 ) ; "<AssertPlaceHolder>" ; } equ...
org . junit . Assert . assertTrue ( day1 . equals ( day2 ) )
runCommand ( ) { org . bson . Document runCommand = com . ibm . profiler . mongo . ProfiledMongoClientTest . db . runCommand ( new org . bson . Document ( "buildInfo" , 1 ) ) ; runCommand = com . ibm . profiler . mongo . ProfiledMongoClientTest . db . runCommand ( new org . bson . Document ( "buildInfo" , 1 ) , org . b...
org . junit . Assert . assertNotNull ( runCommand )
testOutdated ( ) { logger . info ( "testOutdated" ) ; io . fabric8 . kubernetes . client . KubernetesClient client = server . getClient ( ) . inNamespace ( "test" ) ; server . expect ( ) . withPath ( path ) . andReturn ( 200 , "Failed<sp>WebSocket<sp>Connection" ) . once ( ) ; server . expect ( ) . withPath ( path ) . ...
org . junit . Assert . assertTrue ( onCloseCalled [ 0 ] )
assetGetReturnsExpectedUri ( ) { java . lang . String expectedUri = java . lang . String . format ( "Assets('%s')" , java . net . URLEncoder . encode ( com . microsoft . windowsazure . services . media . models . AssetEntityTest . sampleAssetId , "UTF-8" ) ) ; com . microsoft . windowsazure . services . media . entityo...
org . junit . Assert . assertEquals ( expectedUri , getter . getUri ( ) )
testParseCatalogXML ( ) { java . io . File resource = getResource ( "owl-mirror.txt" ) ; java . io . InputStream inputStream = new java . io . FileInputStream ( resource ) ; java . io . File parentFolder = resource . getParentFile ( ) ; java . util . Map < org . semanticweb . owlapi . model . IRI , org . semanticweb . ...
org . junit . Assert . assertTrue ( ( ( mappings . size ( ) ) == 2 ) )
testPersistence ( ) { java . lang . System . setProperty ( "grid.buffer" , "10" ) ; reset ( additionsChannel , replayChannel , locksChannel ) ; it . redhat . hacep . rules . TestPersistence . logger . info ( "Start<sp>test<sp>serialized<sp>rules" ) ; it . redhat . hacep . cluster . RulesConfigurationTestImpl rulesConfi...
org . junit . Assert . assertTrue ( ( o instanceof it . redhat . hacep . cache . session . HAKieSerializedSession ) )
asyncServiceInvocationShouldRunAsynchronouslyWithMethodCalll ( ) { java . util . concurrent . Future < java . lang . String > response = ping . ping ( "foo" ) ; server . setResponse ( "bar" ) ; "<AssertPlaceHolder>" ; } get ( ) { return instance ; }
org . junit . Assert . assertEquals ( "bar" , response . get ( ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . asset . kernel . model . AssetEntry newAssetEntry = addAssetEntry ( ) ; com . liferay . asset . kernel . model . AssetEntry existingAssetEntry = _persistence . findByPrimaryKey ( newAssetEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return...
org . junit . Assert . assertEquals ( existingAssetEntry , newAssetEntry )
testBuildDeploymentCamelContextCustomBuilder ( ) { when ( runtimeManager . getIdentifier ( ) ) . thenReturn ( identifier ) ; when ( runtimeManager . getEnvironment ( ) ) . thenReturn ( runtimeEnvironment ) ; org . kie . api . runtime . Environment environment = org . kie . api . KieServices . get ( ) . newEnvironment (...
org . junit . Assert . assertNull ( context )
testSearchByNameAndDescription1 ( ) { addDisplayTemplate ( com . liferay . dynamic . data . mapping . service . test . DDMTemplateLocalServiceTest . _classNameId , 0 , com . liferay . dynamic . data . mapping . service . test . DDMTemplateLocalServiceTest . _resourceClassNameId , "Event" , "Event" , WorkflowConstants ....
org . junit . Assert . assertEquals ( templates . toString ( ) , 2 , templates . size ( ) )
testNullKey ( ) { com . ibm . ws . microprofile . openapi . impl . model . security . SecurityRequirementImpl securityRequirement = new com . ibm . ws . microprofile . openapi . impl . model . security . SecurityRequirementImpl ( ) ; com . ibm . ws . microprofile . openapi . impl . model . security . SecuritySchemeImpl...
org . junit . Assert . assertEquals ( 1 , vh . getEventsSize ( ) )
testBuildWithParametersAndDisabledDefaultConstaints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String name = "name" ; java . lang . String abbrName = "abbr<sp>name" ; org . lnu . is . domain . department . type . DepartmentType context = new org . lnu . is . domain . department . ty...
org . junit . Assert . assertEquals ( expected , actualQuery )
testCountStringEmptyArray ( ) { java . lang . String [ ] array = new java . lang . String [ ] { } ; "<AssertPlaceHolder>" ; } count ( T [ ] , java . util . function . Predicate ) { return com . liferay . portal . kernel . util . ArrayUtil . count ( array , predicate ) ; }
org . junit . Assert . assertEquals ( 0 , com . liferay . portal . kernel . util . ArrayUtil . count ( array , ( s ) -> true ) )
isReadOnly_readOnlyNullable_returnsTrue ( ) { com . vaadin . v7 . data . util . sqlcontainer . ColumnProperty cp = new com . vaadin . v7 . data . util . sqlcontainer . ColumnProperty ( "NAME" , true , true , true , false , "Ville" , java . lang . String . class ) ; "<AssertPlaceHolder>" ; } isReadOnly ( ) { java . lang...
org . junit . Assert . assertTrue ( cp . isReadOnly ( ) )
coercingAppleSourcePathsWithFlags ( ) { java . lang . reflect . Type type = com . facebook . buck . rules . coercer . TypeCoercerTest . TestFields . class . getField ( "listOfSourcesWithFlags" ) . getGenericType ( ) ; com . facebook . buck . rules . coercer . TypeCoercer < ? > coercer = typeCoercerFactory . typeCoercer...
org . junit . Assert . assertEquals ( expectedResult , result )
testBNode ( ) { org . eclipse . rdf4j . query . algebra . Extension extension = new org . eclipse . rdf4j . query . algebra . Extension ( new org . eclipse . rdf4j . query . algebra . SingletonSet ( ) , new org . eclipse . rdf4j . query . algebra . ExtensionElem ( new org . eclipse . rdf4j . query . algebra . Var ( "x"...
org . junit . Assert . assertEquals ( expected , visitor . getConsequents ( ) )
loginUsingKeytab ( ) { java . io . File keytabFile = generateKeytab ( keytabFileName , principal ) ; javax . security . auth . Subject subject = org . smartdata . utils . SecurityUtil . loginUsingKeytab ( principal , keytabFile ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "Login<sp>successful<sp>for<sp>user:<...
org . junit . Assert . assertEquals ( principal , subject . getPrincipals ( ) . iterator ( ) . next ( ) . getName ( ) )
testGetNextTermBegin_FixedTerms_Months ( ) { java . util . Date startDate = java . util . Date . from ( java . time . ZonedDateTime . ofLocal ( java . time . LocalDate . of ( 2016 , 9 , 23 ) . atStartOfDay ( ) , java . time . ZoneId . systemDefault ( ) , null ) . toInstant ( ) ) ; contract . setStartDate ( startDate ) ...
org . junit . Assert . assertEquals ( expected , actual )
testClearProfile ( ) { final org . pac4j . cas . profile . CasRestProfile profile = new org . pac4j . cas . profile . CasRestProfile ( ID , USERNAME ) ; profile . clearSensitiveData ( ) ; "<AssertPlaceHolder>" ; } getTicketGrantingTicketId ( ) { return ( ( java . lang . String ) ( getAttribute ( org . pac4j . cas . pro...
org . junit . Assert . assertNull ( profile . getTicketGrantingTicketId ( ) )
testGenerateAclXmlSpec ( ) { scott . barleydb . api . specification . SpecRegistry registry = new scott . barleydb . api . specification . SpecRegistry ( ) ; scott . barleydb . build . specification . staticspec . processor . StaticDefinitionProcessor processor = new scott . barleydb . build . specification . staticspe...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( data1 , data2 ) )
testDoGetDSWFilesAsDownload ( ) { java . util . Map < java . lang . String , java . io . InputStream > mockFileData = mock ( java . util . Map . class ) ; org . pentaho . agilebi . modeler . ModelerWorkspace mockModelerWorkspace = mock ( org . pentaho . agilebi . modeler . ModelerWorkspace . class ) ; org . pentaho . p...
org . junit . Assert . assertEquals ( mockFileData , response )