2015-05-01 21:57:22 +00:00
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import division
|
|
|
|
from __future__ import absolute_import
|
2012-10-11 23:10:30 +00:00
|
|
|
import unittest
|
|
|
|
|
|
|
|
from jnius.reflect import autoclass
|
|
|
|
|
|
|
|
|
|
|
|
class SimpleEnum(unittest.TestCase):
|
|
|
|
|
|
|
|
def test_enum(self):
|
|
|
|
SimpleEnum = autoclass('org.jnius.SimpleEnum')
|
|
|
|
self.assertTrue(SimpleEnum)
|
|
|
|
|
|
|
|
def test_value(self):
|
|
|
|
SimpleEnum = autoclass('org.jnius.SimpleEnum')
|
|
|
|
self.assertTrue(SimpleEnum.GOOD)
|
|
|
|
self.assertTrue(SimpleEnum.BAD)
|
|
|
|
self.assertTrue(SimpleEnum.UGLY)
|