summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-07-15 08:38:57 (EDT)
committer Tomasz Zarna2013-07-15 08:38:57 (EDT)
commit70b66a7e31cca2979b802a231be70b231a283892 (patch)
tree01c4b5b1984973df916c2895b6896b43c75b37d1
parentdc8dbf4b6e40e7c7fcc6b5c3d8d5dea71212fe54 (diff)
downloadorg.eclipse.mylyn.reviews-70b66a7e31cca2979b802a231be70b231a283892.zip
org.eclipse.mylyn.reviews-70b66a7e31cca2979b802a231be70b231a283892.tar.gz
org.eclipse.mylyn.reviews-70b66a7e31cca2979b802a231be70b231a283892.tar.bz2
fix #testGlobalComments(), add assertion for the second commentrefs/changes/60/14560/1
Change-Id: If51bca3269b95862f9eb5fa29b4044839a76fabb Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/internal/gerrit/core/remote/GerritReviewRemoteFactoryTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/internal/gerrit/core/remote/GerritReviewRemoteFactoryTest.java b/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/internal/gerrit/core/remote/GerritReviewRemoteFactoryTest.java
index b983560..c668581 100644
--- a/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/internal/gerrit/core/remote/GerritReviewRemoteFactoryTest.java
+++ b/org.eclipse.mylyn.gerrit.tests/src/org/eclipse/mylyn/internal/gerrit/core/remote/GerritReviewRemoteFactoryTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012 Tasktop Technologies and others.
+ * Copyright (c) 2012, 2013 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -65,11 +65,12 @@ public class GerritReviewRemoteFactoryTest extends GerritRemoteTest {
reviewHarness.listener.waitForResponse(2, 2);
List<IComment> comments = getReview().getComments();
assertThat(comments.size(), is(2));
- IComment comment = comments.get(0);
- assertThat(comment.getAuthor().getDisplayName(), is("tests"));
- assertThat(comment.getDescription(), is("Patch Set 1:\n\n" + message1));
- assertThat(comment.getAuthor().getDisplayName(), is("tests"));
- assertThat(comment.getDescription(), is("Patch Set 1:\n\n" + message1));
+ IComment comment1 = comments.get(0);
+ assertThat(comment1.getAuthor().getDisplayName(), is("tests"));
+ assertThat(comment1.getDescription(), is("Patch Set 1:\n\n" + message1));
+ IComment comment2 = comments.get(1);
+ assertThat(comment2.getAuthor().getDisplayName(), is("tests"));
+ assertThat(comment2.getDescription(), is("Patch Set 1:\n\n" + message2));
}
@Test