Search in sources :

Example 1 with TCommandTypeVersion

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());
}
Also used : TCommandTypeVersion(com.navercorp.pinpoint.thrift.io.TCommandTypeVersion) TCommandType(com.navercorp.pinpoint.thrift.io.TCommandType) Test(org.junit.Test)

Example 2 with TCommandTypeVersion

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);
}
Also used : TCommandTypeVersion(com.navercorp.pinpoint.thrift.io.TCommandTypeVersion) Test(org.junit.Test)

Example 3 with TCommandTypeVersion

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));
}
Also used : TCommandTypeVersion(com.navercorp.pinpoint.thrift.io.TCommandTypeVersion) TCommandType(com.navercorp.pinpoint.thrift.io.TCommandType) Test(org.junit.Test)

Aggregations

TCommandTypeVersion (com.navercorp.pinpoint.thrift.io.TCommandTypeVersion)3 Test (org.junit.Test)3 TCommandType (com.navercorp.pinpoint.thrift.io.TCommandType)2