You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/01/20 20:11:39 UTC

[jira] [Commented] (GEODE-798) OffHeapStorageJUnitTest.testCreateOffHeapStorage should not create a real cache

    [ https://issues.apache.org/jira/browse/GEODE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15109205#comment-15109205 ] 

ASF subversion and git services commented on GEODE-798:
-------------------------------------------------------

Commit 27f9c0e8775d50981241a67d792abb3e94adb939 in incubator-geode's branch refs/heads/develop from [~dschneider]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=27f9c0e ]

GEODE-798: change unit test to not create a real cache

testCreateOffHeapStorage now uses mocks.
Also a LocalStatisticsFactory can now be created without starting a sampler.
This allows it to be used as a light weight StatisticsFactory compared to InternalDistributedSystem.
The nice thing compared to a mocked StatisticsFactory is it will still create functional Statistics instances.


> OffHeapStorageJUnitTest.testCreateOffHeapStorage should not create a real cache
> -------------------------------------------------------------------------------
>
>                 Key: GEODE-798
>                 URL: https://issues.apache.org/jira/browse/GEODE-798
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>
> The OffHeapStorageJUnitTest testCreateOffHeapStorage method creates a real cache that is then used to obtain a StatisticsFactory and DistributedSystem to pass to createOffHeapStorage. 
> It should instead create a mocked StatisticsFactory and DistributedSystem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)