Skip to content

Commit

Permalink
GEOT-4029 Added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Davis committed Aug 16, 2012
1 parent 8155457 commit a4b77f5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@ public void testNames() {

public void testDescribeIdentity() {
NameImpl name = new NameImpl("bean", "Identity");
DescribeProcess describeProcessAnno = IdentityProcess.class.getAnnotation(DescribeProcess.class);

InternationalString desc = factory.getDescription(name);
assertNotNull(desc);
assertTrue(desc.toString().equals(describeProcessAnno.description()));
InternationalString title = factory.getTitle(name);
assertTrue(title.toString().equals(describeProcessAnno.title()));

Map<String, Parameter<?>> params = factory.getParameterInfo(name);
assertEquals(1, params.size());
Expand Down

0 comments on commit a4b77f5

Please sign in to comment.