Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b96764

Browse files
authored
[ggj][engx] fix: switch assertEquals (actual,expected) args order in JavaDocCommentTest (#503)
* fix: Update LRO initial_retry_delayo o 5s (discussion in doc) * fix: correct some common typos * fix: switch assertEquals (actual,expected) args order in JavaDocCommentTest * fix: merge master
1 parent 491dd61 commit 3b96764

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/java/com/google/api/generator/engine/ast/JavaDocCommentTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class JavaDocCommentTest {
2525
public void createJavaDocComment_basic() {
2626
String content = "this is a test comment";
2727
JavaDocComment javaDocComment = JavaDocComment.builder().addComment(content).build();
28-
assertEquals(javaDocComment.comment(), content);
28+
assertEquals(content, javaDocComment.comment());
2929
}
3030

3131
@Test
@@ -51,7 +51,7 @@ public void createJavaDocComment_specialCharacter() {
5151
+ " libraryClient.createShelfCallable().futureCall(request);\n"
5252
+ "}</pre>\n"
5353
+ "@throws Exception This is an exception.";
54-
assertEquals(javaDocComment.comment(), expected);
54+
assertEquals(expected, javaDocComment.comment());
5555
}
5656

5757
@Test
@@ -65,7 +65,7 @@ public void createJavaDocComment_sampleCode() {
6565
+ "<pre>{@code\n"
6666
+ "resource = project/{project}/shelfId/{shelfId}\n"
6767
+ "}</pre>";
68-
assertEquals(javaDocComment.comment(), expected);
68+
assertEquals(expected, javaDocComment.comment());
6969
}
7070

7171
@Test
@@ -122,7 +122,7 @@ public void createJavaDocComment_multipleComments() {
122122
+ "<li> A request object method.\n"
123123
+ "<li> A callable method.\n"
124124
+ "</ol>";
125-
assertEquals(javaDocComment.comment(), expected);
125+
assertEquals(expected, javaDocComment.comment());
126126
}
127127

128128
@Test
@@ -143,7 +143,7 @@ public void createJavaDocComment_multipleParams() {
143143
"This is a block comment.\n"
144144
+ "@param shelfName The name of the shelf where books are published to.\n"
145145
+ "@param shelfId The shelfId of the shelf where books are published to.";
146-
assertEquals(javaDocComment.comment(), expected);
146+
assertEquals(expected, javaDocComment.comment());
147147
}
148148

149149
@Test
@@ -168,7 +168,7 @@ public void createJavaDocComment_throwsAndDeprecated() {
168168
String expected =
169169
"@throws java.lang.RuntimeException if the remote call fails.\n"
170170
+ "@deprecated Use the {@link ShelfBookName} class instead.";
171-
assertEquals(javaDocComment.comment(), expected);
171+
assertEquals(expected, javaDocComment.comment());
172172
}
173173

174174
@Test
@@ -219,7 +219,7 @@ public void createJavaDocComment_allComponents() {
219219
+ "@param shelf The shelf to create.\n"
220220
+ "@throws com.google.api.gax.rpc.ApiException if the remote call fails.\n"
221221
+ "@deprecated Use the {@link ArchivedBookName} class instead.";
222-
assertEquals(javaDocComment.comment(), expected);
222+
assertEquals(expected, javaDocComment.comment());
223223
}
224224

225225
private static String createLines(int numLines) {

0 commit comments

Comments
 (0)