Author: adietish
Date: 2010-08-12 08:39:02 -0400 (Thu, 12 Aug 2010)
New Revision: 24098
Modified:
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
Log:
[JBIDE-6376] focuspoint test for 1 level added
Modified:
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
===================================================================
---
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java 2010-08-12
12:20:53 UTC (rev 24097)
+++
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java 2010-08-12
12:39:02 UTC (rev 24098)
@@ -10,6 +10,7 @@
private static final String root = "root";
private static final String child1 = "child1";
private static final String URI_SEPARATOR_ENCODED =
EncodingUtils.checkedEncodeUtf8(FocusPoint.URI_SEPARATOR);
+ private static final String TITLE_SEPARATOR_ENCODED =
EncodingUtils.checkedEncodeUtf8(FocusPoint.TITLE_SEPARATOR);
public void testGetContentURI_Simple() throws Exception {
FocusPoint focusPoint = new FocusPoint(root);
@@ -31,4 +32,12 @@
assertNotNull(contentTitle);
assertEquals(root, contentTitle);
}
+
+ public void testGetContentTitle_OneLevel() throws Exception {
+ FocusPoint focusPoint = new FocusPoint(root).setChild(new FocusPoint(child1));
+ String contentTitle = focusPoint.getContentTitle();
+ assertNotNull(contentTitle);
+ assertEquals(root + TITLE_SEPARATOR_ENCODED + child1, contentTitle);
+ }
+
}
Show replies by date