geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-798) OffHeapStorageJUnitTest.testCreateOffHeapStorage should not create a real cache
Date Wed, 20 Jan 2016 19:11:39 GMT

    [ 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)

Mime
View raw message