@Test
@SuppressWarnings("unused")
public void testConstructorNullArgsConst2() {
try {
GMetric gmetric = new GMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
} catch (IllegalArgumentException e) {
assertTrue(true);
}catch (Exception e) {
fail();
}
try {
GMetric gmetric = new GMetric(null, "Ganglia Test", GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
} catch (IllegalArgumentException e) {
assertTrue(true);
}catch (Exception e) {
fail();
}
try {
GMetric gmetric = new GMetric(host, null, GMetric.VALUE_TYPE_INT, "count", GMetric.SLOPE_UNSPECIFIED, true);
} catch (IllegalArgumentException e) {
assertTrue(true);
}catch (Exception e) {
fail();
}
try {
GMetric gmetric = new GMetric(host, "Ganglia Test", null, "count", GMetric.SLOPE_UNSPECIFIED, true);
} catch (IllegalArgumentException e) {
assertTrue(true);
}catch (Exception e) {
fail();
}
try {
GMetric gmetric = new GMetric(host, "Ganglia Test", GMetric.VALUE_TYPE_INT, null, GMetric.SLOPE_UNSPECIFIED, true);
} catch (IllegalArgumentException e) {
assertTrue(true);
}catch (Exception e) {
fail();
}