use of com.alibaba.com.caucho.hessian.io.beans.Type in project dubbo by alibaba.
the class Hessian2EnumSetTest method set.
@Test
public void set() throws Exception {
EnumSet<Type> types = EnumSet.of(Type.High, Type.Lower);
EnumSet set = baseHession2Serialize(types);
assertTrue(set.contains(Type.High));
assertFalse(set.contains(Type.Normal));
}
use of com.alibaba.com.caucho.hessian.io.beans.Type in project dubbo by alibaba.
the class Hessian2EnumSetTest method none.
@Test
public void none() throws Exception {
EnumSet<Type> types = EnumSet.noneOf(Type.class);
EnumSet set = baseHession2Serialize(types);
TestCase.assertEquals(set, EnumSet.noneOf(Type.class));
}