input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
getValueStringByKeyGoodCaseTrim ( ) { java . util . HashMap < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "key2" , "<sp>value2<sp>" ) ; java . lang . String keyName = "key2" ; java . lang . String expResult = "value2" ; ...
org . junit . Assert . assertEquals ( expResult , result )
testSingleElementMinusDisjointSet ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 15 , 15 ) ; org . antlr . v4 . runtime . misc . IntervalSet s2 = org . antlr . v4 . runtime . misc . IntervalSet . of ( 1 , 5 ) ; s2 . add ( 10 , 20 ) ; java . lang . String...
org . junit . Assert . assertEquals ( expecting , result )
testToLowerCaseConverting ( ) { eu . stratosphere . types . StringValue testString = new eu . stratosphere . types . StringValue ( "TEST" ) ; eu . stratosphere . util . SimpleStringUtils . toLowerCase ( testString ) ; "<AssertPlaceHolder>" ; } toLowerCase ( eu . stratosphere . types . StringValue ) { final char [ ] cha...
org . junit . Assert . assertEquals ( new eu . stratosphere . types . StringValue ( "test" ) , testString )
strokeOpacitySetWithNoneStrokeRGB ( ) { com . itextpdf . svg . renderers . impl . AbstractSvgNodeRenderer renderer = new com . itextpdf . svg . renderers . impl . CircleSvgNodeRenderer ( ) ; renderer . setAttribute ( SvgConstants . Attributes . STROKE_OPACITY , "0.75" ) ; renderer . setAttribute ( SvgConstants . Attrib...
org . junit . Assert . assertTrue ( resources . getResourceNames ( ) . isEmpty ( ) )
shouldNotBeDiagnosticMode ( ) { com . oracle . bedrock . runtime . console . NullApplicationConsole console = new com . oracle . bedrock . runtime . console . NullApplicationConsole ( ) ; "<AssertPlaceHolder>" ; } isDiagnosticsEnabled ( ) { return false ; }
org . junit . Assert . assertThat ( console . isDiagnosticsEnabled ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testGetAvailability ( ) { java . lang . String xml = sendRequest ( org . opennms . web . rest . v1 . GET , "/availability" , new java . util . HashMap < java . lang . String , java . lang . String > ( ) , 200 ) ; "<AssertPlaceHolder>" ; } sendRequest ( java . lang . String , java . lang . String , java . util . Map , i...
org . junit . Assert . assertNotNull ( xml )
consistencyNotBoundedShouldEraseScanWaitAndVector ( ) { com . couchbase . client . java . query . N1qlParams p = com . couchbase . client . java . query . N1qlParams . build ( ) . scanWait ( 12 , TimeUnit . SECONDS ) . consistency ( ScanConsistency . NOT_BOUNDED ) ; com . couchbase . client . java . document . json . J...
org . junit . Assert . assertEquals ( expected , actual )
testVelocityMerge ( ) { org . oscarehr . PMmodule . model . Program program = new org . oscarehr . PMmodule . model . Program ( ) ; program . setName ( "MyProgramName" ) ; java . lang . String notes = "some<sp>of<sp>my<sp>notes" ; java . util . Calendar startCal = new java . util . GregorianCalendar ( 2012 , 3 , 4 ) ; ...
org . junit . Assert . assertEquals ( expectedResults , mergedtemplate )
testNegativeServiceFilter ( ) { org . opennms . web . alarm . filter . AlarmCriteria criteria = getCriteria ( new org . opennms . web . alarm . filter . NegativeServiceFilter ( 12 , null ) ) ; org . opennms . netmgt . model . OnmsAlarm [ ] alarms = m_daoAlarmRepo . getMatchingAlarms ( org . opennms . web . alarm . Alar...
org . junit . Assert . assertEquals ( 1 , alarms . length )
AnnotationDependency ( ) { java . lang . String fromClass = "domain.direct.violating.AnnotationDependency" ; java . lang . String toClass = "technology.direct.dao.SettingsAnnotation" ; java . util . ArrayList < java . lang . String > typesToFind = new java . util . ArrayList < java . lang . String > ( ) ; typesToFind ....
org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , "" , false ) )
testTileBp ( ) { org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; org . nd4j . linalg . api . ndarray . INDArray in = org . nd4j . linalg . factory . Nd4j . create ( 1 , 2 , 3 ) ; int [ ] tile = new int [ ] { 2 , 3 , 4 } ; int [ ] outShape = new int [ ] { 1 * 2 , 2 * 3 , 3 * 4 } ; int length =...
org . junit . Assert . assertNull ( err )
testCondParens ( ) { java . lang . String template = "<if(!(x||y)&&!z)>works<endif>" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; java . lang . String expected = "works" ; java . lang . String result = st . render ( ) ; "<AssertPlaceHolder>" ; } render ( ) { return render ( ja...
org . junit . Assert . assertEquals ( expected , result )
testPredicateDependentOnArg2 ( ) { java . lang . String grammar = "grammar<sp>T;\n" + ( ( ( ( ( ( ( "T.g4" 4 + "T.g4" 3 ) + "<sp>:<sp>{$i==1}?<sp>ID\n" ) + "<sp>|<sp>{$i==2}?<sp>ID\n" ) + "<sp>;\n" ) + "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" ) + "INT<sp>:<sp>\'0\'..\'9\'+;\n" ) + "T.g4" 1 ) ; java . lang . String found = exe...
org . junit . Assert . assertEquals ( expecting , found )
testUnzipDownload ( ) { if ( com . bixly . pastevid . util . MediaUtil . osIsWindows ( ) ) { java . io . File file = new java . io . File ( com . bixly . pastevid . Settings . getUnzipExecutable ( ) ) ; if ( file . exists ( ) ) file . delete ( ) ; file = new java . io . File ( com . bixly . pastevid . Settings . BIN_DI...
org . junit . Assert . assertTrue ( instance . getFile ( ) . exists ( ) )
testLocalHostCall ( ) { domain = "xpipe.meta.ctripcorp.com" ; org . springframework . mock . web . MockHttpServletRequest request = new org . springframework . mock . web . MockHttpServletRequest ( ) ; org . springframework . mock . web . MockHttpServletResponse response = new org . springframework . mock . web . MockH...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testComponentStatusList ( ) { server . expect ( ) . withPath ( "/api/v1/componentstatuses" ) . andReturn ( 200 , status ) . once ( ) ; io . fabric8 . kubernetes . client . KubernetesClient client = server . getClient ( ) ; io . fabric8 . kubernetes . api . model . ComponentStatusList stats = client . componentstatuses ...
org . junit . Assert . assertNotNull ( stats )
testGetInPort ( ) { target = new org . o3project . odenos . core . component . network . flow . basic . BasicFlowMatch ( "node01" , "port01" ) ; "<AssertPlaceHolder>" ; } getInPort ( ) { return matchInPort ; }
org . junit . Assert . assertThat ( target . getInPort ( ) , org . hamcrest . CoreMatchers . is ( "port01" ) )
testSaveAndLoad ( ) { com . catify . processengine . core . data . model . entities . FlowNodeInstance flowNodeInstance = createFlowNodeInstance ( NodeInstaceStates . ACTIVE_STATE ) ; flowNodeInstanceRepository . save ( flowNodeInstance ) ; flowNodeInstance = flowNodeInstanceRepository . findOne ( flowNodeInstance . ge...
org . junit . Assert . assertNotNull ( flowNodeInstance )
testGetWord ( ) { model = createVoiceModel ( ) ; final java . util . List < com . ibm . watson . text_to_speech . v1 . model . Word > expected = instantiateWords ( ) ; com . ibm . watson . text_to_speech . v1 . model . AddWordsOptions addOptions = new com . ibm . watson . text_to_speech . v1 . model . AddWordsOptions ....
org . junit . Assert . assertEquals ( expected . get ( 0 ) . getTranslation ( ) , translation . getTranslation ( ) )
loggerLevel ( ) { org . hongxi . whatsmars . common . logging . inner . Level level = org . hongxi . whatsmars . common . logging . inner . Logger . getRootLogger ( ) . getLevel ( ) ; "<AssertPlaceHolder>" ; } getLevel ( ) { return this . level ; }
org . junit . Assert . assertTrue ( ( level != null ) )
testGetMetaData ( ) { java . sql . DatabaseMetaData dbmd = con . getMetaData ( ) ; "<AssertPlaceHolder>" ; } getMetaData ( ) { checkClosed ( ) ; if ( ( rsMetaData ) == null ) { rsMetaData = createMetaData ( ) ; } return rsMetaData ; }
org . junit . Assert . assertNotNull ( dbmd )
shouldReturnTrueWhenSchemaHasValidatorEntityPropertyFilters ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = new uk . gov . gchq . gaffer . store . schema . Schema . Builder ( ) . entity ( TestGroups . ENTITY , new uk . gov . gchq . gaffer . store . schema . SchemaEntityDefinition . Builder ( ) ....
org . junit . Assert . assertTrue ( result )
testAddOneLayer ( ) { renders = 0 ; java . util . List < org . locationtech . udig . catalog . IGeoResource > resources = new java . util . ArrayList < org . locationtech . udig . catalog . IGeoResource > ( ) ; org . opengis . feature . simple . SimpleFeature [ ] features = org . locationtech . udig . ui . tests . supp...
org . junit . Assert . assertEquals ( 1 , renders )
shouldNotHandleMapWithTypesUsingEmbedTypeSettingV2d0 ( ) { final org . apache . tinkerpop . shaded . jackson . databind . ObjectMapper mapper = org . apache . tinkerpop . gremlin . structure . io . graphson . GraphSONMapper . build ( ) . version ( GraphSONVersion . V2_0 ) . typeInfo ( TypeInfo . NO_TYPES ) . create ( )...
org . junit . Assert . assertEquals ( 100 , read . get ( "test" ) )
selectSingle ( ) { com . fasterxml . jackson . databind . JsonNode expected = com . nebhale . jsonpath . internal . component . NODE . get ( "store" ) ; com . fasterxml . jackson . databind . JsonNode result = new com . nebhale . jsonpath . internal . component . ChildPathComponent ( null , "store" ) . select ( com . n...
org . junit . Assert . assertEquals ( expected , result )
getLevelLabels ( ) { "<AssertPlaceHolder>" ; } getLevelLabels ( ) { org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "hard<sp>score" , "soft<sp>score" } , new org . optaplanner . core . impl . score . buildin . hardsoft . HardSoftScoreDefinition ( ) . getLevelLabels ( ) ) ; }
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "hard<sp>score" , "soft<sp>score" } , new org . optaplanner . core . impl . score . buildin . hardsoft . HardSoftScoreDefinition ( ) . getLevelLabels ( ) )
testBigIntHandling ( ) { java . lang . String jsonBody = ( "[{\"collectionTime\":<sp>" + ( current ) ) + ",\"ttlInSeconds\":172800,\"metricValue\":18446744073709000000,\"metricName\":\"used\",\"unit\":\"unknown\"}]" ; com . rackspacecloud . blueflood . inputs . formats . JSONMetricsContainer container = getContainer ( ...
org . junit . Assert . assertTrue ( container . getValidationErrors ( ) . isEmpty ( ) )
testBadge_2 ( ) { cn . jpush . api . push . model . notification . IosNotification ios = cn . jpush . api . push . model . notification . IosNotification . newBuilder ( ) . setBadge ( 2 ) . build ( ) ; com . google . gson . JsonObject json = new com . google . gson . JsonObject ( ) ; json . add ( "badge" , new com . go...
org . junit . Assert . assertEquals ( "" , json , ios . toJSON ( ) )
testRecordTaskMultipleTimes ( ) { profileReport . recordTask ( ) ; profileReport . recordTask ( ) ; "<AssertPlaceHolder>" ; } hasRecordedTasks ( ) { return recordedTasks ; }
org . junit . Assert . assertThat ( profileReport . hasRecordedTasks ( ) , org . hamcrest . Matchers . equalTo ( true ) )
assertEqualsWithSameColumnLabel ( ) { org . apache . shardingsphere . core . parse . old . parser . context . orderby . OrderItem orderItem1 = new org . apache . shardingsphere . core . parse . old . parser . context . orderby . OrderItem ( "column_name" , org . apache . shardingsphere . core . constant . OrderDirectio...
org . junit . Assert . assertThat ( orderItem1 , org . hamcrest . CoreMatchers . is ( orderItem2 ) )
fromStringPlainPropertiesComplexToObject ( ) { java . lang . String sampleFileAsString = getSampleFileAsString ( "JoaoPlainProperties.jsonld" ) ; br . com . srs . gsonld . test . JoaoPlain joao = new br . com . srs . gsonld . GsonLD ( ) . fromJsonLD ( sampleFileAsString , br . com . srs . gsonld . test . JoaoPlain . cl...
org . junit . Assert . assertEquals ( joaoExpected , joao )
addDuplicates ( ) { final java . nio . file . Path blobDbx = temporaryFolder . getRoot ( ) . toPath ( ) . resolve ( "blob.dbx" ) ; final java . nio . file . Path blobDir = temporaryFolder . newFolder ( "blob" ) . toPath ( ) ; final com . evolvedbinary . j8fu . tuple . Tuple2 < byte [ ] , org . exist . util . crypto . d...
org . junit . Assert . assertEquals ( expectedBlobDbxLen , actualBlobDbxLen )
testServiceLoaderCanLoadExtensions ( ) { java . util . Map < java . lang . String , com . graphaware . nlp . extension . NLPExtension > loadedExtensions = com . graphaware . nlp . util . ServiceLoader . loadInstances ( com . graphaware . nlp . annotation . NLPModuleExtension . class ) ; "<AssertPlaceHolder>" ; } loadIn...
org . junit . Assert . assertFalse ( ( ( loadedExtensions . size ( ) ) == 0 ) )
addAndRemovePropertiesWithinOneTransaction ( ) { org . neo4j . graphdb . Node node = getGraphDb ( ) . createNode ( ) ; node . setProperty ( "name" , "oscar" ) ; node . setProperty ( "favourite_numbers" , new java . lang . Long [ ] { 1L , 2L , 3L } ) ; node . setProperty ( "favourite_colors" , new java . lang . String [...
org . junit . Assert . assertNotNull ( node . getProperty ( "favourite_numbers" , null ) )
nullValue ( ) { victim . addValue ( "module" , "key" , null ) ; "<AssertPlaceHolder>" ; } getDataForModule ( java . lang . String ) { java . util . Map < java . lang . String , java . lang . String > values = data . get ( module ) ; if ( values == null ) { java . util . Map < java . lang . String , java . lang . String...
org . junit . Assert . assertEquals ( "" , victim . getDataForModule ( "module" ) . get ( "key" ) )
testInsertComplete ( ) { initializeExpectedTable ( 1 ) ; expect ( bigquery . getOptions ( ) ) . andReturn ( mockOptions ) ; expect ( bigquery . insertAll ( com . google . cloud . bigquery . TableTest . INSERT_ALL_REQUEST_COMPLETE ) ) . andReturn ( com . google . cloud . bigquery . TableTest . EMPTY_INSERT_ALL_RESPONSE ...
org . junit . Assert . assertSame ( com . google . cloud . bigquery . TableTest . EMPTY_INSERT_ALL_RESPONSE , response )
testConstructor8 ( ) { marytts . datatypes . MaryData md = new marytts . datatypes . MaryData ( MaryDataType . AUDIO , null , true ) ; "<AssertPlaceHolder>" ; } getDocument ( ) { for ( marytts . unitselection . analysis . Phone phone : phones ) { org . w3c . dom . Element phoneElement = phone . getMaryXMLElement ( ) ; ...
org . junit . Assert . assertTrue ( ( ( md . getDocument ( ) ) == null ) )
testJUMPI_4 ( ) { org . ethereum . vm . VM vm = new org . ethereum . vm . VM ( ) ; program = new org . ethereum . vm . Program ( org . spongycastle . util . encoders . Hex . decode ( "6001602259" ) , invoke ) ; try { vm . step ( program ) ; vm . step ( program ) ; vm . step ( program ) ; } finally { "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( program . isStopped ( ) )
test ( ) { "<AssertPlaceHolder>" ; for ( org . geosdi . geoplatform . gui . configuration . menubar . MenuBarCategory category : menuBarContainerTool . getCategories ( ) ) { logger . info ( "MENU<sp>********************<sp>{}" , category . toString ( ) ) ; } }
org . junit . Assert . assertNotNull ( menuBarContainerTool )
shouldNotBeReadSuspendedAfterThreadRealignment ( ) { org . kaazing . mina . core . session . DummySessionEx session = executor . submit ( new org . kaazing . mina . core . session . DummySessionExTest . DummySessionExFactory ( ) ) . get ( ) ; org . apache . mina . core . filterchain . IoFilterChain filterChain = sessio...
org . junit . Assert . assertFalse ( session . isReadSuspended ( ) )
testKieSession ( ) { org . kie . api . runtime . KieSession ksession = ( ( org . kie . api . runtime . KieSession ) ( org . kie . spring . tests . KieSpringBasics2Test . context . getBean ( "ksession2" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( ksession )
startActivityInThisAppTestCase ( ) { io . appium . java_client . android . Activity activity = new io . appium . java_client . android . Activity ( "io.appium.android.apis" , ".accessibility.AccessibilityNodeProviderActivity" ) ; driver . startActivity ( activity ) ; "<AssertPlaceHolder>" ; } currentActivity ( ) { retu...
org . junit . Assert . assertEquals ( driver . currentActivity ( ) , ".accessibility.AccessibilityNodeProviderActivity" )
equals_trueForSameInstance ( ) { org . eclipse . rap . json . JsonNumber number = new org . eclipse . rap . json . JsonNumber ( "23" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) re...
org . junit . Assert . assertTrue ( number . equals ( number ) )
testBatchTenantIdCase3 ( ) { org . camunda . bpm . engine . batch . Batch batch = batchHelper . migrateProcessInstanceAsync ( sharedDefinition , tenant1Definition ) ; "<AssertPlaceHolder>" ; } getTenantId ( ) { return tenantId ; }
org . junit . Assert . assertNull ( batch . getTenantId ( ) )
treeMenuRoot ( ) { java . util . List < ? extends org . geosdi . geoplatform . gui . configuration . GPMenuGenericTool > tools = gpTreeMenuStore . getTools ( new org . geosdi . geoplatform . gui . configuration . composite . menu . store . SingleSelectionCompositeKey ( org . geosdi . geoplatform . gui . configuration ....
org . junit . Assert . assertEquals ( 2 , tools . size ( ) )
shouldAddRecords ( ) { int initialRecordCount = journal . allRecords ( false ) . size ( ) ; journal . addRecords ( new org . modeshape . jcr . journal . JournalRecord ( org . modeshape . jcr . journal . LocalJournalTest . TestChangeSet . create ( "j4" , 2 ) ) , new org . modeshape . jcr . journal . JournalRecord ( org ...
org . junit . Assert . assertEquals ( ( initialRecordCount + 3 ) , journal . allRecords ( false ) . size ( ) )
isImportInProgress ( ) { com . gisgraphy . webapp . action . ImportAction action = new com . gisgraphy . webapp . action . ImportAction ( ) ; com . gisgraphy . importer . ImporterManager mockImporterManager = org . easymock . EasyMock . createMock ( com . gisgraphy . importer . ImporterManager . class ) ; boolean isInP...
org . junit . Assert . assertEquals ( isInProgressState , action . isImportInProgress ( ) )
test3_testDeleteGlossary ( ) { com . google . cloud . translate . v3beta1 . DeleteGlossaryResponse response = com . google . cloud . examples . translate . snippets . TranslateSnippetsBeta . deleteGlossary ( com . google . cloud . examples . translate . snippets . ITTranslateSnippetsBeta . projectId , "us-central1" , "...
org . junit . Assert . assertTrue ( response . toString ( ) , response . toString ( ) . contains ( "glossary-testing" ) )
testAuthorizerExtension ( ) { org . apache . twill . filesystem . Location externalAuthJar = createValidAuthExtensionJar ( ) ; io . cdap . cdap . common . conf . CConfiguration cConfCopy = io . cdap . cdap . common . conf . CConfiguration . copy ( io . cdap . cdap . security . authorization . CCONF ) ; cConfCopy . set ...
org . junit . Assert . assertNotNull ( authorizerClassLoader . getResource ( "conf-file.xml" ) )
hashCode2 ( ) { com . querydsl . sql . domain . QSurvey survey = new com . querydsl . sql . domain . QSurvey ( "entity" ) ; com . querydsl . sql . domain . QEmployee employee = new com . querydsl . sql . domain . QEmployee ( "entity" ) ; com . querydsl . core . types . SubQueryExpression < java . lang . Integer > query...
org . junit . Assert . assertEquals ( 1 , queries . size ( ) )
testHandleWithException ( ) { boolean validAssert ; com . netflix . hystrix . strategy . HystrixPlugins . reset ( ) ; try { validAssert = true ; bizkeeperHandler . handle ( invocation , asyncResp ) ; } catch ( java . lang . Exception e ) { validAssert = false ; } "<AssertPlaceHolder>" ; } handle ( java . lang . String ...
org . junit . Assert . assertFalse ( validAssert )
componentTest ( ) { com . ctrip . framework . cs . component . ComponentManager . add ( com . ctrip . framework . cs . AppInfo . class ) ; com . ctrip . framework . cs . component . ComponentManager . add ( com . ctrip . framework . cs . component . defaultComponents . HostInfo . class ) ; com . ctrip . framework . cs ...
org . junit . Assert . assertTrue ( components . containsKey ( compAnnotation . id ( ) ) )
testDeletePrimaryIndexKeyMultipleNodes ( ) { org . hivedb . meta . directory . DbDirectory d = getDirectory ( ) ; org . hivedb . Hive hive = getHive ( ) ; for ( java . lang . String key : getPrimaryIndexOrResourceKeys ( ) ) for ( org . hivedb . meta . Node node : hive . getNodes ( ) ) d . insertPrimaryIndexKey ( node ,...
org . junit . Assert . assertEquals ( 0 , d . getKeySemamphoresOfPrimaryIndexKey ( key ) . size ( ) )
testGetUserByUsernameLike ( ) { java . util . List < org . ikasan . security . model . User > users = this . xaUserDao . getUserByUsernameLike ( "user" ) ; "<AssertPlaceHolder>" ; } size ( ) { logger . debug ( "Size!<sp>" ) ; return 15000 ; }
org . junit . Assert . assertNotNull ( ( ( users . size ( ) ) == 1 ) )
test_matchSubUrls_ok_one_param_suffix ( ) { java . util . Map < java . lang . String , java . lang . String > params = urlMarcher . matchSubUrls ( "{id}-test" , "abc-test" ) ; java . util . Map < java . lang . String , java . lang . String > expectParams = new java . util . HashMap < java . lang . String , java . lang ...
org . junit . Assert . assertTrue ( params . equals ( expectParams ) )
testValidateLimits0 ( ) { java . lang . String string = "<sp>" ; boolean result = org . oscm . validator . ADMValidator . containsOnlyValidIdChars ( string ) ; "<AssertPlaceHolder>" ; } containsOnlyValidIdChars ( java . lang . String ) { if ( value == null ) { return true ; } java . util . regex . Matcher matcher = org...
org . junit . Assert . assertTrue ( result )
testGetSummaryString1Element ( ) { com . box . l10n . mojito . service . branch . notification . slack . BranchNotificationMessageBuilderSlack branchNotificationMessageBuilderSlack = getBranchNotificationMessageBuilder ( ) ; java . lang . String summaryString = branchNotificationMessageBuilderSlack . getSummaryString (...
org . junit . Assert . assertEquals ( "string<sp>1" , summaryString )
testBlanksSituation ( ) { nom . tam . fits . FitsFactory . setLongStringsEnabled ( true ) ; nom . tam . fits . FitsFactory . setUseHierarch ( true ) ; nom . tam . fits . FitsFactory . setHierarchFormater ( new nom . tam . fits . header . hierarch . BlanksDotHierarchKeyFormatter ( 2 ) ) ; nom . tam . fits . Fits fitsSrc...
org . junit . Assert . assertTrue ( headerCard . toString ( ) . startsWith ( start ) )
testToStringOfCircularObject ( ) { just . niubi . json . Json . Json x = just . niubi . json . Json . Json . object ( "name" , "x" , "tuple" , just . niubi . json . Json . Json . array ( ) ) ; just . niubi . json . Json . Json y = just . niubi . json . Json . Json . object ( "backref" , x ) ; x . at ( "tuple" ) . add (...
org . junit . Assert . assertTrue ( asstring . contains ( "tuple" ) )
testUpdateClusterAssignmentData ( ) { org . apache . bookkeeper . stream . proto . cluster . ClusterAssignmentData assignmentData = org . apache . bookkeeper . stream . proto . cluster . ClusterAssignmentData . newBuilder ( ) . putServers ( "server-0" , org . apache . bookkeeper . stream . proto . cluster . ServerAssig...
org . junit . Assert . assertEquals ( assignmentData , store . getClusterAssignmentData ( ) )
testImportTechnicalService_OnBehalfActingNotSet ( ) { svcProv . importTechnicalServices ( org . oscm . serviceprovisioningservice . bean . TECHNICAL_SERVICES_XML . getBytes ( "UTF-8" ) ) ; runTX ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . oscm . serviceprovisioningservice . bean . Ove...
org . junit . Assert . assertEquals ( false , techPrd . isAllowingOnBehalfActing ( ) )
t01_find ( ) { com . jajja . jorm . Transaction moria = psql . Moria . open ( ) ; try { moria . Goblin goblin = moria . select ( moria . Goblin . class , "SELECT<sp>*<sp>FROM<sp>#1#<sp>LIMIT<sp>1" , moria . Goblin . class ) ; "<AssertPlaceHolder>" ; } catch ( java . sql . SQLException e ) { e . printStackTrace ( ) ; or...
org . junit . Assert . assertNotNull ( goblin )
shouldReturnNullWhenNullIsProvided ( ) { java . util . Properties props = new java . util . Properties ( ) ; org . aeonbits . owner . StrSubstitutor substitutor = new org . aeonbits . owner . StrSubstitutor ( props ) ; "<AssertPlaceHolder>" ; } replace ( java . lang . String ) { if ( source == null ) return null ; java...
org . junit . Assert . assertNull ( substitutor . replace ( null ) )
test_getDataSet ( ) { cn . cerc . core . DataSet ds = new cn . cerc . core . DataSet ( ) ; for ( int i = 1 ; i < 3 ; i ++ ) ds . append ( ) . setField ( "Code" , ( "C00" + i ) ) . setField ( "Name" , ( "N00" + i ) ) ; java . lang . String str = cn . cerc . mis . mail . HtmlGrid . getDataSet ( ds ) ; "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( ( ! ( "" . equals ( str ) ) ) )
deserializationSortedTest ( ) { org . springframework . core . io . Resource r = new org . springframework . core . io . ClassPathResource ( "sorted-feed.json" ) ; java . lang . String json = org . apache . commons . io . IOUtils . toString ( r . getInputStream ( ) , java . nio . charset . Charset . defaultCharset ( ) ...
org . junit . Assert . assertNotNull ( feed )
getAccessLevelWithGuestUserAndGuestOwner ( ) { org . phenotips . data . Patient p = mock ( org . phenotips . data . Patient . class ) ; org . phenotips . data . permissions . internal . EntityAccessHelper helper = mock ( org . phenotips . data . permissions . internal . EntityAccessHelper . class ) ; org . phenotips . ...
org . junit . Assert . assertSame ( owner , pa . getAccessLevel ( ) )
testTimeFor_FiftyThousand ( ) { tests . models . Choir testChoir = new tests . models . Choir ( ) ; tests . models . Address choirAddress = new tests . models . Address ( ) ; choirAddress . setCity ( "Omaha" ) ; choirAddress . setState ( "NE" ) ; testChoir . setChoirName ( "Omaha<sp>Children's<sp>Choir" ) ; testChoir ....
org . junit . Assert . assertNotNull ( result )
testDictionaryToMap ( ) { java . util . Dictionary < java . lang . String , java . lang . Object > dict = new org . osgi . util . converter . TestDictionary ( ) ; dict . put ( "foo" , "hello" ) ; @ org . osgi . util . converter . SuppressWarnings ( "rawtypes" ) java . util . Map m = converter . convert ( dict ) . to ( ...
org . junit . Assert . assertEquals ( "hello" , m . get ( "foo" ) )
testBasicGetNextLogic ( ) { final org . apache . flink . runtime . io . network . partition . consumer . SingleInputGate inputGate = createInputGate ( ) ; final org . apache . flink . runtime . io . network . partition . consumer . TestInputChannel [ ] inputChannels = new org . apache . flink . runtime . io . network ....
org . junit . Assert . assertTrue ( inputGate . isFinished ( ) )
classifyByDataSourceUrlTest ( ) { final java . lang . String id = "test_app" ; long timestamp = new com . navercorp . pinpoint . web . service . stat . Date ( ) . getTime ( ) ; com . navercorp . pinpoint . web . service . stat . ApplicationDataSourceService applicationDataSourceService = new com . navercorp . pinpoint ...
org . junit . Assert . assertEquals ( dataSourceKeyListMap . size ( ) , 5 )
addClassifierEmptyAcl ( ) { org . opendaylight . sfc . scfofrenderer . processors . OpenflowClassifierProcessor classifierManager = new org . opendaylight . sfc . scfofrenderer . processors . OpenflowClassifierProcessor ( readWriteTransaction , classifierInterface , new org . opendaylight . sfc . scfofrenderer . flowge...
org . junit . Assert . assertTrue ( theFlows . isEmpty ( ) )
shouldReturnOkWhenRetrievingStats ( ) { doReturn ( true ) . when ( restApiConfiguration ) . hasKeys ( PublicApiServiceConfigurationKeys . stats ) ; doReturn ( "true" ) . when ( restApiConfiguration ) . getString ( PublicApiServiceConfigurationKeys . stats ) ; when ( loadBalancerService . get ( anyInt ( ) , anyInt ( ) )...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
validate_shouldPassWhenObsHasValidConceptIdAndValidConceptAnswerIds ( ) { java . lang . String xml = "<htmlform><obs<sp>conceptId=\"21\"<sp>answerConceptIds=\"7,8\">TEST</obs></htmlform>" ; org . openmrs . module . htmlformentry . handler . TagAnalysis analysis = validateObsTag ( xml ) ; "<AssertPlaceHolder>" ; } getWa...
org . junit . Assert . assertEquals ( 0 , analysis . getWarnings ( ) . size ( ) )
testAddAdditionalProperties ( ) { com . streamsets . pipeline . stage . destination . elasticsearch . ElasticsearchTarget target = createTarget ( "${time:now()}" , "${record:value('/index')}" , "docId" , ElasticsearchOperationType . UPDATE , "" , "" ) ; java . lang . String expected = ",\"_retry_on_conflict\":1" ; "<As...
org . junit . Assert . assertEquals ( expected , target . addAdditionalProperties ( ) )
testKeep ( ) { com . performizeit . mjprof . parser . ThreadInfo js = new com . performizeit . mjprof . parser . ThreadInfo ( ( ( ( ( strt ) + ( stck ) ) + ( akkka ) ) + ( stck2 ) ) ) ; com . performizeit . mjprof . plugins . mappers . singlethread . StackFrameContains tb = new com . performizeit . mjprof . plugins . m...
org . junit . Assert . assertEquals ( ( ( strt ) + ( akkka ) ) , js2 . toString ( ) )
shouldCloseAllOperationInputsWhenExceptionIsThrownWhenJobExecuted ( ) { final java . lang . Exception exception = mock ( uk . gov . gchq . gaffer . graph . RuntimeException . class ) ; final uk . gov . gchq . gaffer . store . Store store = mock ( uk . gov . gchq . gaffer . store . Store . class ) ; given ( store . exec...
org . junit . Assert . assertSame ( exception , e )
testContentTypeApplicationXml ( ) { org . r10r . doctester . testbrowser . Request request = org . r10r . doctester . testbrowser . Request . GET ( ) . contentTypeApplicationXml ( ) ; "<AssertPlaceHolder>" ; } contentTypeApplicationXml ( ) { addHeader ( HttpConstants . HEADER_CONTENT_TYPE , HttpConstants . APPLICATION_...
org . junit . Assert . assertThat ( request . headers . get ( HttpConstants . HEADER_CONTENT_TYPE ) , org . hamcrest . CoreMatchers . equalTo ( HttpConstants . APPLICATION_XML_WITH_CHARSET_UTF_8 ) )
testGetSinaStockClassUrl ( ) { java . lang . String curl = cn . edu . zju . vlis . bigdata . common . UrlFactory . getSinaStockClassUrl ( "class" ) ; java . lang . String expUrl = "http://money.finance.sina.com.cn/q/view/newFLJK.php?param=class" ; "<AssertPlaceHolder>" ; } getSinaStockClassUrl ( java . lang . String ) ...
org . junit . Assert . assertEquals ( expUrl , curl )
testEncode ( ) { System . out . println ( "encode" ) ; java . lang . CharSequence rawPassword = "test" ; java . lang . String expResult = "test" ; java . lang . String result = instance . encode ( rawPassword ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expResult , result )
testAllLocationsHealthy ( ) { final java . util . List < org . apache . hadoop . hdfs . server . datanode . StorageLocation > locations = makeMockLocations ( org . apache . hadoop . hdfs . server . datanode . checker . HEALTHY , org . apache . hadoop . hdfs . server . datanode . checker . HEALTHY , org . apache . hadoo...
org . junit . Assert . assertThat ( filteredLocations . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
shouldFindValuesWithinRange ( ) { final java . lang . String key = "a" ; bytesStore . put ( serializeKey ( new org . apache . kafka . streams . kstream . Windowed ( key , windows [ 0 ] ) ) , serializeValue ( 10 ) ) ; bytesStore . put ( serializeKey ( new org . apache . kafka . streams . kstream . Windowed ( key , windo...
org . junit . Assert . assertEquals ( expected , toList ( results ) )
whenActivityStateIsSetWithGenericMethodAndInteger_itMustBeSetCorrectly ( ) { jsprit . core . problem . solution . route . activity . TourActivity activity = mock ( jsprit . core . problem . solution . route . activity . TourActivity . class ) ; when ( activity . getIndex ( ) ) . thenReturn ( 1 ) ; jsprit . core . algor...
org . junit . Assert . assertEquals ( 3 , getLoad )
printRyaStreamsDetails_configured ( ) { final org . apache . rya . api . client . RyaClient mockCommands = mock ( org . apache . rya . api . client . RyaClient . class ) ; final org . apache . rya . api . client . GetInstanceDetails getDetails = mock ( org . apache . rya . api . client . GetInstanceDetails . class ) ; ...
org . junit . Assert . assertEquals ( expected , message )
test ( ) { java . util . List < edu . emory . clir . clearnlp . collection . pair . ObjectIntPair < java . lang . String > > items = edu . emory . clir . clearnlp . util . DSUtils . toArrayList ( new edu . emory . clir . clearnlp . collection . pair . ObjectIntPair < java . lang . String > ( "A" , 1 ) , new edu . emory...
org . junit . Assert . assertEquals ( item . o , map . get ( item . i ) )
testHandleUrlAsPath ( ) { final java . lang . String hostPart = "swift://container.service1" ; final java . lang . String pathPart = "/home/user/files/file1" ; final java . lang . String uriString = hostPart + pathPart ; final org . apache . hadoop . fs . swift . util . SwiftObjectPath expected = new org . apache . had...
org . junit . Assert . assertEquals ( expected , actual )
create_new_set_apache ( ) { @ com . levelup . java . collections . SuppressWarnings ( "unchecked" ) java . util . Set < java . lang . String > newSet = org . apache . commons . collections . SetUtils . EMPTY_SET ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( newSet )
testIn ( ) { java . util . List < java . lang . String > names = new java . util . ArrayList < java . lang . String > ( ) ; names . add ( "" ) ; names . add ( "" ) ; template . in ( "name" , names ) ; java . util . List < java . lang . Object > list = template . getResultList ( ) ; "<AssertPlaceHolder>" ; } size ( ) { ...
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == 2 ) )
testMapExists ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( map )
buildDownstream ( ) { com . vackosar . gitflowincrementalbuild . boundary . Configuration configuration = new com . vackosar . gitflowincrementalbuild . boundary . Configuration . Provider ( mavenSessionMock ) . get ( ) ; "<AssertPlaceHolder>" ; verify ( mavenExecutionRequestMock , times ( 1 ) ) . getMakeBehavior ( ) ;...
org . junit . Assert . assertTrue ( configuration . buildDownstream )
getNodeReturnsNodeIfExists ( ) { final com . b2international . snowowl . snomed . core . tree . TerminologyTree tree = new com . b2international . snowowl . snomed . core . tree . TerminologyTreeTest . TestTree ( ) . addNode ( com . b2international . snowowl . snomed . core . tree . TerminologyTreeTest . N1 ) . build (...
org . junit . Assert . assertNotNull ( tree . getNode ( com . b2international . snowowl . snomed . core . tree . TerminologyTreeTest . N1 ) )
testGetByAccFail ( ) { uk . ac . ebi . bioinvindex . model . Study study = dao . getByAcc ( "not_existing_acc" ) ; "<AssertPlaceHolder>" ; } getByAcc ( java . lang . String ) { java . lang . Class < T > clazz = uk . ac . ebi . bioinvindex . dao . ejb3 . OntologyEntryEJB3DAO . getPersistentClass ( ) ; return ( ( T ) ( u...
org . junit . Assert . assertNull ( study )
testSetForeground_acceptsNull ( ) { org . eclipse . rap . rwt . template . Cell cell = new org . eclipse . rap . rwt . template . TestCell ( template , "foo" ) ; cell . setForeground ( new org . eclipse . swt . graphics . Color ( display , 0 , 0 , 0 ) ) ; cell . setForeground ( null ) ; "<AssertPlaceHolder>" ; } getFor...
org . junit . Assert . assertNull ( cell . getForeground ( ) )
postUpdate ( ) { java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( ChangeTripleService . POST_BODY_CHANGETYPE , ChangeTripleService . CHANGETYPE_UPDATE ) ; props . setProperty ( ChangeTripleService . POST_BODY_AFFECTEDTRIPLE , "<http://example.org/myconcept><sp><http://www.w3.org...
org . junit . Assert . assertEquals ( 200 , postChangeset ( props ) )
testDescription ( ) { final java . lang . String name = "description<sp>text" ; testMember . addFacet ( new org . apache . isis . core . metamodel . facets . all . describedas . DescribedAsFacetAbstract ( name , testMember ) { } ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { return ( org . apache . isis . core . me...
org . junit . Assert . assertEquals ( name , testMember . getDescription ( ) )
test_deployComponent_withIndexBean_nullFile ( ) { org . talend . updates . runtime . nexus . component . NexusShareComponentsManagerTest . NexusShareComponentsManagerTestClass shareManager = new org . talend . updates . runtime . nexus . component . NexusShareComponentsManagerTest . NexusShareComponentsManagerTestClass...
org . junit . Assert . assertFalse ( deployed )
testSerialization ( ) { final org . apache . logging . log4j . util . SortedArrayStringMap original = new org . apache . logging . log4j . util . SortedArrayStringMap ( ) ; original . putValue ( "a" , "avalue" ) ; original . putValue ( "B" , "Bvalue" ) ; original . putValue ( "3" , "3value" ) ; final byte [ ] binary = ...
org . junit . Assert . assertEquals ( original , copy )
sourceFileToToolTests ( ) { io . dockstore . webservice . core . SourceFile sourceFile = new io . dockstore . webservice . core . SourceFile ( ) ; sourceFile . setType ( SourceFile . FileType . CWL_TEST_JSON ) ; sourceFile . setPath ( "/test.cwl.json" ) ; sourceFile . setAbsolutePath ( "/test.cwl.json" ) ; sourceFile ....
org . junit . Assert . assertEquals ( expectedToolTests , actualToolTests )
parseSignature_4 ( ) { final java . lang . String sig = "l3axl2sad" ; final org . erlide . util . erlang . Signature [ ] result = org . erlide . util . erlang . Signature . parse ( sig ) ; final java . lang . String expect = "[l(t(a,x,l(t(s,a)))),<sp>d]" ; "<AssertPlaceHolder>" ; } toString ( int ) { final java . lang ...
org . junit . Assert . assertTrue ( java . util . Arrays . toString ( result ) . equals ( expect ) )
testTestBKConfiguration ( ) { java . lang . Class . forName ( "org.apache.bookkeeper.conf.TestBKConfiguration" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testGetAsObjectOneSpace ( ) { java . lang . String in = "<sp>" ; java . lang . String out = ( ( java . lang . String ) ( converter . getAsObject ( context , component , in ) ) ) ; "<AssertPlaceHolder>" ; } getAsObject ( javax . faces . context . FacesContext , javax . faces . component . UIComponent , java . lang . Str...
org . junit . Assert . assertEquals ( null , out )