input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldIncreaseWhiteMana ( ) { mage . Mana mana = new mage . Mana ( ) ; mana . increaseWhite ( ) ; "<AssertPlaceHolder>" ; } getWhite ( ) { return white ; }
org . junit . Assert . assertEquals ( 1 , mana . getWhite ( ) )
dontDiscardOutline ( ) { org . sejda . model . parameter . SimpleSplitParameters parameters = defaultCommandLine ( ) . invokeSejdaConsole ( ) ; "<AssertPlaceHolder>" ; } discardOutline ( ) { return discardOutline ; }
org . junit . Assert . assertFalse ( parameters . discardOutline ( ) )
should_have_correct_value_when_value_returned ( ) { java . util . Optional < java . lang . String > bar = uk . co . benjiweber . expressions . exceptions . Exceptions . toOptional ( this :: bar ) . get ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "bar" , bar . get ( ) )
testNoBodyParts ( ) { setupWSDL ( org . apache . cxf . wsdl11 . ServiceWSDLBuilderTest . NO_BODY_PARTS_WSDL_PATH ) ; javax . xml . namespace . QName messageName = new javax . xml . namespace . QName ( "urn:org:apache:cxf:no_body_parts/wsdl" , "operation1Request" ) ; javax . wsdl . Message message = newDef . getMessage ...
org . junit . Assert . assertNotNull ( part . getTypeName ( ) )
testGetActiveEmrClusterIdNoIdSpecifiedAssertReturnActualClusterId ( ) { org . finra . herd . dao . EmrDao originalEmrDao = emrHelper . getEmrDao ( ) ; org . finra . herd . dao . EmrDao mockEmrDao = mock ( org . finra . herd . dao . EmrDao . class ) ; emrHelper . setEmrDao ( mockEmrDao ) ; try { java . lang . String emr...
org . junit . Assert . assertEquals ( expectedEmrClusterId , emrHelper . getActiveEmrClusterId ( emrClusterId , emrClusterName , null ) )
encodeDecodeBoolean ( ) { java . nio . ByteBuffer bb = java . nio . ByteBuffer . allocate ( 2 ) ; bb . clear ( ) ; org . krakenapps . codec . EncodingRule . encodeBoolean ( bb , true ) ; bb . flip ( ) ; "<AssertPlaceHolder>" ; } decode ( java . nio . ByteBuffer ) { return org . krakenapps . codec . EncodingRule . decod...
org . junit . Assert . assertEquals ( true , org . krakenapps . codec . EncodingRule . decode ( bb ) )
pressKeyAndGenerateIMEActionTest ( ) { driver . pressKey ( new io . appium . java_client . android . nativekey . KeyEvent ( ) . withKey ( AndroidKey . ENTER ) . withFlag ( KeyEventFlag . SOFT_KEYBOARD ) . withFlag ( KeyEventFlag . KEEP_TOUCH_MODE ) . withFlag ( KeyEventFlag . EDITOR_ACTION ) ) ; final java . lang . Str...
org . junit . Assert . assertTrue ( state . isEmpty ( ) )
testInitFirstVerifyStopInvokedImmediately ( ) { org . apache . hadoop . metrics2 . lib . DefaultMetricsSystem . shutdown ( ) ; new org . apache . hadoop . metrics2 . impl . ConfigBuilder ( ) . add ( "s0<sp>desc" 6 , 8 ) . add ( "Test" 0 , org . apache . hadoop . metrics2 . impl . TestMetricsSystemImpl . TestSink . clas...
org . junit . Assert . assertEquals ( "s0<sp>desc" 8 , mr1 , mr2 )
testAnnot ( ) { fr . inria . corese . core . Graph g = createGraph ( ) ; fr . inria . corese . core . query . QueryProcess exec = fr . inria . corese . core . query . QueryProcess . create ( g ) ; java . lang . String i = "@public<sp>{" + ( ( ( ( ( ( "function<sp>us:foo(){" + "us:bar()" ) + "}" ) + "<sp>function<sp>us:...
org . junit . Assert . assertEquals ( 10 , dt . intValue ( ) )
testWaitForWithOptions ( ) { com . google . cloud . bigquery . JobConfiguration jobConfig = com . google . cloud . bigquery . QueryJobConfiguration . newBuilder ( com . google . cloud . examples . bigquery . snippets . ITJobSnippets . QUERY ) . setUseLegacySql ( false ) . build ( ) ; com . google . cloud . bigquery . J...
org . junit . Assert . assertTrue ( result )
testParseNotIntErr ( ) { actions = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "type" , "aaa" ) ; put ( "mpls_ttl" , "virtual01" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionSetMplsTtlQuery ( actions ) ; "<AssertPl...
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) )
getDriverVersionShouldBeCorrect ( ) { org . neo4j . jdbc . Neo4jDatabaseMetaData databaseMetaData = new org . neo4j . jdbc . Neo4jDatabaseMetaData ( null ) { } ; "<AssertPlaceHolder>" ; } getDriverVersion ( ) { return this . driverVersion ; }
org . junit . Assert . assertNotNull ( databaseMetaData . getDriverVersion ( ) )
testCreateTenantVDCEdgeSecurityProfile ( ) { boolean response = com . cloud . network . cisco . CiscoVnmcConnectionTest . connection . createTenantVDCEdgeSecurityProfile ( com . cloud . network . cisco . CiscoVnmcConnectionTest . tenantName ) ; "<AssertPlaceHolder>" ; } createTenantVDCEdgeSecurityProfile ( java . lang ...
org . junit . Assert . assertTrue ( response )
constructorSucceed ( ) { com . microsoft . azure . sdk . iot . provisioning . service . configs . TwinProperties twinProperties = mockit . Deencapsulation . newInstance ( com . microsoft . azure . sdk . iot . provisioning . service . configs . TwinProperties . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( twinProperties )
testIndexedTableReconfigure ( ) { io . cdap . cdap . api . dataset . DatasetDefinition indexedTableDef = registry . get ( io . cdap . cdap . api . dataset . lib . IndexedTable . class . getName ( ) ) ; "<AssertPlaceHolder>" ; io . cdap . cdap . api . dataset . DatasetProperties props = io . cdap . cdap . api . dataset ...
org . junit . Assert . assertTrue ( ( indexedTableDef instanceof io . cdap . cdap . api . dataset . Reconfigurable ) )
testBuildWithDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . person . award . PersonAward context = new org . lnu . is . domain . person . award . PersonAward ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>PersonAward<sp>e<sp>" ;...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testConvertDelete ( ) { org . apache . streams . twitter . pojo . Delete delete = mapper . readValue ( deleteJson , org . apache . streams . twitter . pojo . Delete . class ) ; java . util . List < org . apache . streams . pojo . json . Activity > activityList = activityConverterUtil . convert ( delete ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( activityList . size ( ) , 1 )
testOf ( ) { for ( net . tridentsdk . base . Substance substance : net . tridentsdk . base . Substance . values ( ) ) { "<AssertPlaceHolder>" ; } } fromNumericId ( int ) { net . tridentsdk . base . Substance substance = net . tridentsdk . base . Substance . SUBSTANCE_BY_NUMERIC_MAP . get ( id ) ; if ( substance == null...
org . junit . Assert . assertEquals ( substance , net . tridentsdk . base . Substance . fromNumericId ( substance . getId ( ) ) )
testIterateParallel ( ) { final java . util . concurrent . atomic . AtomicIntegerArray ai = new java . util . concurrent . atomic . AtomicIntegerArray ( 1001 ) ; org . neo4j . graphalgo . core . utils . ParallelUtil . iterateParallel ( Pools . DEFAULT , 1001 , 8 , ( i ) -> { ai . set ( i , i ) ; } ) ; for ( int i = 0 ;...
org . junit . Assert . assertEquals ( i , ai . get ( i ) )
testParseNullLastPublicationDate ( ) { com . fasterxml . jackson . databind . ObjectMapper mapper = new com . fasterxml . jackson . databind . ObjectMapper ( ) ; java . lang . String jsonString = "{<sp>\"id\",\"0\",<sp>\"uid\":null,<sp>\"type\",\"0\",<sp>\"href\",\"0\",<sp>\"tags\":[],<sp>\"slugs\":[\"\"],<sp>\"lang\",...
org . junit . Assert . assertNull ( doc . getLastPublicationDate ( ) )
missingCapturedScope ( ) { io . opentracing . util . AutoFinishScope . Continuation missingContinuation = source . captureScope ( ) ; "<AssertPlaceHolder>" ; } captureScope ( ) { io . opentracing . util . AutoFinishScope scope = tlsScope . get ( ) ; return scope == null ? null : scope . capture ( ) ; }
org . junit . Assert . assertNull ( missingContinuation )
collectEmptyNSSetWhenStreamReturnsNoElements ( ) { com . webobjects . foundation . NSSet < ? > result = java . util . stream . Stream . empty ( ) . collect ( toNSSet ( ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( ( ( _width ) == ( - 1 ) ) && ( ( _height ) == ( - 1 ) ) ) && ( _metadataDirectories . isEmpty ( )...
org . junit . Assert . assertThat ( result . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testAES256GCM ( ) { org . abstractj . kalium . NaCl . sodium ( ) . sodium_init ( ) ; if ( ( org . abstractj . kalium . NaCl . sodium ( ) . crypto_aead_aes256gcm_is_available ( ) ) != 1 ) { System . out . println ( "AES256-GCM<sp>is<sp>not<sp>supported" ) ; return ; } byte [ ] key = org . abstractj . kalium . crypto . H...
org . junit . Assert . assertArrayEquals ( message , msg2 )
assertGetValueForBoolean ( ) { boolean showSql = shardingProperties . getValue ( ShardingPropertiesConstant . SQL_SHOW ) ; "<AssertPlaceHolder>" ; } getValue ( org . apache . shardingsphere . core . constant . properties . ShardingPropertiesConstant ) { if ( cachedProperties . containsKey ( shardingPropertiesConstant )...
org . junit . Assert . assertTrue ( showSql )
testPositiveInfinity ( ) { org . hipparchus . linear . ArrayRealVector c = new org . hipparchus . linear . ArrayRealVector ( new double [ ] { Double . POSITIVE_INFINITY , Double . POSITIVE_INFINITY , Double . POSITIVE_INFINITY } ) ; java . lang . String expected = "{(Infinity);<sp>(Infinity);<sp>(Infinity)}" ; java . l...
org . junit . Assert . assertEquals ( expected , actual )
testSignaleerProcesAddressingNok ( ) { final org . jboss . soa . esb . message . Message message = org . mockito . Mockito . mock ( org . jboss . soa . esb . message . Message . class ) ; final org . jboss . soa . esb . message . Properties properties = org . mockito . Mockito . mock ( org . jboss . soa . esb . message...
org . junit . Assert . assertSame ( message , result )
noArray ( ) { final org . apache . commons . lang3 . builder . MultilineRecursiveToStringStyleTest . WithArrays wa = new org . apache . commons . lang3 . builder . MultilineRecursiveToStringStyleTest . WithArrays ( ) ; final java . lang . String exp = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( getClassPrefix ( wa ) ) + "[" ) + ( BR...
org . junit . Assert . assertEquals ( exp , toString ( wa ) )
testSync ( ) { m_eventdServiceManager . dataSourceSync ( ) ; m_serviceTypeDao . save ( new org . opennms . netmgt . model . OnmsServiceType ( "ICMP" ) ) ; "<AssertPlaceHolder>" ; } getServiceId ( java . lang . String ) { int serviceID = 0 ; java . sql . Connection connection = null ; final org . opennms . core . utils ...
org . junit . Assert . assertTrue ( ( ( m_eventdServiceManager . getServiceId ( "ICMP" ) ) > 0 ) )
testInitAspect3 ( ) { org . dresdenocl . examples . royalandloyal . ocl22javacode . LoyaltyAccount anAccount ; anAccount = new org . dresdenocl . examples . royalandloyal . ocl22javacode . LoyaltyAccount ( ) ; "<AssertPlaceHolder>" ; } getTransactions ( ) { return transactions ; }
org . junit . Assert . assertTrue ( ( ( anAccount . getTransactions ( ) . size ( ) ) == 0 ) )
getDueOn_ReferenceMutableObject ( ) { org . eclipse . egit . github . core . Milestone milestone = new org . eclipse . egit . github . core . Milestone ( ) ; milestone . setDueOn ( new java . util . Date ( 2000 ) ) ; milestone . getDueOn ( ) . setTime ( 0 ) ; "<AssertPlaceHolder>" ; } getDueOn ( ) { return org . eclips...
org . junit . Assert . assertTrue ( ( ( milestone . getDueOn ( ) . getTime ( ) ) != 0 ) )
testIsStopWordString ( ) { org . fnlp . nlp . corpus . StopWords sw = new org . fnlp . nlp . corpus . StopWords ( ) ; sw . read ( "../models/stopwords/StopWords.txt" ) ; "<AssertPlaceHolder>" ; } isStopWord ( java . lang . String ) { if ( sWord . contains ( word . toLowerCase ( ) ) ) return true ; return false ; }
org . junit . Assert . assertTrue ( ( ! ( sw . isStopWord ( "" ) ) ) )
testGetDispatcher ( ) { org . switchyard . ServiceReference ref = new org . switchyard . internal . ServiceReferenceImpl ( new javax . xml . namespace . QName ( "testGetDispatcher" ) , new org . switchyard . metadata . InOnlyService ( ) , null , null ) ; org . switchyard . spi . Dispatcher dispatch = _provider . create...
org . junit . Assert . assertEquals ( dispatch , _provider . getDispatcher ( ref ) )
testShowPreviousDoesNotEffectPagePageData ( ) { createRootPage ( "foo" ) ; com . eclipsesource . tabris . internal . ui . PageDescriptor page = createPage ( "bar" ) ; com . eclipsesource . tabris . internal . ui . PageDescriptor page2 = createPage ( "bar2" ) ; com . eclipsesource . tabris . internal . ui . RemoteUI rem...
org . junit . Assert . assertSame ( pagePageData , controller . getCurrentData ( ) )
setTwinOpSets ( ) { final byte [ ] actualData = new byte [ ] { } ; com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage msg = new com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage ( actualData , com . microsoft . azure . sdk . iot . device . MessageType . DEV...
org . junit . Assert . assertEquals ( msg . getDeviceOperationType ( ) , DeviceOperations . DEVICE_OPERATION_TWIN_UPDATE_REPORTED_PROPERTIES_RESPONSE )
shouldReturnNullWhenNoIndexExists ( ) { org . neo4j . kernel . impl . api . store . SchemaCache schemaCache = org . neo4j . kernel . impl . api . store . SchemaCacheTest . newSchemaCache ( ) ; org . neo4j . storageengine . api . schema . IndexDescriptor schemaIndexDescriptor = schemaCache . indexDescriptor ( forLabel (...
org . junit . Assert . assertNull ( schemaIndexDescriptor )
testDelete ( ) { int result = reviewMapper . delete ( 1 ) ; "<AssertPlaceHolder>" ; } delete ( java . lang . String ) { clusterAdminBiz . delete ( name ) ; com . xiaomi . shepher . service . ClusterAdminService . logger . info ( "Delete<sp>cluster,<sp>name={},<sp>operator={}" , name , userHolder . getUser ( ) . getName...
org . junit . Assert . assertEquals ( 1 , result )
testThatItsTheFirstPass ( ) { "<AssertPlaceHolder>" ; } pass ( ) { return 0 ; }
org . junit . Assert . assertEquals ( 0 , plugin . pass ( ) )
txn_coord_disable_writers_1 ( ) { java . util . concurrent . atomic . AtomicInteger counter1 = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; java . util . concurrent . atomic . AtomicInteger counter2 = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; txnMgr . blockWriters ( ) ; org . apache...
org . junit . Assert . assertEquals ( 1 , counter1 . get ( ) )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . ccd . operations . FamilyHistoryOrganizerOperations obj = new org . openhealthtools . mdht . uml . cda . ccd . operations . FamilyHistoryOrganizerOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testExecuteInSequence ( ) { boolean b = acc . executeInSequence ( ) ; "<AssertPlaceHolder>" ; } executeInSequence ( ) { return true ; }
org . junit . Assert . assertFalse ( b )
testToBuilder ( ) { compareSnapshotInfo ( com . google . cloud . compute . deprecated . SnapshotInfoTest . SNAPSHOT_INFO , com . google . cloud . compute . deprecated . SnapshotInfoTest . SNAPSHOT_INFO . toBuilder ( ) . build ( ) ) ; com . google . cloud . compute . deprecated . SnapshotInfo snapshotInfo = com . google...
org . junit . Assert . assertEquals ( "newDescription" , snapshotInfo . getDescription ( ) )
testIndexRequestTranslation ( ) { com . liferay . portal . search . engine . adapter . index . AnalyzeIndexRequest analyzeIndexRequest = new com . liferay . portal . search . engine . adapter . index . AnalyzeIndexRequest ( ) ; analyzeIndexRequest . setIndexName ( com . liferay . portal . search . elasticsearch6 . inte...
org . junit . Assert . assertEquals ( com . liferay . portal . search . elasticsearch6 . internal . search . engine . adapter . index . AnalyzeIndexRequestExecutorTest . _INDEX_NAME , analyzeRequest . index ( ) )
digest ( ) { final org . apache . catalina . realm . GenericPrincipal gp = getGenericPrincipal ( new org . apache . tomee . catalina . realm . CdiEventRealm ( ) . authenticate ( "ryan" , "md5" , "nonce" , "nc" , "cnonce" , "qop" , "realm" , "md5a2" ) ) ; final java . lang . String [ ] actual = gp . getRoles ( ) ; final...
org . junit . Assert . assertArrayEquals ( actual , expected )
testMessageNull ( ) { final net . violet . platform . message . application . factories . AbstractMessageFactory theWrFactory = net . violet . platform . message . application . factories . AbstractMessageFactory . getFactoryByApplication ( Factories . APPLICATION . findByName ( "net.violet.webradio.U105" ) ) ; "<Asser...
org . junit . Assert . assertTrue ( theWrFactory . getMessage ( null ) . isEmpty ( ) )
setVersionSetsCorrectVersion ( ) { final byte [ ] actualData = new byte [ ] { } ; com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage msg = new com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage ( actualData , com . microsoft . azure . sdk . iot . device . Me...
org . junit . Assert . assertEquals ( msg . getVersion ( ) , "12" )
hasSuffixFindsParameter ( ) { org . hl7 . fhir . r4 . model . HumanName humanName = new org . hl7 . fhir . r4 . model . HumanName ( ) . addSuffix ( "test" ) ; "<AssertPlaceHolder>" ; } hasSuffix ( java . lang . String ) { if ( ( this . suffix ) == null ) return false ; for ( org . hl7 . fhir . dstu3 . model . StringTyp...
org . junit . Assert . assertTrue ( humanName . hasSuffix ( "test" ) )
testComputeEntrypoint_inheritKeyword ( ) { org . mockito . Mockito . when ( rawConfiguration . getEntrypoint ( ) ) . thenReturn ( java . util . Optional . of ( java . util . Collections . singletonList ( "INHERIT" ) ) ) ; "<AssertPlaceHolder>" ; } computeEntrypoint ( com . google . cloud . tools . jib . plugins . commo...
org . junit . Assert . assertNull ( com . google . cloud . tools . jib . plugins . common . PluginConfigurationProcessor . computeEntrypoint ( rawConfiguration , projectProperties ) )
etcdTestPut ( ) { java . lang . String keyValue = "lst1234" ; try { com . ctrip . soa . caravan . etcd . test . EtcdClientTest . _client . put ( keyValue , keyValue ) ; "<AssertPlaceHolder>" ; } finally { com . ctrip . soa . caravan . etcd . test . EtcdClientTest . _client . delete ( keyValue ) ; } } get ( java . lang ...
org . junit . Assert . assertEquals ( keyValue , com . ctrip . soa . caravan . etcd . test . EtcdClientTest . _client . get ( keyValue ) )
testCacheGetShouldRetunInstanceOfCorrectType ( ) { org . junit . Assume . assumeThat ( cache , org . hamcrest . core . IsInstanceOf . instanceOf ( org . springframework . data . redis . cache . RedisCache . class ) ) ; java . lang . Object key = getKey ( ) ; java . lang . Object value = getValue ( ) ; cache . put ( key...
org . junit . Assert . assertThat ( redisCache . get ( key , value . getClass ( ) ) , org . hamcrest . core . IsInstanceOf . instanceOf ( value . getClass ( ) ) )
testSize ( ) { org . apache . hive . hcatalog . data . HCatRecord r = new org . apache . hive . hcatalog . data . LazyHCatRecord ( getHCatRecord ( ) , getObjectInspector ( ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return columnMappings . size ( ) ; }
org . junit . Assert . assertEquals ( 4 , r . size ( ) )
testGetTables_noTypes ( ) { java . sql . ResultSet rs = dbmd . getTables ( null , "SYSTEM" , "VIRTUALDATABASES" , new java . lang . String [ 0 ] ) ; "<AssertPlaceHolder>" ; } next ( ) { checkClosed ( ) ; if ( hasNext ( ) ) { return batchResults . next ( ) ; } batchResults . next ( ) ; return false ; }
org . junit . Assert . assertFalse ( rs . next ( ) )
testNotWrappedAtAll ( ) { java . lang . Throwable t = new org . carrot2 . util . ExceptionUtilsTest . ExceptionB ( ) ; java . lang . Throwable w = org . carrot2 . util . ExceptionUtils . wrapAs ( org . carrot2 . util . ExceptionUtilsTest . ExceptionB . class , t ) ; "<AssertPlaceHolder>" ; } wrapAs ( java . lang . Clas...
org . junit . Assert . assertTrue ( ( w == t ) )
testGroupClose ( ) { int port = findFreePort ( ) ; org . apache . zookeeper . server . NIOServerCnxnFactory cnxnFactory = startZooKeeper ( port ) ; org . apache . curator . framework . CuratorFrameworkFactory . Builder builder = org . apache . curator . framework . CuratorFrameworkFactory . builder ( ) . connectString ...
org . junit . Assert . assertTrue ( ( ( entries . isEmpty ( ) ) || ( group . isUnstable ( ) ) ) )
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . wave . type . WaveType context = new org . lnu . is . domain . wave . type . WaveType ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>WaveType<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; or...
org . junit . Assert . assertEquals ( expected , actualQuery )
testGetMissingRequiredGroupsWithoutDefaultPropertiesAndCustomValue ( ) { java . lang . String propertyName = com . google . cloud . tools . eclipse . dataflow . core . preferences . DataflowPreferences . PROJECT_PROPERTY ; java . lang . String groupName = "myGroup" ; com . google . cloud . tools . eclipse . dataflow . ...
org . junit . Assert . assertTrue ( missingProperties . getMissingGroups ( ) . isEmpty ( ) )
setVolumePathTest ( ) { com . cloud . storage . VolumeVO volume = new com . cloud . storage . VolumeVO ( "name" , 0L , 0L , 0L , 0L , 0L , "folder" , "path" , Storage . ProvisioningType . THIN , 0L , Volume . Type . ROOT ) ; java . lang . String volumePath = "iScsiName" ; volume . set_iScsiName ( volumePath ) ; storage...
org . junit . Assert . assertEquals ( volumePath , volume . getPath ( ) )
assortedDataIntoDefaultBucketFileOutputTest ( ) { loadAssortedData ( ) ; completeSetup ( new java . lang . Integer [ 0 ] ) ; java . lang . String expectedFileOutput = getAssortedSimulatedFileOutput ( ) ; java . lang . String generatedOutput = readGeneratedFile ( ) ; "<AssertPlaceHolder>" ; } readGeneratedFile ( ) { jav...
org . junit . Assert . assertEquals ( expectedFileOutput , generatedOutput )
isDeprecated ( ) { org . apache . hadoop . fs . shell . Count count = new org . apache . hadoop . fs . shell . Count ( ) ; boolean actual = count . isDeprecated ( ) ; boolean expected = false ; "<AssertPlaceHolder>" ; } isDeprecated ( ) { org . apache . hadoop . fs . shell . Count count = new org . apache . hadoop . fs...
org . junit . Assert . assertEquals ( "Count.isDeprecated" , expected , actual )
minTwoByteInt_writenAsUIntBase128_thenInputStreamReadsCorrectly ( ) { int oneByteInt = 128 ; int read = writeAndReadUIntBase128 ( oneByteInt ) ; "<AssertPlaceHolder>" ; } writeAndReadUIntBase128 ( int ) { org . mabb . fontverter . woff . WoffOutputStream out = new org . mabb . fontverter . woff . WoffOutputStream ( ) ;...
org . junit . Assert . assertEquals ( oneByteInt , read )
testOpenIdConnectWithInvalidURL ( ) { org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type type = org . eclipse . microprofile . openapi . models . security . SecurityScheme . Type . OPENIDCONNECT ; java . lang . String url = "this<sp>string<sp>is<sp>an<sp>invalid<sp>url" ; com . ibm . ws ...
org . junit . Assert . assertEquals ( 1 , vh . getEventsSize ( ) )
testRate ( ) { options . setSocketOpt ( ZMQ . ZMQ_RATE , 10 ) ; "<AssertPlaceHolder>" ; } getSocketOpt ( int ) { switch ( option ) { case ZMQ . ZMQ_SNDHWM : return sendHwm ; case ZMQ . ZMQ_RCVHWM : return recvHwm ; case ZMQ . ZMQ_AFFINITY : return affinity ; case ZMQ . ZMQ_IDENTITY : return identity ; case ZMQ . ZMQ_RA...
org . junit . Assert . assertThat ( options . getSocketOpt ( ZMQ . ZMQ_RATE ) , org . hamcrest . CoreMatchers . is ( ( ( java . lang . Object ) ( 10 ) ) ) )
testOpenQueryType ( ) { eval = new org . apache . jena . permissions . MockSecurityEvaluator ( true , true , true , true , true , true ) ; setup ( ) ; try { final java . lang . String query = "prefix<sp>fn:<sp><http://www.w3.org/2005/xpath-functions#><sp>" + ( ( ( "<sp>SELECT<sp>?foo<sp>?bar<sp>WHERE<sp>" + "<sp>{<sp>?...
org . junit . Assert . assertEquals ( 8 , count )
testProgressiveSignatureVerification ( ) { org . xwiki . crypto . signer . Signer signer = factory . getInstance ( true , privateKey ) ; progressiveUpdateSignature ( signer , text , 17 ) ; byte [ ] signature = signer . generate ( ) ; org . xwiki . crypto . signer . Signer verifier = factory . getInstance ( true , publi...
org . junit . Assert . assertTrue ( verifier . verify ( signature ) )
shouldBeAbleToOverrideTheContent ( ) { c . body ( "another" ) ; "<AssertPlaceHolder>" ; } body ( ) { return cell . body ; }
org . junit . Assert . assertThat ( "another" , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( c . body ( ) ) ) )
shouldGetResourceAsReader ( ) { java . io . Reader in = org . apache . ibatis . io . Resources . getResourceAsReader ( org . apache . ibatis . io . ResourcesTest . CLASS_LOADER , org . apache . ibatis . io . JPETSTORE_PROPERTIES ) ; "<AssertPlaceHolder>" ; in . close ( ) ; } getResourceAsReader ( java . lang . ClassLoa...
org . junit . Assert . assertNotNull ( in )
deleteTest ( ) { com . jfireframework . sql . test . entity . User user = new com . jfireframework . sql . test . entity . User ( ) ; user . setId ( 1 ) ; session . delete ( user ) ; try { java . sql . PreparedStatement pstat = connection . prepareStatement ( "select<sp>count(userid)<sp>from<sp>user" ) ; java . sql . R...
org . junit . Assert . assertEquals ( 2 , resultSet . getInt ( 1 ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( images . isEmpty ( ) )
testSetOrgId ( ) { System . out . println ( "Testing<sp>CKANCache.setOrgId" ) ; cache . setOrgId ( orgName , orgId ) ; "<AssertPlaceHolder>" ; } getOrgId ( java . lang . String ) { return orgMap . get ( orgName ) ; }
org . junit . Assert . assertEquals ( orgId , cache . getOrgId ( orgName ) )
testExecuteJob ( ) { org . pentaho . di . job . JobMeta jobMeta = mock ( org . pentaho . di . job . JobMeta . class ) ; java . lang . String filePath = ( org . pentaho . test . platform . utils . TestResourceLocation . TEST_RESOURCES ) + "/FileOutputResourceTest/system/HelloWorld.kjb" ; when ( jobMeta . getFilename ( )...
org . junit . Assert . assertFalse ( executeJob )
testHashCode ( ) { org . hisp . dhis . dataelement . DataElement dataElementA = new org . hisp . dhis . dataelement . DataElement ( "DataElement<sp>A" ) ; org . hisp . dhis . dataelement . DataElement dataElementB = new org . hisp . dhis . dataelement . DataElement ( "DataElement<sp>B" ) ; org . hisp . dhis . category ...
org . junit . Assert . assertEquals ( 10 , dataElementOperands . size ( ) )
testUpDownClick ( ) { world . bentobox . bentobox . api . flags . clicklisteners . CycleClick udc = new world . bentobox . bentobox . api . flags . clicklisteners . CycleClick ( "LOCK" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( udc )
functionsCanBeOverriddenWithExtend ( ) { io . burt . jmespath . function . FunctionRegistry defaultRegistry = io . burt . jmespath . function . FunctionRegistry . defaultRegistry ( ) ; io . burt . jmespath . function . FunctionRegistry extendedRegistry = defaultRegistry . extend ( new io . burt . jmespath . function . ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( ( ( java . lang . Object ) ( "notanumber" ) ) ) )
testExactMatchBeforePrefixMatch ( ) { java . nio . file . Path expectedPath = createTmpNdkVersions ( com . facebook . buck . android . toolchain . ndk . impl . AndroidNdkResolver . NDK_POST_R11_VERSION_FILENAME , "ndk-dir-r17c1" , "Pkg.Desc<sp>=<sp>Android<sp>NDK\nPkg.Revision<sp>=<sp>17.2.4988734.1" , "ndk-dir-r17c" ,...
org . junit . Assert . assertEquals ( expectedPath , resolver . getNdkOrThrow ( ) )
testComputeAnomalyScoreNoMatch ( ) { java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap ( ) ; params . put ( org . numenta . nupic . algorithms . Anomaly . KEY_MODE , Mode . PURE ) ; org . numenta . nupic . algorithms . Anomaly anomalyComputer = org . numenta . nupic . ...
org . junit . Assert . assertEquals ( 1.0 , score , 0 )
testNoFailureOnNullSource ( ) { cern . c2mon . server . common . datatag . DataTagCacheObject dataTag = new cern . c2mon . server . common . datatag . DataTagCacheObject ( java . lang . Long . valueOf ( 2 ) , "test<sp>name" , "Float" , DataTagConstants . MODE_OPERATIONAL ) ; recordUpdateFromSourceMock ( dataTag , false...
org . junit . Assert . assertTrue ( ( ! updated ) )
testRingNonRing ( ) { org . openscience . cdk . isomorphism . matchers . Expr expr = new org . openscience . cdk . isomorphism . matchers . Expr ( RING_SIZE , 6 ) ; org . openscience . cdk . interfaces . IAtom atom = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; when ( atom . isInRing ( ) ) . thenRetu...
org . junit . Assert . assertFalse ( expr . matches ( atom ) )
testToEbXMLNull_MPQ ( ) { multiplePatientsQueryTransformer . toEbXML ( null , ebXML ) ; "<AssertPlaceHolder>" ; } getSlots ( ) { return getSlotList ( ) . getSlots ( ) ; }
org . junit . Assert . assertEquals ( 0 , ebXML . getSlots ( ) . size ( ) )
testGetTableDescription ( ) { final java . lang . String expectedDescription = "CREATE<sp>TABLE<sp>IF<sp>NOT<sp>EXISTS<sp>\"Owls\"<sp>(" + ( "name<sp>text,<sp>species<sp>text,<sp>hooita<sp>text<sp>STATIC,<sp>lepota<sp>text,<sp>" + "PRIMARY<sp>KEY<sp>((name),<sp>species));" ) ; final org . nohope . cassandra . mapservic...
org . junit . Assert . assertEquals ( expectedDescription , s1 . getTableDescription ( ) )
testConstructor ( ) { org . apromore . service . model . ToolboxData obj = new org . apromore . service . model . ToolboxData ( ) ; obj . addModel ( new org . apromore . dao . model . ProcessModelVersion ( ) , new org . apromore . cpf . CanonicalProcessType ( ) ) ; obj . addModel ( new org . apromore . dao . model . Pr...
org . junit . Assert . assertThat ( obj . getModel ( ) . size ( ) , org . hamcrest . CoreMatchers . equalTo ( 2 ) )
nonRecursiveFakeMethodWithInvocationParameterUsedForProceeding ( ) { new mockit . MockUp < mockit . ReentrantFakeTest . RealClass > ( ) { @ mockit . Mock int nonRecursiveMethod ( mockit . Invocation inv , int i ) { if ( i > 1 ) return i ; return inv . proceed ( ( i + 1 ) ) ; } } ; int result = new mockit . ReentrantFak...
org . junit . Assert . assertEquals ( ( - 2 ) , result )
getDetectedEncoding_A$File ( ) { org . junithelper . core . file . FileReaderCommonsIOImpl target = new org . junithelper . core . file . FileReaderCommonsIOImpl ( ) ; java . io . File file = new java . io . File ( "src/test/resources/UTF-8.txt" ) ; java . lang . String actual = target . getDetectedEncoding ( file ) ; ...
org . junit . Assert . assertEquals ( expected , actual )
testGetParametersWithDefaultEntityAndDisabledDEfaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . education . form . type . EducationFormType entity = new org . lnu . is . domain . education . form . type . EducationFormType ( ) ; java . util . Map < java . lang . String ...
org . junit . Assert . assertEquals ( expected , actual )
testBepaalVerwerkingssoortPersoonEnAfgeleidAdministratiefT ( ) { final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl testPersoon = nl . bzk . brp . util . testpersoonbouwers . TestPersoonJohnnyJordaan . maak ( ) ; final nl . bzk . brp . model . hisvolledig . predikaatview . kern . PersoonH...
org . junit . Assert . assertEquals ( Verwerkingssoort . TOEVOEGING , resultaat )
nullCause ( ) { java . lang . Throwable a = new java . lang . Throwable ( ) ; "<AssertPlaceHolder>" ; } getRootCause ( java . lang . Throwable ) { if ( orig == null ) { return orig ; } java . lang . Throwable t = orig ; for ( int i = 0 ; i < 1000 ; i ++ ) { java . lang . Throwable cause = t . getCause ( ) ; if ( cause ...
org . junit . Assert . assertSame ( a , software . amazon . awssdk . core . internal . util . ThrowableUtils . getRootCause ( a ) )
test ( ) { eu . europa . esig . dss . DSSDocument documentToSign = new eu . europa . esig . dss . FileDocument ( new java . io . File ( "src/test/resources/sample.xml" ) ) ; eu . europa . esig . dss . xades . XAdESSignatureParameters signatureParameters = new eu . europa . esig . dss . xades . XAdESSignatureParameters ...
org . junit . Assert . assertTrue ( found )
testGetDataBlockEncoder ( ) { for ( org . apache . hadoop . hbase . io . encoding . DataBlockEncoding algo : org . apache . hadoop . hbase . io . encoding . DataBlockEncoding . values ( ) ) { org . apache . hadoop . hbase . io . encoding . DataBlockEncoder encoder = org . apache . hadoop . hbase . io . encoding . DataB...
org . junit . Assert . assertTrue ( org . apache . hadoop . hbase . io . encoding . DataBlockEncoding . isCorrectEncoder ( encoder , algo . getId ( ) ) )
shouldNotLeaveResidualLockStateAfterAllLocksHaveBeenReleased ( ) { org . neo4j . kernel . impl . locking . ReentrantLockService locks = new org . neo4j . kernel . impl . locking . ReentrantLockService ( ) ; locks . acquireNodeLock ( 42 , LockService . LockType . WRITE_LOCK ) . release ( ) ; "<AssertPlaceHolder>" ; } lo...
org . junit . Assert . assertEquals ( 0 , locks . lockCount ( ) )
testStringRendererWithPrintfFormat ( ) { java . lang . String templates = "foo(x)<sp>::=<sp><<<sp><x;<sp>format=\"%6s\"><sp>>>\n" ; writeFile ( tmpdir , "t.stg" , templates ) ; org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroupFile ( ( ( tmpdir ) + "/t.stg" ) ) ; group . registerRendere...
org . junit . Assert . assertEquals ( expecting , result )
should_return_empty_iterator_if_read_too_short ( ) { au . edu . wehi . idsv . debruijn . ReadKmerIterable rki = new au . edu . wehi . idsv . debruijn . ReadKmerIterable ( 2 , B ( "A" ) , B ( "A" ) ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return au . edu . wehi . idsv . SAMEvidenceSource . mergedIterator ( all , tru...
org . junit . Assert . assertFalse ( rki . iterator ( ) . hasNext ( ) )
testCanRead ( ) { org . apache . jackrabbit . oak . spi . security . authorization . permission . TreePermission tp = getTreePermission ( accessSession , org . apache . jackrabbit . oak . security . authorization . permission . RepoPolicyTreePermissionTest . REPO_POLICY_PATH ) ; "<AssertPlaceHolder>" ; } canRead ( ) { ...
org . junit . Assert . assertTrue ( tp . canRead ( ) )
testUpload ( ) { final ch . cyberduck . core . Host host = new ch . cyberduck . core . Host ( new ch . cyberduck . core . spectra . SpectraProtocol ( ) { @ ch . cyberduck . core . spectra . Override public ch . cyberduck . core . Scheme getScheme ( ) { return ch . cyberduck . core . Scheme . http ; } } , java . lang . ...
org . junit . Assert . assertArrayEquals ( content , buffer )
shouldThrowExceptionWhenUpdateInstanceWithInvalidModuleClass ( ) { java . lang . System . setProperty ( JSONSerialiser . JSON_SERIALISER_MODULES , "module1" ) ; try { uk . gov . gchq . gaffer . jsonserialisation . JSONSerialiser . update ( ) ; org . junit . Assert . fail ( "Exception<sp>expected" ) ; } catch ( final ja...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( "module1" ) )
testGivenMaxMin ( ) { double tolerancePerc = 1 ; int nSamples = 500 ; int nFeatures = 3 ; org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; org . nd4j . linalg . api . ndarray . INDArray featureSet = org . nd4j . linalg . factory . Nd4j . rand ( nSamples , nFeatures ) ; org . nd4j . linalg . ap...
org . junit . Assert . assertTrue ( ( maxdeltaPerc < tolerancePerc ) )
loadProductionPropertyWithMap ( ) { ru . qatools . properties . testdata . UseMapReplacerProviderProperty mfp = new ru . qatools . properties . testdata . UseMapReplacerProviderProperty ( "second" , "production" ) ; "<AssertPlaceHolder>" ; } getProperty ( ) { return property ; }
org . junit . Assert . assertThat ( mfp . getProperty ( ) , org . hamcrest . CoreMatchers . equalTo ( "production" ) )
testGetFromStudy ( ) { java . util . List < net . sourceforge . seqware . common . model . Experiment > experiments = getExperiments ( "/studies/120/experiments" ) ; "<AssertPlaceHolder>" ; } getExperiments ( java . lang . String ) { resource = net . sourceforge . seqware . webservice . resources . ClientResourceInstan...
org . junit . Assert . assertFalse ( experiments . isEmpty ( ) )
initProfileTemplate_usesProfilesLocationAlongWithRelativeProfileIfTheirAbsoluteTemplateExists ( ) { final org . openqa . selenium . browserlaunchers . locators . BrowserInstallation browserInstallation = mock ( org . openqa . selenium . browserlaunchers . locators . BrowserInstallation . class ) ; final java . io . Fil...
org . junit . Assert . assertEquals ( profileTemplate , result )
testSetDepositNumber ( ) { final com . iluwatar . intercepting . filter . Order order = new com . iluwatar . intercepting . filter . Order ( ) ; order . setDepositNumber ( com . iluwatar . intercepting . filter . OrderTest . EXPECTED_VALUE ) ; "<AssertPlaceHolder>" ; } getDepositNumber ( ) { return depositNumber ; }
org . junit . Assert . assertEquals ( com . iluwatar . intercepting . filter . OrderTest . EXPECTED_VALUE , order . getDepositNumber ( ) )
testBootstrap ( ) { se . sics . kompics . CreateAndStartTest . root0Created = false ; se . sics . kompics . CreateAndStartTest . semaphore0 = new java . util . concurrent . Semaphore ( 0 ) ; se . sics . kompics . Kompics . createAndStart ( se . sics . kompics . CreateAndStartTest . TestRoot0 . class , 1 ) ; se . sics ....
org . junit . Assert . assertTrue ( se . sics . kompics . CreateAndStartTest . root0Created )
testExpected ( ) { addSnippetParam ( "sample.id1" , environment . getProperty ( "sample.id1" ) ) ; boolean result = checkExpected ( "Social_Profiles_REST_Read_Response_Headers" , "Content-Type:<sp>application/atom+xml;charset=UTF-8" ) ; "<AssertPlaceHolder>" ; } getExpectedErrorMsg ( ) { return expectedErrorMsg ; }
org . junit . Assert . assertTrue ( getExpectedErrorMsg ( ) , result )
modulesWithSamePriorityGetSortedByName ( ) { org . phenotips . security . authorization . AuthorizationModule aModule = new org . phenotips . security . authorization . internal . AuthorizationModuleListProviderTest . AModule ( ) ; org . phenotips . security . authorization . AuthorizationModule bModule = new org . phe...
org . junit . Assert . assertThat ( actualList , org . hamcrest . Matchers . is ( expectedList ) )