use of com.navercorp.pinpoint.thrift.io.TCommandTypeVersion in project pinpoint by naver.
the class TCommandTypeVersionTest method versionTest2.
@Test
public void versionTest2() {
TCommandTypeVersion version = TCommandTypeVersion.UNKNOWN;
List<TCommandType> supportTypeList = version.getSupportCommandList();
Assert.assertEquals(0, supportTypeList.size());
}
use of com.navercorp.pinpoint.thrift.io.TCommandTypeVersion in project pinpoint by naver.
the class TCommandTypeVersionTest method versionTest3.
@Test
public void versionTest3() {
TCommandTypeVersion version = TCommandTypeVersion.getVersion("1.0.0");
Assert.assertEquals(TCommandTypeVersion.UNKNOWN, version);
version = TCommandTypeVersion.getVersion(TCommandTypeVersion.V_1_0_2_SNAPSHOT.getVersionName());
Assert.assertEquals(TCommandTypeVersion.V_1_0_2_SNAPSHOT, version);
}
use of com.navercorp.pinpoint.thrift.io.TCommandTypeVersion in project pinpoint by naver.
the class TCommandTypeVersionTest method versionTest1.
@Test
public void versionTest1() {
TCommandTypeVersion version = TCommandTypeVersion.V_1_0_2_SNAPSHOT;
List<TCommandType> supportTypeList = version.getSupportCommandList();
Assert.assertEquals(2, supportTypeList.size());
Assert.assertTrue(supportTypeList.contains(TCommandType.THREAD_DUMP));
Assert.assertTrue(supportTypeList.contains(TCommandType.RESULT));
}
Aggregations