Commits

Manuel Polo committed d8d920e

removed global metadata testing from simple metadata test method

Comments (0)

Files changed (1)

src/test/java/org/mongoste/core/impl/mongodb/MongoStatsEngineTest.java

         System.out.println("testMetadataCounters");
         int count = 33;
         StatEvent event = engine.createSampleEvent();
-        event.getMetadata().put(MongoStatsEngine.METAKEY_GLOBAL_PREFIX + "global", "key");
-        event.getMetadata().put(MongoStatsEngine.METAKEY_GLOBAL_PREFIX + "integer", 10000000);
-        event.getMetadata().put(MongoStatsEngine.METAKEY_GLOBAL_PREFIX + "long", 100000000000000000L);
-        event.getMetadata().put(MongoStatsEngine.METAKEY_GLOBAL_PREFIX + "double", 0.333333333d);
         event.getMetadata().put("basic", "key");
         event.getMetadata().put("single", null);
         event.getMetadata().put("integer", 10000000);
         assertEquals(count * (Integer)event.getMetadata().get("integer"),metadata.getInt("integer"));
         assertEquals(count * (Long)event.getMetadata().get("long"),metadata.getLong("long"));
         assertEquals(count * (Double)event.getMetadata().get("double"),metadata.getDouble("double"),0.0000001d);  
-        //Check global metadata:
-        metadata = (BasicDBObject) target.get(MongoStatsEngine.FIELD_META);
-        assertNotNull(metadata);
-        assertEquals(count,MongoUtil.getChildDBObject(metadata, "global").getInt("key"));
-        assertEquals(count * (Integer)event.getMetadata().get("integer"),metadata.getInt("integer"));
-        assertEquals(count * (Long)event.getMetadata().get("long"),metadata.getLong("long"));
-        assertEquals(count * (Double)event.getMetadata().get("double"),metadata.getDouble("double"),0.0000001d);  
     }