OSDN Git Service

cflib は plugins プロジェクトから,Stigmata直下のプロジェクトに移行したため,このリポジトリからは削除した.
[stigmata/stigmata-plugins.git] / osb / src / test / java / jp / sourceforge / stigmata / birthmarks / osb / OperandStackBehaviorsBirthmarkServiceTest.java
1 package jp.sourceforge.stigmata.birthmarks.osb;\r
2 \r
3 import org.junit.Assert;\r
4 import org.junit.Before;\r
5 import org.junit.Test;\r
6 \r
7 public class OperandStackBehaviorsBirthmarkServiceTest{\r
8     private OperandStackBehaviorsBirthmarkService service;\r
9 \r
10     @Before\r
11     public void setUp(){\r
12         service = new OperandStackBehaviorsBirthmarkService();\r
13     }\r
14 \r
15     @Test\r
16     public void testBasic(){\r
17         Assert.assertEquals("osb", service.getType());\r
18         Assert.assertEquals("Operand stack behaviors birthmark", service.getDescription());\r
19         Assert.assertNull(service.getPreprocessor());\r
20 \r
21         Assert.assertEquals(OperandStackBehaviorsBirthmarkExtractor.class, service.getExtractor().getClass());\r
22         Assert.assertEquals(OperandStackBehaviorsBirthmarkComparator.class, service.getComparator().getClass());\r
23 \r
24         Assert.assertFalse(service.isExperimental());\r
25         Assert.assertFalse(service.isUserDefined());\r
26     }\r
27 }\r