Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GEOT-4029 Added unit test

  • Loading branch information...
commit a4b77f5a05526b84979584096e0fe3f1398ca757 1 parent 8155457
Martin Davis authored
View
6 modules/unsupported/process/src/test/java/org/geotools/process/factory/BeanProcessFactoryTest.java
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.