input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
runtime_context ( ) { java . lang . String target = new java . io . File ( getAsakusaHome ( ) , ProcessHadoopScriptHandler . PATH_EXECUTE ) . getAbsolutePath ( ) ; java . io . File shell = putScript ( "environment.sh" , new java . io . File ( target ) ) ; com . asakusafw . yaess . core . HadoopScript script = new com ....
org . junit . Assert . assertThat ( RuntimeContext . DEFAULT . apply ( map ) , is ( rc ) )
jsonResponseShouldBeParsedObject ( ) { java . lang . String responseBody = "{\"name\":\"Hello<sp>World\"}" ; responseProvider . expect ( com . github . kristofa . test . http . Method . GET , "/" ) . respondWith ( 200 , "application/json" , responseBody ) ; com . navercorp . volleyextensions . volleyer . mock . Respons...
org . junit . Assert . assertNotNull ( person . name )
testSetInvalidPattern ( ) { org . opencastproject . dictionary . regexp . DictionaryServiceImpl service = new org . opencastproject . dictionary . regexp . DictionaryServiceImpl ( ) ; java . lang . String pattern = service . getPattern ( ) ; service . setPattern ( "*[[[[" ) ; "<AssertPlaceHolder>" ; } getPattern ( ) { ...
org . junit . Assert . assertEquals ( pattern , service . getPattern ( ) )
shouldParseNamedPropertyWithExpression ( ) { java . lang . String scriptFragment = "property<sp>location<sp>${expression}" ; org . kaazing . k3po . lang . internal . parser . ScriptParserImpl parser = new org . kaazing . k3po . lang . internal . parser . ScriptParserImpl ( ) ; javax . el . ExpressionFactory factory = p...
org . junit . Assert . assertEquals ( expected , actual )
constructorString_write_allowOverwriteTrue ( ) { java . io . File sourceFile = new java . io . File ( "test-resources/Thumbnailator/grid.png" ) ; java . io . File f = new java . io . File ( net . coobird . thumbnailator . tasks . io . FileImageSinkTest . TMPDIR , "tmp-grid.png" ) ; net . coobird . thumbnailator . TestU...
org . junit . Assert . assertTrue ( f . exists ( ) )
testElasticStingToDate ( ) { java . lang . String dateString = "2017/12/28<sp>20:38:32" ; java . util . Date actDate = il . co . topq . difido . DateTimeConverter . fromElasticString ( dateString ) . toDateObject ( ) ; java . util . Date expDate = new java . text . SimpleDateFormat ( "yyyy/MM/dd<sp>HH:mm:ss" ) . parse ...
org . junit . Assert . assertEquals ( actDate . getTime ( ) , expDate . getTime ( ) )
testDocSample ( ) { com . aliyuncs . ecs . model . v20140526 . DescribeInstancesRequest request = new com . aliyuncs . ecs . model . v20140526 . DescribeInstancesRequest ( ) ; request . setSysEndpoint ( "ecs-cn-hangzhou.aliyuncs.com" ) ; com . aliyuncs . ecs . model . v20140526 . DescribeInstancesResponse response = th...
org . junit . Assert . assertTrue ( ( ( response . getInstances ( ) . size ( ) ) > 0 ) )
testOffer2 ( ) { java . lang . String dir = "/testOffer2" ; java . lang . String testString = "Hello<sp>World" ; final int num_clients = 2 ; org . apache . zookeeper . ZooKeeper [ ] clients = new org . apache . zookeeper . ZooKeeper [ num_clients ] ; org . apache . zookeeper . recipes . queue . DistributedQueue [ ] que...
org . junit . Assert . assertEquals ( new java . lang . String ( dequeuedBytes ) , testString )
testLookupAbsoluteParentWhenParentIsStructure ( ) { final java . lang . String referenceUUID = "referenceUUID" ; final org . kie . workbench . common . dmn . api . definition . v1_1 . ItemDefinition parent = mock ( org . kie . workbench . common . dmn . api . definition . v1_1 . ItemDefinition . class ) ; when ( parent...
org . junit . Assert . assertEquals ( expectedParent , actualParent )
testShortMask ( ) { short [ ] orgPixels = new short [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } ; short [ ] expectedPixels = java . util . Arrays . copyOf ( orgPixels , orgPixels . length ) ; expectedPixels [ 2 ] = - 1 ; expectedPixels [ 7 ] = - 1 ; java . nio . ShortBuffer expectedPixelBuffer = java . nio . ShortBuf...
org . junit . Assert . assertEquals ( expectedPixels [ index ] , actualPixelBuffer . get ( ) )
createTimer_MaxDeviation ( ) { org . oscm . domobjects . TimerProcessing result = runTX ( new java . util . concurrent . Callable < org . oscm . domobjects . TimerProcessing > ( ) { @ org . oscm . timerservice . bean . Override public org . oscm . domobjects . TimerProcessing call ( ) throws org . oscm . timerservice ....
org . junit . Assert . assertNull ( result )
WARNIsPlusOne ( ) { com . pawelmaslyk . gerritintegration4sonar . sonar . SonarAnalysisStatus result = SonarAnalysisStatus . WARNINGS ; int approval = result . getApproval ( ) ; "<AssertPlaceHolder>" ; } getApproval ( ) { return approval ; }
org . junit . Assert . assertEquals ( ( - 1 ) , approval )
testUpsertWithDeferredIdAllocation_LongId ( ) { com . jmethods . catatumbo . DatastoreBatch batch = com . jmethods . catatumbo . DatastoreBatchTest . em . newBatch ( ) ; com . jmethods . catatumbo . entities . LongId entity = new com . jmethods . catatumbo . entities . LongId ( ) ; entity . setField1 ( "Batch<sp>Upsert...
org . junit . Assert . assertTrue ( ( ( response . getGeneratedKeys ( ) . size ( ) ) == 1 ) )
testEmptyVariableWidthVector ( ) { final org . apache . drill . exec . record . BatchSchema schema = new org . apache . drill . exec . record . metadata . SchemaBuilder ( ) . add ( "key" , MinorType . INT ) . add ( "value" , MinorType . VARCHAR ) . build ( ) ; final org . apache . drill . test . rowSet . RowSetBuilder ...
org . junit . Assert . assertEquals ( 0 , totalDataSize )
testGetSort ( ) { column . setSort ( SWT . DOWN ) ; "<AssertPlaceHolder>" ; } getSort ( ) { checkWidget ( ) ; return sortStyle ; }
org . junit . Assert . assertEquals ( SWT . DOWN , column . getSort ( ) )
testStdev0 ( ) { double [ ] [ ] ind = new double [ ] [ ] { new double [ ] { 5.1 , 3.5 , 1.4 } , new double [ ] { 4.9 , 3.0 , 1.4 } , new double [ ] { 4.7 , 3.2 , 1.3 } } ; org . nd4j . linalg . api . ndarray . INDArray in = org . nd4j . linalg . factory . Nd4j . create ( ind ) ; org . nd4j . linalg . api . ndarray . IN...
org . junit . Assert . assertEquals ( exp , stdev )
testNoCandidateFunctions ( ) { completer . addCandidateFunction ( "FREUD" ) ; completer . addCandidateFunction ( "FRIEND" ) ; completer . addCandidateFunction ( "FOE" ) ; java . lang . Iterable < java . lang . String > result = completer . autoComplete ( "G" ) ; java . util . List < java . lang . String > completes = c...
org . junit . Assert . assertEquals ( 0 , completes . size ( ) )
testRetryAWSConnectivity ( ) { final java . util . concurrent . atomic . AtomicInteger counter = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; invoker . retry ( "test" , null , false , ( ) -> { if ( ( counter . incrementAndGet ( ) ) < ( org . apache . hadoop . fs . s3a . TestInvoker . ACTIVE_RETRY_LIMIT...
org . junit . Assert . assertEquals ( org . apache . hadoop . fs . s3a . TestInvoker . ACTIVE_RETRY_LIMIT , counter . get ( ) )
testIsStartedShouldNotThrowOnNonStartedComponent ( ) { com . picocontainer . DefaultPicoContainer cont = new com . picocontainer . DefaultPicoContainer ( ) ; cont . as ( Characteristics . CACHE ) . addComponent ( com . picocontainer . defaults . issues . Issue0353TestCase . FooStartable . class ) ; com . picocontainer ...
org . junit . Assert . assertFalse ( cached . isStarted ( ) )
testCapacitySchedulerJobWhenConfigureCustomResourceType ( ) { org . apache . hadoop . yarn . util . resource . ResourceUtils . resetResourceTypes ( ) ; java . lang . String resourceTypesFileName = "resource-types-test.xml" ; java . io . File source = new java . io . File ( conf . getClassLoader ( ) . getResource ( reso...
org . junit . Assert . assertEquals ( 2 , schedulerApp1 . getLiveContainers ( ) . size ( ) )
testAssignOffset ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . ones ( 5 , 5 ) ; org . nd4j . linalg . api . ndarray . INDArray row = arr . slice ( 1 ) ; row . assign ( 1 ) ; "<AssertPlaceHolder>" ; } ones ( int [ ] ) { if ( ( shape . length ) == 0 ) return org . nd4j ...
org . junit . Assert . assertEquals ( org . nd4j . linalg . factory . Nd4j . ones ( 5 ) , row )
testEqualsSelf ( ) { org . jfree . data . time . Hour hour = new org . jfree . data . time . Hour ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . jfree . data . xy . YWithXInterval ) ) { return false ; } org . jfree . data . xy . Y...
org . junit . Assert . assertTrue ( hour . equals ( hour ) )
testDefaultSize ( ) { com . plexobject . rbac . cache . CachedMap < java . lang . String , java . lang . String > cache = new com . plexobject . rbac . cache . CachedMap < java . lang . String , java . lang . String > ( ) ; for ( int i = 0 ; i < ( ( CachedMap . MAX_ITEMS ) * 2 ) ; i ++ ) { cache . put ( ( "key" + i ) ,...
org . junit . Assert . assertEquals ( CachedMap . MAX_ITEMS , cache . size ( ) )
testAssignability1 ( ) { java . util . Set < javax . enterprise . inject . spi . Bean < ? > > beans = beanManager . getBeans ( new javax . enterprise . util . TypeLiteral < org . jboss . weld . tests . assignability . Dao < org . jboss . weld . tests . assignability . Order > > ( ) { } . getType ( ) ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( 1 , beans . size ( ) )
testUpdateTrustBundleSigningCertificate_exceptionInQuery_assertException ( ) { final javax . persistence . EntityManager manager = mock ( javax . persistence . EntityManager . class ) ; doThrow ( new java . lang . RuntimeException ( "Just<sp>Passing<sp>Through" ) ) . when ( manager ) . createQuery ( ( ( java . lang . S...
org . junit . Assert . assertTrue ( exceptionOccured )
testLazyRegenerateForEntitlement ( ) { org . candlepin . model . Entitlement entitlement = new org . candlepin . model . Entitlement ( ) ; this . ecGenerator . regenerateCertificatesOf ( entitlement , true ) ; "<AssertPlaceHolder>" ; verifyZeroInteractions ( this . mockEntCertAdapter ) ; } isDirty ( ) { return dirty ; ...
org . junit . Assert . assertTrue ( entitlement . isDirty ( ) )
getAvroSchemaForFeedSetupTest ( ) { final org . apache . avro . Schema schema = org . apache . avro . SchemaBuilder . record ( "last_update_time|string||0|0|0\n" 5 ) . namespace ( "last_update_time|string||0|0|0\n" 4 ) . fields ( ) . name ( "po_id" ) . type ( ) . nullable ( ) . intType ( ) . intDefault ( 0 ) . name ( "...
org . junit . Assert . assertEquals ( "last_update_time|string||0|0|0\n" 6 , expected , obtained )
testBuild ( ) { org . lnu . is . domain . partner . Partner context = new org . lnu . is . domain . partner . Partner ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>Partner<sp>e<sp>WHERE<sp>e.status=:status<sp>AND<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; org . lnu . is . pagination . MultiplePaged...
org . junit . Assert . assertEquals ( expected , actualQuery )
testCopy ( ) { test . patch . RelationalPatchTest . Fruit apple = new test . patch . RelationalPatchTest . Fruit ( ) ; apple . id = "1234" ; apple . fruitName = "apple" ; apple . fruitColor = "red" ; apple . groveId = "abcd" ; test . patch . RelationalPatchTest . log . debug ( "apple:<sp>{}" , test . patch . Relational...
org . junit . Assert . assertEquals ( test . patch . RelationalPatchTest . mapper . writeValueAsString ( apple ) , test . patch . RelationalPatchTest . mapper . writeValueAsString ( apple2 ) )
createDirectoryException ( ) { alluxio . AlluxioURI dir = new alluxio . AlluxioURI ( "/dir" ) ; alluxio . grpc . CreateDirectoryPOptions createDirectoryOptions = alluxio . grpc . CreateDirectoryPOptions . getDefaultInstance ( ) ; doThrow ( alluxio . client . file . BaseFileSystemTest . EXCEPTION ) . when ( mFileSystemM...
org . junit . Assert . assertSame ( alluxio . client . file . BaseFileSystemTest . EXCEPTION , e )
testInjectionTargetPersUnitRef30 ( ) { java . util . List < java . lang . String > errors = testXMLMergeHelper ( 30 , "InjectionTargetPersUnitRef" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . toString ( "" ) ; }
org . junit . Assert . assertTrue ( errors . toString ( ) , errors . isEmpty ( ) )
testConfigurePortForwardingRulesOnLogicalRouterExistingRules ( ) { resource . configure ( "NiciraNvpResource" , parameters ) ; final com . cloud . agent . api . ConfigurePortForwardingRulesOnLogicalRouterCommand cmd = mock ( com . cloud . agent . api . ConfigurePortForwardingRulesOnLogicalRouterCommand . class ) ; fina...
org . junit . Assert . assertTrue ( a . getResult ( ) )
match ( ) { io . fabric8 . maven . docker . util . GavLabel label = new io . fabric8 . maven . docker . util . GavLabel ( g , a , v ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( label . equals ( new io . fabric8 . maven . docker . util . GavLabel ( g , a , v ) ) )
testCalculateTotalBuildTimeNoStages ( ) { hudson . model . FreeStyleProject project = jenkins . createFreeStyleProject ( "A" ) ; se . diabol . jenkins . pipeline . domain . Pipeline pipeline = new se . diabol . jenkins . pipeline . domain . Pipeline ( "NoStages" , project , null , new java . util . ArrayList ( ) ) ; pi...
org . junit . Assert . assertEquals ( 0L , pipeline . getTotalBuildTime ( ) )
testNestedValueType ( ) { com . google . common . collect . ImmutableMap < java . lang . Integer , java . lang . String > numberNames = com . google . common . collect . ImmutableMap . of ( 1 , "un" , 2 , "deux" ) ; com . google . auto . value . NestedValueType . Nested nested = NestedValueType . Nested . create ( numb...
org . junit . Assert . assertEquals ( numberNames , nested . numberNames ( ) )
addOrder_shouldSetEncounterAttribute ( ) { org . openmrs . Encounter encounter = new org . openmrs . Encounter ( ) ; org . openmrs . Order order = new org . openmrs . Order ( ) ; encounter . addOrder ( order ) ; "<AssertPlaceHolder>" ; } getEncounter ( ) { return this . encounter ; }
org . junit . Assert . assertTrue ( order . getEncounter ( ) . equals ( encounter ) )
testSaveWhenTheValueIsBlank ( ) { final java . lang . String value = "" ; final org . uberfire . mvp . Command command = mock ( org . uberfire . mvp . Command . class ) ; doReturn ( command ) . when ( enumerationItem ) . getScrollToThisItemCallback ( ) ; enumerationItem . save ( value ) ; final java . lang . String act...
org . junit . Assert . assertEquals ( expected , actual )
getValueFromJsonObject_good_case ( ) { java . lang . String jsonString = "{\"deviceId\":\"xxx-device\",\"generationId\":\"111111111111111111\",\"etag\":\"MA==\",\"connectionState\":\"Disconnected\",\"status\":\"Disabled\",\"statusReason\":null,\"connectionStateUpdatedTime\":\"0001-01-01T00:00:00\",\"statusUpdatedTime\"...
org . junit . Assert . assertEquals ( expResult , result )
testCoverage ( ) { this . testClass . url = "foo" ; "<AssertPlaceHolder>" ; } getUrl ( ) { return this . url ; }
org . junit . Assert . assertEquals ( "foo" , this . testClass . getUrl ( ) )
shouldParseFirstSmsIfTheFirstTime ( ) { android . database . Cursor mockedCursor = mockCursorToReturn ( com . tuenti . smsradar . SmsCursorParserTest . ANY_ADDRESS , com . tuenti . smsradar . SmsCursorParserTest . NEW_DATE , com . tuenti . smsradar . SmsCursorParserTest . ANY_BODY , com . tuenti . smsradar . SmsCursorP...
org . junit . Assert . assertEquals ( expectedSms , sms )
deveObterModeloNotaFiscalComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . inutilizacao . NFRetornoEventoInutilizacaoDados dados = new com . fincatto . documentofiscal . nfe400 . classes . evento . inutilizacao . NFRetornoEventoInutilizacaoDados ( ) ; final java . lang . String mo...
org . junit . Assert . assertEquals ( modeloNotaFiscal , dados . getModeloNotaFiscal ( ) )
testSerialization ( ) { org . jfree . chart . axis . DateTick t1 = new org . jfree . chart . axis . DateTick ( new java . util . Date ( 0L ) , "Label" , org . jfree . chart . ui . TextAnchor . CENTER , org . jfree . chart . ui . TextAnchor . CENTER , 10.0 ) ; java . io . ByteArrayOutputStream buffer = new java . io . B...
org . junit . Assert . assertEquals ( t1 , t2 )
onPreferenceChangeShouldAskAndroidUserInterfaceToChangeNickNameAndReturnTheResultIfFalse ( ) { when ( ui . changeNickName ( anyString ( ) ) ) . thenReturn ( false ) ; final boolean change = controller . onPreferenceChange ( nickNamePreference , "Kelly" ) ; "<AssertPlaceHolder>" ; verify ( ui ) . changeNickName ( "Kelly...
org . junit . Assert . assertFalse ( change )
testAppendClause ( ) { com . ctrip . platform . dal . dao . sqlbuilder . AbstractFreeSqlBuilder test = create ( ) ; test . append ( new com . ctrip . platform . dal . dao . sqlbuilder . Text ( com . ctrip . platform . dal . dao . sqlbuilder . AbstractFreeSqlBuilderTest . template ) ) ; "<AssertPlaceHolder>" ; } build (...
org . junit . Assert . assertEquals ( com . ctrip . platform . dal . dao . sqlbuilder . AbstractFreeSqlBuilderTest . template , test . build ( ) )
testAddSame ( ) { com . vaadin . ui . AbstractComponent component = getComponent ( ) ; component . setStyleName ( "style1<sp>style2" ) ; component . addStyleName ( "style1" ) ; "<AssertPlaceHolder>" ; } getStyleName ( ) { return styleName ; }
org . junit . Assert . assertEquals ( component . getStyleName ( ) , "style1<sp>style2" )
validate_shouldPassValidationIfFieldLengthsAreCorrect ( ) { org . openmrs . EncounterType type = new org . openmrs . EncounterType ( ) ; type . setName ( "name" ) ; type . setDescription ( "some<sp>descriptin<sp>not<sp>exceeding<sp>the<sp>limit" ) ; type . setRetireReason ( "retireReason" ) ; org . springframework . va...
org . junit . Assert . assertFalse ( errors . hasErrors ( ) )
testEncryptEmptyPassword ( ) { java . lang . String res = service . encrypt ( "" ) ; "<AssertPlaceHolder>" ; } encrypt ( java . lang . String ) { try { javax . crypto . Cipher encCipher = javax . crypto . Cipher . getInstance ( secretKey . getAlgorithm ( ) ) ; encCipher . init ( Cipher . ENCRYPT_MODE , secretKey , para...
org . junit . Assert . assertEquals ( "" , res )
perContextStoreReturnsDefaultIfNoClassLoaderStored ( ) { uk . org . lidalia . sysoutslf4j . system . PerContextStore < java . lang . String > storeUnderTest = new uk . org . lidalia . sysoutslf4j . system . PerContextStore < java . lang . String > ( "default" ) ; "<AssertPlaceHolder>" ; } get ( ) { throw new java . lan...
org . junit . Assert . assertEquals ( "default" , storeUnderTest . get ( ) )
testRegisterWorkflowTriggerWithSubclass_shouldRegisterTrigger ( ) { org . openengsb . core . test . NullEvent3 testEvent = new org . openengsb . core . test . NullEvent3 ( ) ; testEvent . setName ( "triggerEvent" ) ; testEvent . setTestProperty ( "foo" ) ; testEvent . setTestStringProp ( "bar" ) ; testEvent . setTestBo...
org . junit . Assert . assertThat ( service . getRunningFlows ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testRingTopology_mostLeftNeighbour ( ) { this . constructPopulation ( ) ; org . evosuite . ga . Neighbourhood < org . evosuite . ga . Chromosome > neighbourhood = new org . evosuite . ga . Neighbourhood ( org . evosuite . Properties . POPULATION ) ; java . util . List < org . evosuite . ga . Chromosome > neighbors = ne...
org . junit . Assert . assertEquals ( exepcted_individual , returned_individual )
testToRawSimpleTime ( ) { final java . lang . String expected = "time(\"22:30:10\")" ; final java . lang . String input = "22:30:10" ; final java . lang . String actual = formatter . toRaw ( input ) ; "<AssertPlaceHolder>" ; } toRaw ( java . lang . String ) { if ( ! ( input . contains ( "<sp>" ) ) ) { return appendPref...
org . junit . Assert . assertEquals ( expected , actual )
shouldWorkFineWhenSpecifiedConfigFileDoesNotExist ( ) { java . io . File nonExistentConfigFile = new java . io . File ( ( "/tmp/" + ( java . lang . System . currentTimeMillis ( ) ) ) ) ; org . neo4j . kernel . configuration . Config config = org . neo4j . kernel . configuration . Config . fromFile ( nonExistentConfigFi...
org . junit . Assert . assertNotNull ( config )
testCalcDiffValueWithZeroedCount2 ( ) { org . ebayopensource . turmeric . monitoring . v1 . services . MetricGroupData metricGroupData = new org . ebayopensource . turmeric . monitoring . v1 . services . MetricGroupData ( ) ; metricGroupData . setCount1 ( 1.0 ) ; metricGroupData . setCount2 ( 0.0 ) ; service . calcDiff...
org . junit . Assert . assertEquals ( expectedValue , java . lang . Double . valueOf ( metricGroupData . getDiff ( ) ) )
testReportForFileSizeGroupByMonthOfLastModifiedDateWithFilter ( ) { reportData = reportDao . getReportData ( filter , ReportFieldEnum . FILE_SIZE , getGroupByFieldList ( ReportFieldEnum . LAST_MODIFIED_DATE , "month" ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; }
org . junit . Assert . assertTrue ( ( ( reportData . size ( ) ) > 0 ) )
withTen ( ) { "<AssertPlaceHolder>" ; } nextSmaller ( int ) { if ( n <= 0 ) return - 1 ; int tmp = n ; int zeros = 0 ; int ones = 0 ; while ( ( tmp & 1 ) == 1 ) { ones ++ ; tmp >>= 1 ; } while ( ( tmp > 0 ) && ( ( tmp & 1 ) == 0 ) ) { zeros ++ ; tmp >>= 1 ; } if ( zeros == 0 ) return - 1 ; n = n & ( ~ ( ( 1 << ( ( zero...
org . junit . Assert . assertEquals ( 9 , s . nextSmaller ( 10 ) )
shouldGetHeaders ( ) { final java . util . Map < java . lang . String , java . util . List < java . lang . String > > headers = httpClient4 . getHeaders ( org . apache . oltu . oauth2 . httpclient4 . HttpClient4Test . SIMPLE_HEADERS ) ; "<AssertPlaceHolder>" ; } getHeaders ( org . apache . http . Header [ ] ) { java . ...
org . junit . Assert . assertEquals ( 2 , headers . size ( ) )
testVraagOpBlokkering ( ) { final java . lang . String aNummerTePersisterenBlokkering = "1234567890" ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . Blokkering gepersisteerdeBlokkering = new nl . bzk . algemeenbrp . dal . domein . brp . entity . Blokkering ( aNummerTePersisterenBlokkering , new java . sq...
org . junit . Assert . assertNotNull ( service . vraagOpBlokkering ( aNummerTePersisterenBlokkering ) )
testOk ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , java . util . Collections . emptyList ( ) , ja...
org . junit . Assert . assertTrue ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
whenIfGet ( ) { java . lang . Object value = new java . lang . Object ( ) ; org . jooby . Result result = org . jooby . Results . when ( MediaType . all , ( ) -> value ) ; "<AssertPlaceHolder>" ; } ifGet ( ) { new org . jooby . test . MockUnit ( org . jooby . Request . class ) . expect ( ( unit ) -> { org . jooby . Req...
org . junit . Assert . assertEquals ( value , result . ifGet ( ) . get ( ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoTaskFormInstance . class , _dynamicQueryClassLoader ) ; dynamicQ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testTaggedCounter ( ) { taggedMetric = new com . github . sps . metrics . TaggedCounter ( tags ) ; "<AssertPlaceHolder>" ; } getTags ( ) { return tags ; }
org . junit . Assert . assertEquals ( tags , taggedMetric . getTags ( ) )
getCSSOfARootSpace ( ) { prepareSpaces ( "WA1" ) ; java . lang . String spaceId = look . getSpaceWithCSS ( "WA1" ) ; "<AssertPlaceHolder>" ; } is ( T ) { return java . util . Objects . equals ( this . value , value ) ; }
org . junit . Assert . assertThat ( spaceId , org . hamcrest . Matchers . is ( "1" ) )
testUpdateBusinessObjectDefinitionSampleFilesMissingFileName ( ) { businessObjectDefinitionServiceTestHelper . createDatabaseEntitiesForBusinessObjectDefinitionTesting ( ) ; storageDaoTestHelper . createStorageEntity ( StorageEntity . SAMPLE_DATA_FILE_STORAGE , java . util . Arrays . asList ( new org . finra . herd . m...
org . junit . Assert . assertEquals ( ex . getMessage ( ) , "A<sp>file<sp>name<sp>must<sp>be<sp>specified." )
testFilterString17 ( ) { java . lang . String filter = ( org . opennms . features . topology . plugins . topo . asset . layers . NodeParamLabels . NODE_CATEGORIES ) + "=category1,!category4" ; java . lang . String expected = "nodeList:{<sp>[0]<sp>[1]<sp>[2]<sp>[3]<sp>[4]<sp>[10]<sp>[11]<sp>[12]<sp>[13]<sp>[14]<sp>[15]<...
org . junit . Assert . assertEquals ( expected , s2 )
testChangesBefore12 ( ) { java . io . File wsdlFile = getProtobufRelatedInput ( "ShippingService.wsdl" ) ; intfProps . put ( "sipp_version" , "-genType" 4 ) ; fillProperties ( intfProps , intfProperty ) ; java . lang . String [ ] testArgs = new java . lang . String [ ] { "sipp_version" 7 , "sipp_version" 9 , "-mdest" ,...
org . junit . Assert . assertFalse ( "-genType" 5 , false )
testFormatThousands ( ) { for ( java . lang . String [ ] numberFormattedAsThousands : org . omnifaces . test . el . functions . TestNumbers . NUMBERS_FORMATTED_AS_THOUSANDS ) { java . math . BigDecimal number = new java . math . BigDecimal ( numberFormattedAsThousands [ 0 ] ) ; java . lang . String expectedResult = num...
org . junit . Assert . assertEquals ( expectedResult , actualResult )
testNcPropertiesNotNullOrEmpty_AllNull ( ) { when ( config . getNamedCluster ( ) . getHdfsHost ( ) ) . thenReturn ( null ) ; when ( config . getNamedCluster ( ) . getHdfsPort ( ) ) . thenReturn ( null ) ; when ( config . getNamedCluster ( ) . getJobTrackerHost ( ) ) . thenReturn ( null ) ; when ( config . getNamedClust...
org . junit . Assert . assertFalse ( ncPropertiesNotNullOrEmpty )
testGetMessageCountUpTo ( ) { long expected = 123L ; when ( _server . getMessageCountUpTo ( "queue-name" , 10000L ) ) . thenReturn ( expected ) ; long actual = queueClient ( ) . getMessageCountUpTo ( "queue-name" , 10000L ) ; "<AssertPlaceHolder>" ; verify ( _server ) . getMessageCountUpTo ( "queue-name" , 10000L ) ; v...
org . junit . Assert . assertEquals ( actual , expected )
testQueryEntireRangeExpected ( ) { org . calrissian . accumulorecipes . rangestore . impl . AccumuloRangeStore < java . lang . Long > rangeStore = new org . calrissian . accumulorecipes . rangestore . impl . AccumuloRangeStore < java . lang . Long > ( org . calrissian . accumulorecipes . rangestore . impl . AccumuloRan...
org . junit . Assert . assertEquals ( 3 , results . size ( ) )
testGetPlugin ( ) { world . bentobox . bentobox . api . addons . AddonTest . TestClass test = new world . bentobox . bentobox . api . addons . AddonTest . TestClass ( ) ; "<AssertPlaceHolder>" ; } getPlugin ( ) { return plugin ; }
org . junit . Assert . assertEquals ( world . bentobox . bentobox . api . addons . AddonTest . plugin , test . getPlugin ( ) )
testParametrizationStateSize ( ) { final int maxSize = 17 ; org . apache . flink . runtime . state . memory . MemoryStateBackend backend = new org . apache . flink . runtime . state . memory . MemoryStateBackend ( maxSize ) ; org . apache . flink . runtime . state . memory . MemoryBackendCheckpointStorage storage = ( (...
org . junit . Assert . assertEquals ( maxSize , storage . getMaxStateSize ( ) )
scrollToRowAndSpacerAlreadyInViewport ( ) { selectMenuPath ( com . vaadin . tests . components . grid . basicfeatures . escalator . FEATURES , com . vaadin . tests . components . grid . basicfeatures . escalator . SPACERS , com . vaadin . tests . components . grid . basicfeatures . escalator . ROW_50 , com . vaadin . t...
org . junit . Assert . assertEquals ( getScrollTop ( ) , 950 )
testEncryptEncryptedKeySHA1 ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security ....
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
testResizer1 ( ) { org . nuxeo . ecm . core . api . Blob source = new org . nuxeo . ecm . core . api . impl . blob . FileBlob ( org . nuxeo . common . utils . FileUtils . getResourceFileFromContext ( "test-data/sample.jpeg" ) ) ; org . nuxeo . ecm . automation . OperationContext ctx = new org . nuxeo . ecm . automation...
org . junit . Assert . assertNotNull ( result )
validateBinder_validationErrors_statusEventWithError ( ) { binder . forField ( nameField ) . withValidator ( ( name ) -> false , "" ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . forField ( ageField ) . withConverter ( new com . vaadin . data . converter . StringToIntegerConverter ( "" ) ) . bi...
org . junit . Assert . assertNull ( event . get ( ) )
test_FiniteCapacityItemProduct_QtyPlanned_NoQtyMoved ( ) { final de . metas . handlingunits . impl . HUPIItemProductDisplayNameBuilder builder = new de . metas . handlingunits . impl . HUPIItemProductDisplayNameBuilder ( ) ; final de . metas . handlingunits . model . I_M_HU_PI_Item_Product piItemProduct = createM_HU_PI...
org . junit . Assert . assertEquals ( displayNameExpected , displayNameActual )
all_tasks_should_be_obtained_from_detachedUser ( ) { java . util . List < org . jboss . as . quickstarts . tasksJsf . Task > userTasks = taskDao . getAll ( detachedUser ) ; "<AssertPlaceHolder>" ; } getAll ( org . jboss . as . quickstarts . tasksJsf . User ) { javax . persistence . TypedQuery < org . jboss . as . quick...
org . junit . Assert . assertEquals ( 2 , userTasks . size ( ) )
testGetIdentifiable ( ) { memcache . put ( "key" , "value" ) ; com . google . appengine . api . memcache . MemcacheService . IdentifiableValue identifiable = memcache . getIdentifiable ( "key" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "value" , identifiable . getValue ( ) )
testRegisterNodeManagerResponsePBImplWithRMAcceptLbls ( ) { org . apache . hadoop . yarn . server . api . protocolrecords . impl . pb . RegisterNodeManagerResponsePBImpl original = new org . apache . hadoop . yarn . server . api . protocolrecords . impl . pb . RegisterNodeManagerResponsePBImpl ( ) ; original . setAreNo...
org . junit . Assert . assertTrue ( copy . getAreNodeLabelsAcceptedByRM ( ) )
testGet ( ) { com . liferay . dynamic . data . mapping . model . DDMContent ddmContent = mock ( com . liferay . dynamic . data . mapping . model . DDMContent . class ) ; when ( _ddmContentLocalService . getContent ( 1 ) ) . thenReturn ( ddmContent ) ; java . lang . String data = "{}" ; when ( ddmContent . getData ( ) )...
org . junit . Assert . assertNotNull ( ddmStorageAdapterGetResponse . getDDMFormValues ( ) )
startProcess ( ) { org . activiti . engine . RepositoryService repositoryService = activitiRule . getRepositoryService ( ) ; repositoryService . createDeployment ( ) . addInputStream ( "process.bpmn20.xml" , new java . io . FileInputStream ( filename ) ) . deploy ( ) ; org . activiti . engine . RuntimeService runtimeSe...
org . junit . Assert . assertNotNull ( processInstance . getId ( ) )
readData4 ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( filereader . readAllLine ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( new java . lang . String [ ] { "1.413913535177E9<sp>OFF" , ...
org . junit . Assert . assertTrue ( ( ( info . size ( ) ) == 3 ) )
childContextChain ( ) { org . mule . runtime . api . util . concurrent . Latch latch = new org . mule . runtime . api . util . concurrent . Latch ( ) ; java . util . concurrent . atomic . AtomicReference < org . mule . runtime . core . privileged . event . BaseEventContext > childEventContext = new java . util . concur...
org . junit . Assert . assertThat ( future . get ( org . mule . runtime . core . privileged . processor . BLOCK_TIMEOUT , org . mule . runtime . core . privileged . processor . MILLISECONDS ) . get ( ) . getMessage ( ) , org . hamcrest . CoreMatchers . equalTo ( testEvent ( ) . getMessage ( ) ) )
testDateComparison ( ) { com . redhat . lightblue . metadata . EntityMetadata md = com . redhat . lightblue . eval . EvalTestContext . getMd ( "./testMetadata.json" ) ; java . util . Set < java . lang . String > roles = new java . util . HashSet ( ) ; roles . add ( "somerole" ) ; com . redhat . lightblue . eval . Field...
org . junit . Assert . assertEquals ( 0 , list . size ( ) )
testGetWriteOperation ( ) { org . talend . components . marklogic . runtime . MarkLogicSink sink = mock ( org . talend . components . marklogic . runtime . MarkLogicSink . class ) ; org . talend . components . marklogic . tmarklogicoutput . MarkLogicOutputProperties properties = new org . talend . components . marklogi...
org . junit . Assert . assertEquals ( writeOperation , writer . getWriteOperation ( ) )
testSetAffiliation ( ) { System . out . println ( "setAffiliation" ) ; java . lang . String affiliation = "FamilyMan" ; edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . setAffiliation ( affiliation ) ; "<AssertPlaceHolder>" ; } getAffiliation ( ) { return affiliation ; }
org . junit . Assert . assertEquals ( affiliation , edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getAffiliation ( ) )
testTimePassed ( ) { codeine . jsons . project . DiscardOldCommandsJson discardOldCommandsJson = new codeine . jsons . project . DiscardOldCommandsJson ( 100 , 1 ) ; codeine . plugins . DiscardOldCommandSelector tested = new codeine . plugins . DiscardOldCommandSelector ( discardOldCommandsJson , allsCommands , TimeUni...
org . junit . Assert . assertEquals ( com . google . common . collect . Lists . newArrayList ( createCommand ) , tested . commandsToDelete ( ) )
testGetName ( ) { java . lang . String result = fFixture . getName ( ) ; "<AssertPlaceHolder>" ; } getName ( ) { return fName ; }
org . junit . Assert . assertNotNull ( result )
testExecuteCommandOnAbortedProcess ( ) { long processInstanceId = processService . startProcess ( deploymentUnit . getIdentifier ( ) , org . jbpm . kie . services . test . ProcessServiceImplPerProcessInstanceTest . PROCESS_ID_HUMAN_TASK ) ; "<AssertPlaceHolder>" ; processService . abortProcessInstance ( processInstance...
org . junit . Assert . assertNotNull ( processInstanceId )
provideYourOwnAsyncClientBuilder ( ) { kong . unirest . AsyncClient cli = mock ( kong . unirest . AsyncClient . class ) ; when ( cli . isRunning ( ) ) . thenReturn ( true ) ; config . asyncClient ( ( c ) -> cli ) ; "<AssertPlaceHolder>" ; } getAsyncClient ( ) { if ( ! ( asyncClientIsReady ( ) ) ) { buildAsyncClient ( )...
org . junit . Assert . assertSame ( cli , config . getAsyncClient ( ) )
testZeroFilters ( ) { com . northconcepts . eventbus . EventFilter filter = new com . northconcepts . eventbus . filter . OrFilter ( ) ; "<AssertPlaceHolder>" ; } allow ( com . northconcepts . eventbus . Event , java . lang . Object ) { return true ; }
org . junit . Assert . assertTrue ( filter . allow ( event , listener ) )
testNextWithNullTokenAndEmptyWordList ( ) { final org . apache . lucene . analysis . Token token = new org . apache . lucene . analysis . Token ( null , 0 , 0 ) ; java . util . List < org . apache . lucene . analysis . Token > tokens = new java . util . ArrayList < org . apache . lucene . analysis . Token > ( ) ; token...
org . junit . Assert . assertNull ( sut . next ( token ) )
testEquals ( ) { org . jfree . data . time . Day day1 = new org . jfree . data . time . Day ( 29 , org . jfree . date . MonthConstants . MARCH , 2002 ) ; org . jfree . data . time . Hour hour1 = new org . jfree . data . time . Hour ( 15 , day1 ) ; org . jfree . data . time . Minute minute1 = new org . jfree . data . ti...
org . junit . Assert . assertTrue ( minute1 . equals ( minute2 ) )
testSerialization ( ) { org . jfree . data . time . Month m1 = new org . jfree . data . time . Month ( 12 , 1999 ) ; org . jfree . data . time . Month m2 = ( ( org . jfree . data . time . Month ) ( org . jfree . chart . TestUtilities . serialised ( m1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang . Object ...
org . junit . Assert . assertEquals ( m1 , m2 )
serializeTagConfigWithAddressParameters ( ) { cern . c2mon . shared . client . tag . TagConfigImpl tagConfig = cern . c2mon . shared . client . serialize . TagConfig . createTagConfig ( ) ; java . util . Map < java . lang . String , java . lang . String > addressParameters = new java . util . HashMap ( ) ; addressParam...
org . junit . Assert . assertEquals ( tagConfig , tagConfigFromJson )
testCreateBusinessObjectDataStorageUnitKey ( ) { org . finra . herd . model . api . xml . BusinessObjectDataStorageUnitKey result = storageUnitHelper . createBusinessObjectDataStorageUnitKey ( new org . finra . herd . model . api . xml . BusinessObjectDataKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FI...
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . BusinessObjectDataStorageUnitKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION , PARTITION_VALUE , SUBPARTITION_VALUES , DATA_VERSION , STORAGE_NAME ) , result )
rasterizePolygons ( ) { System . out . println ( "<sp>rasterize<sp>polygons" ) ; org . geotools . data . simple . SimpleFeatureCollection features = createPolys ( ) ; org . geotools . geometry . jts . ReferencedEnvelope bounds = features . getBounds ( ) ; java . awt . Dimension gridDim = new java . awt . Dimension ( ( ...
org . junit . Assert . assertTrue ( rects . get ( covValue [ 0 ] ) . contains ( geoP . x , geoP . y ) )
testArrayDimensionOnFragmentAsParameter ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "public<sp>class<sp>Clazz<sp>{" ) ; _builder . newLine ( ) ; _builder . append ( "\t" ) ; _builder . append ( "String<sp>sa[];" ) ;...
org . junit . Assert . assertNotNull ( clazz )
shouldThrowExceptionWhenGetSerialisedFieldsWithUnknownClassName ( ) { try { service . getSerialisedFields ( "an<sp>unknown<sp>class<sp>name" ) ; org . junit . Assert . fail ( "Exception<sp>expected" ) ; } catch ( final java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return ( ( ...
org . junit . Assert . assertNotNull ( e . getMessage ( ) )
subtractingOneSecond ( ) { org . tomighty . time . Time threeSeconds = org . tomighty . time . Time . seconds ( 3 ) ; org . tomighty . time . Time twoSeconds = org . tomighty . time . Time . seconds ( 2 ) ; "<AssertPlaceHolder>" ; } minusOneSecond ( ) { return new org . tomighty . time . Time ( 0 , ( ( totalTimeInSecon...
org . junit . Assert . assertEquals ( twoSeconds , threeSeconds . minusOneSecond ( ) )