Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-08-22 21:19:19 -0400
committermkersten2006-08-22 21:19:19 -0400
commit623194e1223c949cc85ad4280ce13ad46470f929 (patch)
tree44aad6ca5226fa0a5d7d424ed5fd04ed42733802 /org.eclipse.mylyn.trac.tests
parent04a0d2895fad2f7645c213b8f7aa7e1df8add1ff (diff)
downloadorg.eclipse.mylyn.tasks-623194e1223c949cc85ad4280ce13ad46470f929.tar.gz
org.eclipse.mylyn.tasks-623194e1223c949cc85ad4280ce13ad46470f929.tar.xz
org.eclipse.mylyn.tasks-623194e1223c949cc85ad4280ce13ad46470f929.zip
Progress on: 153496: Trac connector does not handle html entities when updating repository attributes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=153496
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientSearchTest.java14
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientTest.java2
2 files changed, 14 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientSearchTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientSearchTest.java
index 1eb091386..0fc4cd94e 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientSearchTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientSearchTest.java
@@ -35,6 +35,8 @@ public abstract class AbstractTracClientSearchTest extends AbstractTracClientTes
protected List<Ticket> tickets;
+ private TestData data;
+
public AbstractTracClientSearchTest(Version version) {
super(version);
}
@@ -42,7 +44,7 @@ public abstract class AbstractTracClientSearchTest extends AbstractTracClientTes
protected void setUp() throws Exception {
super.setUp();
- TestData data = TestFixture.init010();
+ data = TestFixture.init010();
tickets = data.tickets;
connect010();
@@ -80,6 +82,16 @@ public abstract class AbstractTracClientSearchTest extends AbstractTracClientTes
}
}
+ public void testGetTicketUmlaute() throws Exception {
+ TracTicket ticket = repository.getTicket(data.htmlEntitiesTicketId);
+ assertEquals("test html entities: ", ticket.getValue(Key.SUMMARY));
+ if (version == Version.XML_RPC) {
+ assertEquals("\n\nmulti\nline\n\n'''bold'''\n", ticket.getValue(Key.DESCRIPTION));
+ } else {
+ assertEquals(null, ticket.getValue(Key.DESCRIPTION));
+ }
+ }
+
public void testSearchAll() throws Exception {
TracSearch search = new TracSearch();
// TODO figure out why search must be ordered when logged in (otherwise
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientTest.java
index e4c747556..78dd876f3 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/AbstractTracClientTest.java
@@ -35,7 +35,7 @@ public abstract class AbstractTracClientTest extends TestCase {
public String password;
- private Version version;
+ public Version version;
public AbstractTracClientTest(Version version) {
this.version = version;

Back to the top