You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/10/26 10:22:56 UTC
svn commit: r467908 -
/lenya/trunk/src/impl/test/org/apache/lenya/cms/site/SimpleSiteManagerTest.java
Author: andreas
Date: Thu Oct 26 01:22:56 2006
New Revision: 467908
URL: http://svn.apache.org/viewvc?view=rev&rev=467908
Log:
Added failing test for bug 40666 (navigation title does not stick)
Modified:
lenya/trunk/src/impl/test/org/apache/lenya/cms/site/SimpleSiteManagerTest.java
Modified: lenya/trunk/src/impl/test/org/apache/lenya/cms/site/SimpleSiteManagerTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/test/org/apache/lenya/cms/site/SimpleSiteManagerTest.java?view=diff&rev=467908&r1=467907&r2=467908
==============================================================================
--- lenya/trunk/src/impl/test/org/apache/lenya/cms/site/SimpleSiteManagerTest.java (original)
+++ lenya/trunk/src/impl/test/org/apache/lenya/cms/site/SimpleSiteManagerTest.java Thu Oct 26 01:22:56 2006
@@ -100,6 +100,9 @@
Document linkDoc = structure.getNode(PATH).getLink("en").getDocument();
assertSame(linkDoc, doc);
+ Link link = doc.getLink();
+ checkSetLabel(link);
+
doc.getLink().delete();
assertFalse(structure.containsByUuid(doc.getUUID(), doc.getLanguage()));
assertFalse(structure.contains(PATH));
@@ -120,6 +123,13 @@
}
}
// session.commit();
+ }
+
+ protected void checkSetLabel(Link link) {
+ String newLabel = "New Label";
+ assertFalse(link.getLabel().equals(newLabel));
+ link.setLabel(newLabel);
+ assertTrue(link.getLabel().equals(newLabel));
}
protected void checkLinks(SiteManager siteManager, SiteNode node) throws SiteException {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org