input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testNodeReplacementInEmptyNetwork ( ) { org . apache . beam . vendor . guava . v20_0 . com . google . common . graph . MutableNetwork < java . lang . String , java . lang . String > network = org . apache . beam . runners . core . construction . graph . NetworksTest . createEmptyNetwork ( ) ; org . apache . beam . runn...
org . junit . Assert . assertThat ( network . nodes ( ) , empty ( ) )
serializeDeserialize_sameObject ( ) { byte [ ] serializedValue = objectMapper . writeValueAsBytes ( window ) ; com . neovim . Window deserializedValue = objectMapper . readValue ( serializedValue , com . neovim . Window . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( deserializedValue , org . hamcrest . core . Is . is ( window ) )
whenCreatingBranchWithMetadata_ThenItShouldBeStored ( ) { final com . b2international . commons . options . Metadata metadata = new com . b2international . commons . options . MetadataImpl ( ) ; metadata . put ( "key" , "value" ) ; final java . lang . String b = branching ( ) . createBranch ( com . b2international . in...
org . junit . Assert . assertEquals ( "value" , getBranch ( b ) . metadata ( ) . get ( "key" ) )
contentTypeServiceDocumentXml ( ) { final org . apache . http . HttpResponse response = callUri ( "" , HttpHeaders . ACCEPT , HttpContentType . APPLICATION_XML , HttpStatusCodes . OK ) ; checkMediaType ( response , HttpContentType . APPLICATION_XML_UTF8 ) ; "<AssertPlaceHolder>" ; } getBody ( org . apache . http . Http...
org . junit . Assert . assertTrue ( ( ( getBody ( response ) . length ( ) ) > 100 ) )
testGreaterThanRecordThresholdCount ( ) { int thresholdVolume = 5 ; int uploadCheckPeriod = 2000 ; org . kaaproject . kaa . client . logging . LogStorageStatus logStorageStatus = org . mockito . Mockito . mock ( org . kaaproject . kaa . client . logging . LogStorageStatus . class ) ; org . mockito . Mockito . when ( lo...
org . junit . Assert . assertEquals ( strategy . checkUploadNeeded ( logStorageStatus ) , LogUploadStrategyDecision . UPLOAD )
experimentTypeLearningCurvedFixedTest ( ) { builder . experiment ( org . dkpro . tc . ml . experiment . builder . LEARNING_CURVE_FIXED_TEST_SET , "fixedTest" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return name ; }
org . junit . Assert . assertEquals ( builder . type . toString ( ) , org . dkpro . tc . ml . experiment . builder . LEARNING_CURVE_FIXED_TEST_SET . toString ( ) )
testGetCriteriaByTemplateId ( ) { int templateId1 = 101 ; int templateId2 = 202 ; org . oscarehr . PMmodule . model . Criteria criteria1 = new org . oscarehr . PMmodule . model . Criteria ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( criteria1 ) ; criteria1 . setTem...
org . junit . Assert . assertTrue ( true )
testMultiNormalizerHybridGlobalAndSpecificStats ( ) { org . nd4j . linalg . dataset . MultiNormalizerHybrid original = new org . nd4j . linalg . dataset . MultiNormalizerHybrid ( ) . standardizeAllInputs ( ) . minMaxScaleInput ( 0 , ( - 5 ) , 5 ) . minMaxScaleAllOutputs ( ( - 10 ) , 10 ) . standardizeOutput ( 1 ) ; jav...
org . junit . Assert . assertEquals ( original , restored )
testSyncCreateGroupNesting ( ) { syncConfig . user ( ) . setMembershipNestingDepth ( 2 ) ; org . apache . jackrabbit . api . security . user . UserManager userManager = getUserManager ( root ) ; org . apache . jackrabbit . oak . api . ContentSession cs = null ; try { cs = login ( new javax . jcr . SimpleCredentials ( U...
org . junit . Assert . assertNotNull ( userManager . getAuthorizable ( id ) )
thatWhichGoesInIsThatWhichComesOutAgain ( ) { com . github . danielflower . mavenplugins . gitlog . renderers . NullMessageConverter converter = new com . github . danielflower . mavenplugins . gitlog . renderers . NullMessageConverter ( ) ; java . lang . String someText = "Yeah<sp>1<sp>#1<sp>GH-1<sp>yeah<sp>yeah" ; "<...
org . junit . Assert . assertEquals ( someText , converter . formatCommitMessage ( someText ) )
testRecordCountForIsValid ( ) { org . xbill . DNS . Message m = new org . xbill . DNS . Message ( ) ; m . addRecord ( new org . xbill . DNS . ARecord ( org . xbill . DNS . Name . root , org . xbill . DNS . DClass . IN , 0 , java . net . InetAddress . getByAddress ( new byte [ ] { 0 , 0 , 0 , 0 } ) ) , Section . ANSWER ...
org . junit . Assert . assertEquals ( 1 , count )
testLocaleMatches ( ) { final org . apache . commons . lang3 . time . DateParser parser = getInstance ( org . apache . commons . lang3 . time . FastDateParserTest . yMdHmsSZ , org . apache . commons . lang3 . time . FastDateParserTest . SWEDEN ) ; "<AssertPlaceHolder>" ; } getLocale ( ) { return mLocale ; }
org . junit . Assert . assertEquals ( org . apache . commons . lang3 . time . FastDateParserTest . SWEDEN , parser . getLocale ( ) )
of_File_empty ( ) { java . io . File [ ] f = new java . io . File [ 0 ] ; try { net . coobird . thumbnailator . Thumbnails . of ( f ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; throw e ; } } of ( java . lang . String [ ] ) { net . coobird . thumbna...
org . junit . Assert . assertEquals ( "Cannot<sp>specify<sp>an<sp>empty<sp>array<sp>for<sp>input<sp>files." , e . getMessage ( ) )
testHasDependencyExcludingVersionWhenDependencyHasDifferentType ( ) { final org . springframework . roo . project . Dependency mockExistingDependency = getMockDependency ( org . springframework . roo . project . maven . PomTest . DEPENDENCY_GROUP_ID , org . springframework . roo . project . maven . PomTest . DEPENDENCY...
org . junit . Assert . assertFalse ( pom . hasDependencyExcludingVersion ( mockOtherDependency ) )
noSubscriptions ( ) { doReturn ( org . oscm . billingservice . business . calculation . revenue . PerformBillingRunForSubscriptionTest . createDocument ( false ) ) . when ( bb ) . createBillingDataForOrganization ( any ( org . oscm . billingservice . service . model . BillingInput . class ) , any ( org . oscm . domobje...
org . junit . Assert . assertEquals ( "" , result . getResultXML ( ) )
registerMetricSet ( ) { net . centro . rtb . monitoringcenter . MetricCollector metricCollector = net . centro . rtb . monitoringcenter . MonitoringCenter . getMetricCollector ( net . centro . rtb . monitoringcenter . MonitoringCenterTest . class ) ; net . centro . rtb . monitoringcenter . MetricSet metricSet = new net...
org . junit . Assert . assertTrue ( ( e instanceof java . lang . IllegalArgumentException ) )
any ( ) { final com . b2international . index . query . Expression actual = eval ( "*" ) ; final com . b2international . index . query . Expression expected = com . b2international . index . query . Expressions . matchAll ( ) ; "<AssertPlaceHolder>" ; } matchAll ( ) { return MatchAll . INSTANCE ; }
org . junit . Assert . assertEquals ( expected , actual )
testBuildContainerWithParentAttribute ( ) { com . picocontainer . classname . DefaultClassLoadingPicoContainer parent = new com . picocontainer . classname . DefaultClassLoadingPicoContainer ( ) ; parent . addComponent ( "hello" , "world" ) ; java . io . Reader script = new java . io . StringReader ( ( "A<sp>=<sp>com.p...
org . junit . Assert . assertEquals ( "world" , pico . getComponent ( "hello" ) )
getNewTestCaseSourceCode_A$_Slim3_AbstractModelRef ( ) { java . lang . String encoding = org . junithelper . core . util . UniversalDetectorUtil . getDetectedEncoding ( org . junithelper . core . util . IOUtil . getResourceAsStream ( "inputs/Slim3_AbstractModelRef.txt" ) ) ; java . lang . String sourceCodeString = org ...
org . junit . Assert . assertNotNull ( actual )
isArray_A$String_StringIsNull ( ) { org . junithelper . core . meta . ClassMeta classMeta = null ; org . junithelper . core . extractor . AvailableTypeDetector target = new org . junithelper . core . extractor . AvailableTypeDetector ( classMeta ) ; java . lang . String typeName = null ; boolean actual = target . isArr...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testJarReader ( ) { com . blade . ioc . reader . JarReaderImpl jarReader = new com . blade . ioc . reader . JarReaderImpl ( ) ; java . util . Set < com . blade . ioc . bean . ClassInfo > classInfos = jarReader . readClasses ( com . blade . ioc . bean . Scanner . builder ( ) . packageName ( "org.slf4j.impl" ) . build ( ...
org . junit . Assert . assertNotNull ( classInfos )
testModifyOverrideForcesNameToLowercase ( ) { org . candlepin . model . ConsumerContentOverride override = new org . candlepin . model . ConsumerContentOverride ( consumer , "test-repo" , "gpgcheck" , "0" ) ; org . candlepin . model . ConsumerContentOverride created = this . consumerContentOverrideCurator . create ( ov...
org . junit . Assert . assertEquals ( "gpgcheck" , merged . getName ( ) )
validAugAbsTest ( ) { final org . opendaylight . yangtools . yang . parser . stmt . reactor . ReactorDeclaredModel result = org . opendaylight . yangtools . yang . parser . rfc7950 . reactor . RFC7950Reactors . defaultReactor ( ) . newBuild ( ) . addSources ( org . opendaylight . yangtools . yang . stmt . AugmentArgume...
org . junit . Assert . assertNotNull ( result )
testReferenceSchema ( ) { final java . net . URL url = getClass ( ) . getClassLoader ( ) . getResource ( "reference-schema.json" ) ; java . util . Objects . requireNonNull ( url ) ; final java . lang . String schema = org . apache . flink . util . FileUtils . readFileUtf8 ( new java . io . File ( url . getFile ( ) ) ) ...
org . junit . Assert . assertEquals ( expected , result )
testParseQueryOnly ( ) { final fr . gouv . vitam . common . database . parser . request . multiple . SelectParserMultiple request = new fr . gouv . vitam . common . database . parser . request . multiple . SelectParserMultiple ( ) ; final java . lang . String ex = "{}" ; request . parseQueryOnly ( ex ) ; "<AssertPlaceH...
org . junit . Assert . assertNotNull ( request )
encodeLabelShouldSucceed ( ) { java . lang . String label = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-~_@:!$&'()*+,;=<sp>?/" ; java . lang . String expected = ( ( ( ( ( label . substring ( 0 , ( ( label . length ( ) ) - 3 ) ) ) + "%20" ) + "%" ) + ( java . lang . Integer . toHexString ( '?' ) . t...
org . junit . Assert . assertEquals ( expected , com . lochbridge . oath . otp . keyprovisioning . OTPAuthURI . encodeLabel ( label ) )
saveExperimentPageStateExceptionTest ( ) { com . intuit . wasabi . experimentobjects . Experiment . ID experimentID = Experiment . ID . valueOf ( experimentId ) ; com . intuit . wasabi . experimentobjects . ExperimentPageList oldPageList = new com . intuit . wasabi . experimentobjects . ExperimentPageList ( ) ; com . i...
org . junit . Assert . assertThat ( 1 , org . hamcrest . CoreMatchers . is ( 2 ) )
testGetAccelerationCache_List_ExecutorService ( ) { System . out . println ( "getAccelerationCache" ) ; java . util . List < ? extends jsat . linear . Vec > vecs = null ; java . util . concurrent . ExecutorService threadpool = null ; jsat . linear . distancemetrics . JaccardDistance instance = new jsat . linear . dista...
org . junit . Assert . assertEquals ( expResult , result )
testToUnsignedByteArrayInt_HighestBit ( ) { byte [ ] actual = de . persosim . simulator . utils . Utils . toUnsignedByteArray ( ( ( int ) ( - 2146360813 ) ) ) ; byte [ ] expected = new byte [ ] { ( ( byte ) ( 128 ) ) , ( ( byte ) ( 17 ) ) , ( ( byte ) ( 34 ) ) , ( ( byte ) ( 19 ) ) } ; "<AssertPlaceHolder>" ; } toUnsig...
org . junit . Assert . assertArrayEquals ( expected , actual )
testRequestId ( ) { com . google . apphosting . api . ApiProxy . Environment env = com . google . apphosting . api . ApiProxy . getCurrentEnvironment ( ) ; java . lang . String requestId = ( ( java . lang . String ) ( env . getAttributes ( ) . get ( "com.google.appengine.runtime.request_log_id" ) ) ) ; java . lang . St...
org . junit . Assert . assertNotNull ( errMsg , requestId )
customStringRequest ( ) { java . lang . String customData = "{\"c\":1.0}" ; io . seldon . protos . PredictionProtos . SeldonMessage . Builder b = io . seldon . protos . PredictionProtos . SeldonMessage . newBuilder ( ) ; b . setStrData ( customData ) ; io . seldon . protos . PredictionProtos . SeldonMessage request = b...
org . junit . Assert . assertEquals ( json , json2 )
testFindSimilarMedicationsNoSimilar ( ) { org . mockito . Mockito . when ( medicationsDao . findSimilarMedicationsIds ( anyLong ( ) , anyListOf ( com . marand . thinkmed . medications . business . Long . class ) , any ( ) ) ) . thenReturn ( java . util . Collections . emptySet ( ) ) ; final java . util . List < com . m...
org . junit . Assert . assertTrue ( searchResult . isEmpty ( ) )
testSanitizerStyleBadPadding ( ) { java . lang . String input = "<p<sp>style=\"padding-left:<sp>any;\">content</p>" ; java . lang . String expected = "<p<sp>style=\"\">content</p>" ; "<AssertPlaceHolder>" ; } sanitize ( java . lang . String ) { return com . github . bordertech . wcomponents . util . HtmlSanitizerUtil ....
org . junit . Assert . assertEquals ( expected , com . github . bordertech . wcomponents . util . HtmlSanitizerUtil . sanitize ( input ) )
addIndexBothRemovedTest ( ) { org . threadly . concurrent . collections . ConcurrentArrayList . DataSet < java . lang . Integer > result = org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . removedFromBoth . add ( 5 , 100 ) . add ( 0 , 200 ) ; java . lang . Integer [ ] expectedResult = new jav...
org . junit . Assert . assertTrue ( result . equals ( org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . makeDataSet ( expectedResult , 0 , expectedResult . length ) ) )
testFreeSelectSqlBuilderInTableShardsWithTableName ( ) { java . util . List < java . lang . Integer > list = new java . util . ArrayList ( ) ; list . add ( 3 ) ; list . add ( 4 ) ; com . ctrip . platform . dal . dao . sqlbuilder . FreeSelectSqlBuilder < java . util . List < com . ctrip . platform . dal . dao . shard . ...
org . junit . Assert . assertEquals ( 3 , result . size ( ) )
testAvroDataFileWriteRead ( ) { com . cloudera . flume . handlers . debug . MemorySinkSource mem = com . cloudera . flume . handlers . debug . MemorySinkSource . cannedData ( "test<sp>" , 5 ) ; java . io . File f = com . cloudera . util . FileUtil . createTempFile ( "avrodata" , ".avro" ) ; f . deleteOnExit ( ) ; com ....
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( eout . getBody ( ) , expected . getBody ( ) ) )
removeFilter_A$Class ( ) { org . junithelper . core . filter . TrimFilterManager target = new org . junithelper . core . filter . TrimFilterManager ( ) ; target . addFilter ( new org . junithelper . core . filter . impl . TrimCommentFilter ( ) , new org . junithelper . core . filter . impl . TrimInsideOfBraceFilter ( )...
org . junit . Assert . assertEquals ( 2 , target . getFilters ( ) . size ( ) )
testGetAsStringSpaceAndThreeByteSpaceMixtureTrailing ( ) { java . lang . String in = " " + ( ( ( ( "<sp>" + "  " ) + "<sp>" ) + " " ) + "<sp>" ) ; java . lang . String out = converter . getAsString ( context , component , in ) ; "<AssertPlaceHolder>" ; } getAsString ( javax . faces . context . FacesContext , javax . fa...
org . junit . Assert . assertEquals ( null , out )
testGetItemDocument ( ) { org . wikidata . wdtk . datamodel . helpers . ItemDocument o1 = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeItemDocument ( factory . getItemIdValue ( "Q42" , "foo" ) , java . util . Collections . emptyList ( ) , java . util . Collections . emptyList ( ) , java . util . Collec...
org . junit . Assert . assertEquals ( o1 , o2 )
testGetReactionStep_IReaction ( ) { org . openscience . cdk . reaction . ReactionChain chain = new org . openscience . cdk . reaction . ReactionChain ( ) ; org . openscience . cdk . interfaces . IReaction reaction1 = org . openscience . cdk . reaction . ReactionChainTest . builder . newInstance ( org . openscience . cd...
org . junit . Assert . assertEquals ( 1 , chain . getReactionStep ( reaction2 ) )
testNoneMatchWithTrueResult ( ) { boolean match = com . annimon . stream . Stream . of ( 2 , 3 , 5 , 8 , 13 ) . noneMatch ( com . annimon . stream . Functions . remainder ( 10 ) ) ; "<AssertPlaceHolder>" ; } remainder ( int ) { return new com . annimon . stream . Predicate < java . lang . Integer > ( ) { @ com . annimo...
org . junit . Assert . assertTrue ( match )
stringWithFractionalTimeReturnsCorrectMillisecondsAsFractionNotCount ( ) { java . lang . String exampleDate = "2012-11-28T17:43:12.1Z" ; java . util . Date parsedTime = new com . microsoft . windowsazure . services . media . implementation . ODataDateAdapter ( ) . unmarshal ( exampleDate ) ; java . util . Calendar time...
org . junit . Assert . assertEquals ( 100 , millis )
fetchEventsForAYearWithoutAnyEvents ( ) { java . util . Calendar year = java . util . Calendar . getInstance ( ) ; year . add ( Calendar . YEAR , 10 ) ; java . util . List < com . stratelia . webactiv . almanach . model . EventDetail > events = new java . util . ArrayList < com . stratelia . webactiv . almanach . model...
org . junit . Assert . assertThat ( events . isEmpty ( ) , is ( true ) )
testEmailAddressType ( ) { com . effektif . workflow . api . workflow . ExecutableWorkflow workflow = new com . effektif . workflow . api . workflow . ExecutableWorkflow ( ) . variable ( "v" , new com . effektif . workflow . api . types . EmailAddressType ( ) ) ; deploy ( workflow ) ; com . effektif . workflow . api . ...
org . junit . Assert . assertEquals ( "info@effektif.com" , value )
bundleForValidWorkflow ( ) { org . commonwl . view . workflow . Workflow validWorkflow = new org . commonwl . view . workflow . Workflow ( "Valid<sp>Workflow" , "Doc<sp>for<sp>Valid<sp>Workflow" , new java . util . HashMap ( ) , new java . util . HashMap ( ) , new java . util . HashMap ( ) ) ; validWorkflow . setRetrie...
org . junit . Assert . assertEquals ( java . nio . file . Paths . get ( "test/path/to/check/for.zip" ) , java . nio . file . Paths . get ( validWorkflow . getRoBundlePath ( ) ) )
setSasTokenSets ( ) { com . microsoft . azure . sdk . iot . provisioning . device . internal . contract . amqp . AmqpsProvisioningSymmetricKeySaslHandler handler = mockit . Deencapsulation . newInstance ( com . microsoft . azure . sdk . iot . provisioning . device . internal . contract . amqp . AmqpsProvisioningSymmetr...
org . junit . Assert . assertEquals ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . device . internal . contract . amqp . AmqpsProvisioningSymmetricKeySaslHandlerTest . sasToken , actualSasToken )
testEagerlyRegisterIncompatibleSerializer ( ) { org . apache . flink . runtime . state . StateSerializerProvider < org . apache . flink . runtime . testutils . statemigration . TestType > testProvider = org . apache . flink . runtime . state . StateSerializerProvider . fromNewRegisteredSerializer ( new org . apache . f...
org . junit . Assert . assertTrue ( schemaCompatibility . isIncompatible ( ) )
testAclFeature ( ) { org . apache . hadoop . security . UserGroupInformation ugi = org . apache . hadoop . security . UserGroupInformation . createUserForTesting ( "testuser" , new java . lang . String [ ] { "testgroup" } ) ; ugi . doAs ( ( ( java . security . PrivilegedExceptionAction < java . lang . Object > ) ( ( ) ...
org . junit . Assert . assertEquals ( 0 , aclStatus . getEntries ( ) . size ( ) )
testSetFontWithSameFont ( ) { org . eclipse . swt . graphics . Font font = createFont ( ) ; gc . setFont ( font ) ; org . eclipse . swt . internal . graphics . GCAdapter adapter = org . eclipse . swt . graphics . ControlGC_Test . getGCAdapter ( gc ) ; adapter . clearGCOperations ( ) ; gc . setFont ( font ) ; org . ecli...
org . junit . Assert . assertEquals ( 0 , gcOperations . length )
testHStore ( ) { for ( java . lang . String s : com . typemapper . postgres . HStoreTest . validHStoreStrings ) { com . typemapper . postgres . HStore hs = new com . typemapper . postgres . HStore ( s ) ; for ( Map . Entry < java . lang . String , java . lang . String > e : hs ) { "<AssertPlaceHolder>" ; } } }
org . junit . Assert . assertNotNull ( e )
testScriptingConfigurationDeserialization ( ) { com . thoughtworks . xstream . XStream xstream = new com . thoughtworks . xstream . XStream ( ) ; it . geosolutions . geobatch . xstream . Alias alias = new it . geosolutions . geobatch . xstream . Alias ( ) ; alias . setAliasRegistry ( aliasRegistry ) ; alias . setAliase...
org . junit . Assert . assertTrue ( configurationDeserialized )
testParameters1 ( ) { java . lang . String className = "<sp>SET<sp>name<sp>=<sp>:_name2;" 5 ; db . createVertexClass ( className ) ; java . lang . String script = ( ( ( ( ( ( ( ( "BEGIN;" + "LET<sp>$a<sp>=<sp>CREATE<sp>VERTEX<sp>" ) + className ) + "<sp>SET<sp>name<sp>=<sp>:_name2;" 1 ) + "<sp>SET<sp>name<sp>=<sp>:_nam...
org . junit . Assert . assertTrue ( rs . hasNext ( ) )
testPostDown ( ) { setStackStatus ( StatusEnum . DOWN , org . sagebionetworks . repo . web . StackStatusInterceptorTest . MSG_FORMAT ) ; "<AssertPlaceHolder>" ; org . sagebionetworks . repo . model . Project child = new org . sagebionetworks . repo . model . Project ( ) ; child . setParentId ( sampleProject . getId ( )...
org . junit . Assert . assertEquals ( StatusEnum . DOWN , stackStatusDao . getCurrentStatus ( ) )
testWildcardTypeLowerBound ( ) { javax . ws . rs . core . GenericType < java . util . List < ? super java . lang . String > > genericType = new javax . ws . rs . core . GenericType < java . util . List < ? super java . lang . String > > ( ) { } ; java . lang . reflect . ParameterizedType pt = ( ( java . lang . reflect ...
org . junit . Assert . assertEquals ( java . lang . Object . class , rawType )
testGenerateDegree ( ) { com . codebits . d4m . TestableMutation mutation = new com . codebits . d4m . TestableMutation ( "CITY_NAME|Akron" ) ; mutation . put ( com . codebits . d4m . ingest . MutationFactoryTest . emptyCF , com . codebits . d4m . ingest . MutationFactoryTest . degree , com . codebits . d4m . ingest . ...
org . junit . Assert . assertEquals ( expected , actual )
testGetExtensionByNameDoesNotExist ( ) { final org . apache . nifi . registry . db . entity . ExtensionEntity entity = metadataService . getExtensionByName ( "eb1-v1" , "org.apache.nifi.DOESNOTEXIST" ) ; "<AssertPlaceHolder>" ; } getExtensionByName ( java . lang . String , java . lang . String ) { final java . lang . S...
org . junit . Assert . assertNull ( entity )
testRewriteModeChainRuleTree4 ( ) { java . lang . String grammar = "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" 6 + ( ( ( ( "options<sp>{output=AST;}\n" + "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" 7 ) + "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" ) + "WS<sp>:<sp>(\'<sp>\'|\'\\n\')<sp>{$channel=HIDDEN;}<sp>;\n" 0 ) + "WS<sp>:<sp>(\'<sp>\'|\'\\n\')<...
org . junit . Assert . assertEquals ( "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" 3 , found )
oneMillionEntries ( ) { "<AssertPlaceHolder>" ; int howMany = 1000000 ; int size = ( ( int ) ( mem . capacity ( ) ) ) / howMany ; size -= ( size / 100 ) * 1 ; org . apache . directmemory . memory . MallocWithUnsafeTest . logger . info ( ( "payload<sp>size=" + size ) ) ; org . apache . directmemory . memory . MallocWith...
org . junit . Assert . assertNotNull ( mem )
testGetOperator ( ) { final java . lang . String expectedOperator = "operator" ; when ( plugin . getFactField ( ) ) . thenReturn ( "factField" ) ; when ( plugin . editingCol ( ) ) . thenReturn ( editingCol ) ; when ( editingCol . getOperator ( ) ) . thenReturn ( expectedOperator ) ; final java . lang . String operator ...
org . junit . Assert . assertEquals ( expectedOperator , operator )
testJson ( ) { boolean showRelevance = false ; boolean showEntityIds = false ; boolean showApiUrls = false ; edu . harvard . iq . dataverse . search . SolrSearchResult result01 = new edu . harvard . iq . dataverse . search . SolrSearchResult ( "myQuery" , "myName" ) ; result01 . setType ( SearchConstants . DATAVERSES )...
org . junit . Assert . assertEquals ( expected , actual )
resolveMethod ( java . lang . String , java . lang . String , java . lang . String ) { java . nio . file . Path path1 = createPath ( data1 ) ; java . nio . file . Path path2 = createPath ( data2 ) ; "<AssertPlaceHolder>" ; } resolve ( java . nio . file . Path ) { return new com . facebook . buck . rules . modern . Outp...
org . junit . Assert . assertEquals ( expected , path1 . resolve ( path2 ) . toString ( ) )
checkValidNameTest ( ) { java . lang . String code = "class<sp>A{isA<sp>12T;}trait<sp>12T{}" ; cruise . umple . compiler . UmpleModel model = getModel ( code ) ; boolean result = false ; try { model . run ( ) ; } catch ( java . lang . Exception e ) { result = e . getMessage ( ) . contains ( "200" ) ; } finally { "<Asse...
org . junit . Assert . assertTrue ( result )
testMatchExactlyNwDstErr ( ) { params = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "type" , "aaa" ) ; put ( "in_node" , "node01" ) ; put ( "in_port" , "port01" ) ; put ( OFPFlowMatch . IPV4_DST , "nw_dst" ) ; } } ; target = new org . o3project . odenos . core . component . n...
org . junit . Assert . assertThat ( target . matchExactly ( match ) , org . hamcrest . CoreMatchers . is ( false ) )
testLastFollowedByUnit ( ) { java . lang . String outcome = opennlp . tools . namefind . BilouNameFinderSequenceValidatorTest . UNIT_A ; java . lang . String [ ] inputSequence = new java . lang . String [ ] { "TypeA" , "TypeA" , "TypeA" , "AnyType" , "something" } ; java . lang . String [ ] outcomesSequence = new java ...
org . junit . Assert . assertTrue ( opennlp . tools . namefind . BilouNameFinderSequenceValidatorTest . validator . validSequence ( 3 , inputSequence , outcomesSequence , outcome ) )
isApiToken_whenOAuthAppTokenIsSupplied_returnsTrue ( ) { slacknotifications . SlackNotificationImpl impl = new slacknotifications . SlackNotificationImpl ( ) ; impl . setToken ( "34tsrfdgdrtyrysdfg" ) ; "<AssertPlaceHolder>" ; } getIsApiToken ( ) { if ( ( ( this . token ) != null ) && ( this . token . startsWith ( "htt...
org . junit . Assert . assertFalse ( impl . getIsApiToken ( ) )
isAmong_needleIsNullAndHaystackIsContainsANull_returnsTrue ( ) { boolean found = eu . chargetime . ocpp . utilities . ModelUtil . isAmong ( null , "something" , null ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( found , org . hamcrest . CoreMatchers . is ( true ) )
testHistorischZoekBereikMaterieelGeenAutorisatie ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . PERSOON_IDENTIFICATIENUMMERS_BURGERSERVICENUMMER . getId ( ) ) ; final nl . bzk . brp . service . bevraging . zoekpersoongeneriek . AbstractZoekPersoonVerz...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testWritableTextAreaShouldClear ( ) { driver . get ( pages . readOnlyPage ) ; org . openqa . selenium . WebElement element = driver . findElement ( org . openqa . selenium . By . id ( "writableTextArea" ) ) ; element . clear ( ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { return commandProcessor...
org . junit . Assert . assertEquals ( "" , element . getAttribute ( "value" ) )
testExecutePreparationScripts_NoScripts ( ) { java . sql . Connection connection = com . btc . redg . generator . extractor . DatabaseManager . connectToDatabase ( "org.h2.Driver" , "jdbc:h2:mem:redg" , "" , "" ) ; "<AssertPlaceHolder>" ; com . btc . redg . generator . extractor . DatabaseManager . executePreparationSc...
org . junit . Assert . assertNotNull ( connection )
testGetStepTypeCodeToIdMap ( ) { org . pentaho . di . repository . kdr . KettleDatabaseRepository repository = mock ( org . pentaho . di . repository . kdr . KettleDatabaseRepository . class ) ; org . pentaho . di . repository . kdr . delegates . KettleDatabaseRepositoryConnectionDelegate connectionDelegate = mock ( or...
org . junit . Assert . assertEquals ( map , kettleDatabaseRepositoryStepDelegate . getStepTypeCodeToIdMap ( ) )
hasElapsedIfCurrentClockReadingPartiallyExceedsTargetRange ( ) { expect ( mockClock . getGranularity ( ) ) . andReturn ( 1L ) . anyTimes ( ) ; expect ( mockClock . getNanoTime ( ) ) . andReturn ( new org . fishwife . jrugged . interval . DiscreteInterval ( 4L , 5L ) ) ; expect ( mockClock . getNanoTime ( ) ) . andRetur...
org . junit . Assert . assertTrue ( impl . hasElapsed ( ) )
shouldAcceptValidPutHttpTimeout ( ) { hm = org . openstack . atlas . api . validation . validators . HealthMonitorValidatorTest . whenValidatingPut . initHealthMonitor ( null , org . openstack . atlas . api . validation . validators . HTTP , null , "30" , null , null , null , null ) ; result = hmv . validate ( hm , org...
org . junit . Assert . assertTrue ( resultMessage ( result , org . openstack . atlas . api . validation . validators . PUT ) , result . passedValidation ( ) )
testLoadApplicationTemplate_invalidDirectory ( ) { java . io . File source = net . roboconf . core . internal . tests . TestUtils . findApplicationDirectory ( "lamp" ) ; "<AssertPlaceHolder>" ; java . io . File apps = new java . io . File ( this . dmDirectory , net . roboconf . dm . internal . utils . ConfigurationUtil...
org . junit . Assert . assertTrue ( source . exists ( ) )
testGetPath ( ) { unitD . setParent ( unitC ) ; unitC . setParent ( unitB ) ; unitB . setParent ( unitA ) ; java . lang . String expected = "/uidA/uidB/uidC/uidD" ; "<AssertPlaceHolder>" ; } getPath ( ) { return path ; }
org . junit . Assert . assertEquals ( expected , unitD . getPath ( ) )
updateUser_setsAttributes ( ) { when ( userRepository . save ( userA ) ) . thenReturn ( userA ) ; when ( passwordEncoder . encode ( edu . zipcloud . cloudstreetmarket . core . services . CommunityServiceImplTest . USER_A_PASSWORD ) ) . thenReturn ( edu . zipcloud . cloudstreetmarket . core . services . CommunityService...
org . junit . Assert . assertEquals ( edu . zipcloud . cloudstreetmarket . core . services . CommunityServiceImplTest . USER_A_PASSWORD_ENCODED , user . getPassword ( ) )
saveRetryNew ( ) { com . psddev . dari . h2 . WriteModel model1 = new com . psddev . dari . h2 . WriteModel ( ) ; model1 . save ( ) ; com . psddev . dari . h2 . WriteModel model2 = new com . psddev . dari . h2 . WriteModel ( ) ; model2 . getState ( ) . setId ( model1 . getId ( ) ) ; model2 . save ( ) ; "<AssertPlaceHol...
org . junit . Assert . assertThat ( com . psddev . dari . db . Query . from ( com . psddev . dari . h2 . WriteModel . class ) . first ( ) , is ( model1 ) )
testToString1 ( ) { org . eclipse . kura . core . net . WifiInterfaceConfigImpl config = createConfig ( 0 ) ; java . lang . String expected = "name=wifiInterface<sp>::<sp>loopback=false<sp>::<sp>pointToPoint=false<sp>::<sp>virtual=false" + ( ( "<sp>::<sp>supportsMulticast=false<sp>::<sp>up=false<sp>::<sp>mtu=0<sp>::<sp...
org . junit . Assert . assertEquals ( expected , config . toString ( ) )
testStridedExp ( ) { org . nd4j . linalg . api . ops . executioner . OpExecutioner opExecutioner = org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) ; org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 6 , 6 , DataType . DOUBLE ) . reshape ( 2 , 3 ) ; org ...
org . junit . Assert . assertEquals ( getFailureMessage ( ) , org . nd4j . linalg . factory . Nd4j . create ( expected ) , slice )
doTest ( ) { java . util . List < com . github . drinkjava2 . test . ActiveEntityTest > userList = new com . github . drinkjava2 . test . ActiveEntityTest ( ) . selectUsers ( 50 ) ; "<AssertPlaceHolder>" ; } size ( ) { int size = 0 ; for ( com . github . drinkjava2 . jdialects . springsrc . utils . ConcurrentReferenceH...
org . junit . Assert . assertEquals ( 50 , userList . size ( ) )
true ( ) { javax . ws . rs . core . Response . ResponseBuilder rb = javax . ws . rs . core . Response . status ( Status . FOUND ) . type ( MediaType . APPLICATION_JSON_TYPE ) ; rb . header ( HttpHeaders . LOCATION , ( ( ( ( ( ( ( ( ( ( ( ( com . fujitsu . dc . test . unit . core . UrlUtils . cellRoot ( "authz" ) ) + "#...
org . junit . Assert . assertTrue ( authz . isSuccessAuthorization ( res ) )
testRewriteWithSimplePattern ( ) { java . lang . String pattern = ( org . pentaho . platform . plugin . action . jfreereport . helper . PentahoURLRewriterTest . TEST_SRC ) + "/solution/test/reporting/system" ; org . pentaho . platform . plugin . action . jfreereport . helper . PentahoURLRewriter rewriter = new org . pe...
org . junit . Assert . assertEquals ( pattern , result )
keySet_extras ( ) { com . psddev . dari . util . Set < java . lang . String > expect = new com . psddev . dari . util . HashMap < java . lang . String , java . lang . Object > ( ) { { put ( "field_pub" , "pub<sp>field<sp>value" ) ; put ( "field_priv" , "priv<sp>field<sp>value" ) ; put ( "field_int" , new java . lang . ...
org . junit . Assert . assertEquals ( expect , objmap . keySet ( ) )
gcLotsOfCandidatesIT ( ) { killMacGc ( ) ; log . info ( "Filling<sp>metadata<sp>table<sp>with<sp>bogus<sp>delete<sp>flags" ) ; try ( org . apache . accumulo . core . client . AccumuloClient c = org . apache . accumulo . core . client . Accumulo . newClient ( ) . from ( getClientProperties ( ) ) . build ( ) ) { org . ap...
org . junit . Assert . assertTrue ( output . contains ( "delete<sp>candidates<sp>has<sp>exceeded" ) )
testTwoIndexFilter1 ( ) { org . eclipse . rdf4j . query . parser . sparql . SPARQLParser parser = new org . eclipse . rdf4j . query . parser . sparql . SPARQLParser ( ) ; org . eclipse . rdf4j . query . parser . ParsedQuery pq1 = parser . parseQuery ( q15 , null ) ; org . eclipse . rdf4j . query . parser . ParsedQuery ...
org . junit . Assert . assertTrue ( com . google . common . collect . Sets . intersection ( indexSet , com . google . common . collect . Sets . newHashSet ( processedIndexSet ) ) . equals ( com . google . common . collect . Sets . newHashSet ( processedIndexSet ) ) )
getOrderHistoryByConcept_shouldReturnEmptyListForConceptWithoutOrders ( ) { org . openmrs . Concept concept = org . openmrs . api . context . Context . getConceptService ( ) . getConcept ( 21 ) ; org . openmrs . Patient patient = org . openmrs . api . context . Context . getPatientService ( ) . getPatient ( 2 ) ; java ...
org . junit . Assert . assertEquals ( 0 , orders . size ( ) )
shouldReturnEmptyQueryOnEmptyListOfSrandmember ( ) { when ( localParamsMock . get ( "command" ) ) . thenReturn ( "srandmember" ) ; when ( localParamsMock . get ( "key" ) ) . thenReturn ( "simpleKey" ) ; when ( localParamsMock . get ( QueryParsing . V ) ) . thenReturn ( "string_field" ) ; when ( jedisMock . srandmember ...
org . junit . Assert . assertEquals ( 0 , terms . size ( ) )
testCustomPartitioningErased ( ) { org . apache . flink . api . common . operators . SingleInputSemanticProperties sProp = new org . apache . flink . api . common . operators . SingleInputSemanticProperties ( ) ; org . apache . flink . api . java . functions . SemanticPropUtil . getSemanticPropsSingleFromString ( sProp...
org . junit . Assert . assertNull ( filtered )
filterCustomerConfiguration_Change ( ) { org . oscm . internal . vo . VOOrganizationPaymentConfiguration conf = org . oscm . accountservice . bean . PaymentConfigurationFilterTest . createCustomerConfiguration ( customer . getOrganizationId ( ) , PaymentType . CREDIT_CARD ) ; java . util . List < org . oscm . internal ...
org . junit . Assert . assertEquals ( input , result )
getRemoteAddrIgnoresXForwardHeader ( ) { ninja . utils . AbstractContextImpl context = spy ( abstractContext ) ; when ( ninjaProperties . getBooleanWithDefault ( Context . NINJA_PROPERTIES_X_FORWARDED_FOR , false ) ) . thenReturn ( Boolean . FALSE ) ; doReturn ( "1.1.1.1" ) . when ( context ) . getRealRemoteAddr ( ) ; ...
org . junit . Assert . assertThat ( context . getRemoteAddr ( ) , org . hamcrest . CoreMatchers . is ( "1.1.1.1" ) )
testAdd ( ) { org . kocakosm . pitaya . collection . Bag < java . lang . String > bag = new org . kocakosm . pitaya . collection . HashBag < java . lang . String > ( ) ; bag . add ( "Hello" ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . Object ) { return entries . contains ( o ) ; }
org . junit . Assert . assertTrue ( bag . contains ( "Hello" ) )
testMin01 ( ) { javax . el . ELProcessor processor = new javax . el . ELProcessor ( ) ; java . lang . Object result = processor . getValue ( "[1,2,3,4,5].stream().min()" , java . lang . Object . class ) ; "<AssertPlaceHolder>" ; } get ( ) { return connectionList ; }
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 1 ) , ( ( org . apache . el . stream . Optional ) ( result ) ) . get ( ) )
createWithCollectionContentsCanRetrieveContents ( ) { java . util . List < java . lang . String > result = createStringListResult ( ) ; for ( int i = 0 ; i < ( expectedStrings . length ) ; ++ i ) { "<AssertPlaceHolder>" ; } } get ( com . microsoft . windowsazure . services . media . entityoperations . EntityGetOperatio...
org . junit . Assert . assertEquals ( expectedStrings [ i ] , result . get ( i ) )
testCanSerialiseEdgeId ( ) { final uk . gov . gchq . gaffer . data . element . id . EdgeId edgeId = new uk . gov . gchq . gaffer . operation . data . EdgeSeed ( "source" , "destination" , true ) ; final byte [ ] serialisedEdgeId = serialiser . serialise ( edgeId ) ; final uk . gov . gchq . gaffer . data . element . id ...
org . junit . Assert . assertEquals ( edgeId , deserialisedEdgeId )
testConvertFromAvroBoolean ( ) { org . talend . components . common . config . jdbc . TalendType expectedType = TalendType . BOOLEAN ; org . apache . avro . Schema fieldSchema = org . talend . daikon . avro . AvroUtils . _boolean ( ) ; "<AssertPlaceHolder>" ; } convertFromAvro ( org . apache . avro . Schema ) { org . a...
org . junit . Assert . assertEquals ( expectedType , org . talend . components . common . config . jdbc . TalendType . convertFromAvro ( fieldSchema ) )
testSortInPlaceRanges ( ) { java . util . List < org . jaitools . numeric . Range < java . lang . Integer > > sorted = org . jaitools . CollectionFactory . list ( ) ; sorted . add ( org . jaitools . numeric . Range . create ( null , false , 5 , true ) ) ; sorted . add ( org . jaitools . numeric . Range . create ( ( - 1...
org . junit . Assert . assertTrue ( r . equals ( sorted . get ( ( k ++ ) ) ) )
testCreate ( ) { org . oscarehr . PMmodule . model . CriteriaType entity = new org . oscarehr . PMmodule . model . CriteriaType ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this . id...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
testUsernameExists ( ) { lockedDirectory . insert ( input ) ; "<AssertPlaceHolder>" ; } exists ( java . lang . String ) { if ( ( dataSource ) == null ) { throw new java . lang . Exception ( "Should<sp>not<sp>call<sp>exists<sp>if<sp>the<sp>data<sp>source<sp>hasn't<sp>been<sp>created" ) ; } if ( ( this . status ) != ( ap...
org . junit . Assert . assertTrue ( lockedDirectory . exists ( input ) )
testAddingContainerSetsItToLast ( ) { com . picocontainer . web . chain . ContainerChain chain = new com . picocontainer . web . chain . ContainerChain ( ) ; com . picocontainer . PicoContainer container = new com . picocontainer . DefaultPicoContainer ( ) ; chain . addContainer ( container ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertSame ( container , chain . getLast ( ) )
testRowNumber3OrderByCols ( ) { java . lang . String sqlText = java . lang . String . format ( ( "<sp>50<sp>|<sp>1<sp>|<sp>52000<sp>|<sp>5<sp>|\n" 2 + "FROM<sp>%s<sp>--SPLICE-PROPERTIES<sp>useSpark<sp>=<sp>%s<sp>\n<sp>" ) , this . getTableReference ( com . splicemachine . derby . impl . sql . execute . operations . Win...
org . junit . Assert . assertEquals ( ( ( "<sp>50<sp>|<sp>1<sp>|<sp>52000<sp>|<sp>5<sp>|\n" 7 + sqlText ) + "<sp>50<sp>|<sp>1<sp>|<sp>52000<sp>|<sp>5<sp>|\n" 7 ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testResolveUnknownTypePermission ( ) { sonia . scm . security . RepositoryPermissionResolver resolver = new sonia . scm . security . RepositoryPermissionResolver ( ) ; sonia . scm . security . RepositoryPermission p = resolver . resolvePermission ( "repository:scm:asd" ) ; "<AssertPlaceHolder>" ; } resolvePermission ( ...
org . junit . Assert . assertNull ( p )