Skip to content

Commit cab5817

Browse files
committed
use assertTrue for boolean checks
1 parent 0c890e3 commit cab5817

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aws-serverless-java-container-core/src/test/java/com/amazonaws/serverless/proxy/internal/servlet/AwsProxyHttpServletRequestFormTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import static org.junit.Assert.assertEquals;
2525
import static org.junit.Assert.assertNotNull;
26+
import static org.junit.Assert.assertTrue;
2627
import static org.junit.Assert.fail;
2728

2829

@@ -121,7 +122,7 @@ public void postForm_getParamsBase64Encoded_expectAllParams() {
121122
Map<String, String[]> params = request.getParameterMap();
122123
assertNotNull(params);
123124
assertEquals(2, params.size());
124-
assertEquals(true, params.containsKey(PART_KEY_1));
125+
assertTrue(params.containsKey(PART_KEY_1));
125126
}
126127

127128
/**
@@ -138,6 +139,6 @@ public void postForm_emptyParamPresent() {
138139
Map<String, String[]> params = request.getParameterMap();
139140
assertNotNull(params);
140141
assertEquals(2, params.size());
141-
assertEquals(true, params.containsKey(PART_KEY_1));
142+
assertTrue(params.containsKey(PART_KEY_1));
142143
}
143144
}

0 commit comments

Comments
 (0)