@@ -25,7 +25,7 @@ public class JavaDocCommentTest {
25
25
public void createJavaDocComment_basic () {
26
26
String content = "this is a test comment" ;
27
27
JavaDocComment javaDocComment = JavaDocComment .builder ().addComment (content ).build ();
28
- assertEquals (javaDocComment .comment (), content );
28
+ assertEquals (content , javaDocComment .comment ());
29
29
}
30
30
31
31
@ Test
@@ -51,7 +51,7 @@ public void createJavaDocComment_specialCharacter() {
51
51
+ " libraryClient.createShelfCallable().futureCall(request);\n "
52
52
+ "}</pre>\n "
53
53
+ "@throws Exception This is an exception." ;
54
- assertEquals (javaDocComment .comment (), expected );
54
+ assertEquals (expected , javaDocComment .comment ());
55
55
}
56
56
57
57
@ Test
@@ -65,7 +65,7 @@ public void createJavaDocComment_sampleCode() {
65
65
+ "<pre>{@code\n "
66
66
+ "resource = project/{project}/shelfId/{shelfId}\n "
67
67
+ "}</pre>" ;
68
- assertEquals (javaDocComment .comment (), expected );
68
+ assertEquals (expected , javaDocComment .comment ());
69
69
}
70
70
71
71
@ Test
@@ -122,7 +122,7 @@ public void createJavaDocComment_multipleComments() {
122
122
+ "<li> A request object method.\n "
123
123
+ "<li> A callable method.\n "
124
124
+ "</ol>" ;
125
- assertEquals (javaDocComment .comment (), expected );
125
+ assertEquals (expected , javaDocComment .comment ());
126
126
}
127
127
128
128
@ Test
@@ -143,7 +143,7 @@ public void createJavaDocComment_multipleParams() {
143
143
"This is a block comment.\n "
144
144
+ "@param shelfName The name of the shelf where books are published to.\n "
145
145
+ "@param shelfId The shelfId of the shelf where books are published to." ;
146
- assertEquals (javaDocComment .comment (), expected );
146
+ assertEquals (expected , javaDocComment .comment ());
147
147
}
148
148
149
149
@ Test
@@ -168,7 +168,7 @@ public void createJavaDocComment_throwsAndDeprecated() {
168
168
String expected =
169
169
"@throws java.lang.RuntimeException if the remote call fails.\n "
170
170
+ "@deprecated Use the {@link ShelfBookName} class instead." ;
171
- assertEquals (javaDocComment .comment (), expected );
171
+ assertEquals (expected , javaDocComment .comment ());
172
172
}
173
173
174
174
@ Test
@@ -219,7 +219,7 @@ public void createJavaDocComment_allComponents() {
219
219
+ "@param shelf The shelf to create.\n "
220
220
+ "@throws com.google.api.gax.rpc.ApiException if the remote call fails.\n "
221
221
+ "@deprecated Use the {@link ArchivedBookName} class instead." ;
222
- assertEquals (javaDocComment .comment (), expected );
222
+ assertEquals (expected , javaDocComment .comment ());
223
223
}
224
224
225
225
private static String createLines (int numLines ) {
0 commit comments