Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-49 b7dd37370 -> 9d9828d18


IGNITE-49 Removed unnecessary test.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/9d9828d1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/9d9828d1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/9d9828d1

Branch: refs/heads/ignite-49
Commit: 9d9828d186de9f78520ff2c0330ebef302a19ce5
Parents: b7dd373
Author: nikolay_tikhonov <ntikho...@gridgain.com>
Authored: Mon Jan 19 09:32:37 2015 +0300
Committer: nikolay_tikhonov <ntikho...@gridgain.com>
Committed: Mon Jan 19 09:32:37 2015 +0300

----------------------------------------------------------------------
 .../cache/GridCacheAbstractMetricsSelfTest.java | 78 --------------------
 1 file changed, 78 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9d9828d1/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractMetricsSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractMetricsSelfTest.java
 
b/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractMetricsSelfTest.java
index 4254d4a..b26fcab 100644
--- 
a/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractMetricsSelfTest.java
+++ 
b/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheAbstractMetricsSelfTest.java
@@ -211,84 +211,6 @@ public abstract class GridCacheAbstractMetricsSelfTest 
extends GridCacheAbstract
     /**
      * @throws Exception If failed.
      */
-    public void testStatisticMXBean() throws Exception {
-        CachingProvider cachingProvider = Caching.getCachingProvider();
-
-        CacheManager cacheMgr = cachingProvider.getCacheManager();
-
-        GridCacheConfiguration cfg = new GridCacheConfiguration();
-
-        cfg.setManagementEnabled(true);
-
-        cfg.setStatisticsEnabled(true);
-
-        Cache jcache = cacheMgr.createCache(CACHE_NAME, cfg);
-
-        String beanName = "javax.cache:type=CacheStatistics,CacheManager=" + 
getUriForMbean() + ",Cache=" + CACHE_NAME;
-
-        ObjectName objectName = new ObjectName(beanName);
-
-        long cachePuts = 
(long)getConfiguration().getMBeanServer().getAttribute(objectName, "CachePuts");
-
-        assertEquals(0L, cachePuts);
-
-        jcache.put(1, 1);
-
-        cachePuts = 
(long)getConfiguration().getMBeanServer().getAttribute(objectName, "CachePuts");
-
-        assertEquals(1, cachePuts);
-
-        cacheMgr.destroyCache(CACHE_NAME);
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
-    public void testCacheMxBean() throws Exception {
-        CachingProvider cachingProvider = Caching.getCachingProvider();
-
-        CacheManager cacheMgr = cachingProvider.getCacheManager();
-
-        GridCacheConfiguration cfg = new GridCacheConfiguration();
-
-        cfg.setManagementEnabled(true);
-
-        cfg.setStatisticsEnabled(true);
-
-        cacheMgr.createCache(CACHE_NAME, cfg);
-
-        String beanName = "javax.cache:type=CacheConfiguration,CacheManager=" 
+ getUriForMbean()
-            + ",Cache=" + CACHE_NAME;
-
-        ObjectName objectName = new ObjectName(beanName);
-
-        String keyType = 
(String)getConfiguration().getMBeanServer().getAttribute(objectName, "KeyType");
-        assertEquals("java.lang.Object", keyType);
-
-        String valueType = 
(String)getConfiguration().getMBeanServer().getAttribute(objectName, 
"ValueType");
-        assertEquals("java.lang.Object", valueType);
-
-        boolean readThrough = 
(boolean)getConfiguration().getMBeanServer().getAttribute(objectName, 
"ReadThrough");
-        assertEquals(false, readThrough);
-
-        boolean writeThrough = 
(boolean)getConfiguration().getMBeanServer().getAttribute(objectName, 
"WriteThrough");
-        assertEquals(false, writeThrough);
-
-        boolean storeByValue = 
(boolean)getConfiguration().getMBeanServer().getAttribute(objectName, 
"StoreByValue");
-        assertEquals(true, storeByValue);
-
-        boolean isStat = 
(boolean)getConfiguration().getMBeanServer().getAttribute(objectName, 
"StatisticsEnabled");
-        assertEquals(true, isStat);
-
-        boolean isMng = 
(boolean)getConfiguration().getMBeanServer().getAttribute(objectName, 
"ManagementEnabled");
-        assertEquals(true, isMng);
-
-        cacheMgr.destroyCache(CACHE_NAME);
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
     public void testGetAllAvgTime() throws Exception {
         IgniteCache<Integer, Integer> jcache = grid(0).jcache(null);
         GridCache<Object, Object> cache = grid(0).cache(null);

Reply via email to