@Test public void testInvalidSample2() { Feature.Sample s = new Feature.Sample(100, new Number[] {0}, new Field[] {}); Assert.assertTrue(FeatureMicLevel.getMicLevel(s, 1) < 0); }
@Test public void testGetSample2() { byte level = 123; Feature.Sample s = new Feature.Sample(100, new Number[] {0, level}, new Field[] {}); Assert.assertEquals(level, FeatureMicLevel.getMicLevel(s, 1)); }
@Test public void testNullInvalidSample() { Assert.assertTrue(FeatureMicLevel.getMicLevel(null, 0) < 0); Assert.assertTrue(FeatureMicLevel.getMicLevel(null, 10) < 0); }