diff --git a/cdi/nobeans-el-injection-flowscoped/src/test/java/org/javaee7/cdi/nobeans/el/injection/flowscoped/FlowScopedBeanTest.java b/cdi/nobeans-el-injection-flowscoped/src/test/java/org/javaee7/cdi/nobeans/el/injection/flowscoped/FlowScopedBeanTest.java
index e3171457e..46babbe42 100644
--- a/cdi/nobeans-el-injection-flowscoped/src/test/java/org/javaee7/cdi/nobeans/el/injection/flowscoped/FlowScopedBeanTest.java
+++ b/cdi/nobeans-el-injection-flowscoped/src/test/java/org/javaee7/cdi/nobeans/el/injection/flowscoped/FlowScopedBeanTest.java
@@ -37,7 +37,7 @@ public static WebArchive deploy() {
@Test
public void checkRenderedPage() throws Exception {
WebClient webClient = new WebClient();
- HtmlPage page = webClient.getPage(base + "/faces/myflow/index.xhtml");
+ HtmlPage page = webClient.getPage((base + "/faces/myflow/index.xhtml").replace("//faces", "/faces"));
assertNotNull(page);
assert (page.asText().contains("Hello there!"));
}
diff --git a/jsf/bean-validation/src/test/java/org/javaee7/jsf/bean/validation/MyBeanTest.java b/jsf/bean-validation/src/test/java/org/javaee7/jsf/bean/validation/MyBeanTest.java
index 6bf93f985..d50b3b688 100644
--- a/jsf/bean-validation/src/test/java/org/javaee7/jsf/bean/validation/MyBeanTest.java
+++ b/jsf/bean-validation/src/test/java/org/javaee7/jsf/bean/validation/MyBeanTest.java
@@ -54,7 +54,7 @@ public static WebArchive createDeployment() {
@Before
public void setup() throws IOException {
webClient = new WebClient();
- page = webClient.getPage(base + "/faces/index.xhtml");
+ page = webClient.getPage((base + "/faces/index.xhtml").replace("//faces", "/faces"));
nameInputText = (HtmlTextInput) page.getElementById("nameInputText");
ageInputText = (HtmlTextInput) page.getElementById("ageInputText");
zipInputText = (HtmlTextInput) page.getElementById("zipInputText");
@@ -68,7 +68,7 @@ public void testNameLessCharacters() throws IOException {
zipInputText.setText("12345");
HtmlPage result = button.click();
HtmlSpan span = (HtmlSpan) result.getElementById("nameMessage");
- assertEquals("At least 3 characters", span.asText());
+ assertEquals("nameInputText: At least 3 characters", span.asText());
}
@Test
@@ -88,7 +88,7 @@ public void testAgeLessThan() throws IOException {
zipInputText.setText("12345");
HtmlPage result = button.click();
HtmlSpan span = (HtmlSpan) result.getElementById("ageMessage");
- assertEquals("must be greater than or equal to 18", span.asText());
+ assertEquals("ageInputText: must be greater than or equal to 18", span.asText());
}
@Test
@@ -118,7 +118,7 @@ public void testAgeGreaterThan() throws IOException {
zipInputText.setText("12345");
HtmlPage result = button.click();
HtmlSpan span = (HtmlSpan) result.getElementById("ageMessage");
- assertEquals("must be less than or equal to 25", span.asText());
+ assertEquals("ageInputText: must be less than or equal to 25", span.asText());
}
@Test
@@ -128,7 +128,7 @@ public void testZipAlphabets() throws IOException {
zipInputText.setText("abcde");
HtmlPage result = button.click();
HtmlSpan span = (HtmlSpan) result.getElementById("zipMessage");
- assertEquals("must match \"[0-9]{5}\"", span.asText());
+ assertEquals("zipInputText: must match the following regular expression: [0-9]{5}", span.asText());
}
@Test
@@ -138,7 +138,7 @@ public void testZipLessNumbers() throws IOException {
zipInputText.setText("1234");
HtmlPage result = button.click();
HtmlSpan span = (HtmlSpan) result.getElementById("zipMessage");
- assertEquals("must match \"[0-9]{5}\"", span.asText());
+ assertEquals("zipInputText: must match the following regular expression: [0-9]{5}", span.asText());
}
@Test
@@ -148,7 +148,7 @@ public void testZipMoreNumbers() throws IOException {
zipInputText.setText("123456");
HtmlPage result = button.click();
HtmlSpan span = (HtmlSpan) result.getElementById("zipMessage");
- assertEquals("must match \"[0-9]{5}\"", span.asText());
+ assertEquals("zipInputText: must match the following regular expression: [0-9]{5}", span.asText());
}
@Test
diff --git a/jsf/components/src/main/webapp/index.xhtml b/jsf/components/src/main/webapp/index.xhtml
index 136d23959..3ec2fb550 100644
--- a/jsf/components/src/main/webapp/index.xhtml
+++ b/jsf/components/src/main/webapp/index.xhtml
@@ -111,20 +111,20 @@
selectManyListbox
-
+
-
+
selectManyMenu
-
+
-
+
diff --git a/jsf/http-get/src/test/java/org/javaee7/jsf/http/get/UserTest.java b/jsf/http-get/src/test/java/org/javaee7/jsf/http/get/UserTest.java
index 2133d9dac..06998d8bf 100644
--- a/jsf/http-get/src/test/java/org/javaee7/jsf/http/get/UserTest.java
+++ b/jsf/http-get/src/test/java/org/javaee7/jsf/http/get/UserTest.java
@@ -46,7 +46,7 @@ public static WebArchive createDeployment() {
@Before
public void setup() throws IOException {
webClient = new WebClient();
- page = webClient.getPage(base + "/faces/index.xhtml");
+ page = webClient.getPage((base + "/faces/index.xhtml").replace("//faces", "/faces"));
}
@Test
diff --git a/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromReaderTest.java b/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromReaderTest.java
index 8ef7e0468..8374957d6 100644
--- a/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromReaderTest.java
+++ b/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromReaderTest.java
@@ -42,6 +42,7 @@ public void testEmptyObject() throws JSONException {
assertNotNull(json);
assertTrue(json.isEmpty());
+ jsonReader.close();
}
@Test
@@ -58,6 +59,7 @@ public void testSimpleObjectWithTwoElements() throws JSONException {
assertEquals("red", json.getString("apple"));
assertTrue(json.containsKey("banana"));
assertEquals("yellow", json.getString("banana"));
+ jsonReader.close();
}
@Test
@@ -72,6 +74,7 @@ public void testArray() throws JSONException {
JSONAssert.assertEquals("{\"apple\":\"red\"}", jsonArr.get(0).toString(), JSONCompareMode.STRICT);
JSONAssert.assertEquals("{\"banana\":\"yellow\"}", jsonArr.get(1).toString(), JSONCompareMode.STRICT);
+ jsonReader.close();
}
@Test
@@ -103,5 +106,6 @@ public void testNestedStructure() throws JSONException {
+ " \"Laurence Fishburne\","
+ " \"Carrie-Anne Moss\""
+ " ]", jsonArr.toString(), JSONCompareMode.STRICT);
+ jsonReader.close();
}
}
diff --git a/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromStreamTest.java b/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromStreamTest.java
index 47623b12b..e45f7ccfc 100644
--- a/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromStreamTest.java
+++ b/json/object-reader/src/test/java/org/javaee7/json/object/reader/JsonReaderFromStreamTest.java
@@ -48,6 +48,7 @@ public void testEmptyObject() throws JSONException {
assertNotNull(json);
assertTrue(json.isEmpty());
+ jsonReader.close();
}
@Test
@@ -64,6 +65,7 @@ public void testSimpleObjectWithTwoElements() throws JSONException {
assertEquals("red", json.getString("apple"));
assertTrue(json.containsKey("banana"));
assertEquals("yellow", json.getString("banana"));
+ jsonReader.close();
}
@Test
@@ -78,6 +80,7 @@ public void testArray() throws JSONException {
JSONAssert.assertEquals("{\"apple\":\"red\"}", jsonArr.get(0).toString(), JSONCompareMode.STRICT);
JSONAssert.assertEquals("{\"banana\":\"yellow\"}", jsonArr.get(1).toString(), JSONCompareMode.STRICT);
+ jsonReader.close();
}
@Test
@@ -104,5 +107,6 @@ public void testNestedStructure() throws JSONException {
+ " \"Laurence Fishburne\","
+ " \"Carrie-Anne Moss\""
+ " ]", jsonArr.toString(), JSONCompareMode.STRICT);
+ jsonReader.close();
}
}
diff --git a/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromReaderTest.java b/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromReaderTest.java
index de41d8520..84bf74ddd 100644
--- a/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromReaderTest.java
+++ b/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromReaderTest.java
@@ -37,6 +37,7 @@ public void testEmptyObject() throws JSONException {
JsonParser parser = Json.createParser(new StringReader(json));
assertEquals(JsonParser.Event.START_OBJECT, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
+ parser.close();
}
@Test
@@ -52,6 +53,7 @@ public void testSimpleObject() throws JSONException {
assertEquals(JsonParser.Event.KEY_NAME, parser.next());
assertEquals(JsonParser.Event.VALUE_STRING, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
+ parser.close();
}
@Test
@@ -68,6 +70,7 @@ public void testArray() throws JSONException {
assertEquals(JsonParser.Event.VALUE_STRING, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
assertEquals(JsonParser.Event.END_ARRAY, parser.next());
+ parser.close();
}
@Test
@@ -86,5 +89,6 @@ public void testNestedStructure() throws JSONException {
assertEquals(JsonParser.Event.VALUE_STRING, parser.next());
assertEquals(JsonParser.Event.END_ARRAY, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
+ parser.close();
}
}
diff --git a/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromStreamTest.java b/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromStreamTest.java
index 0b885d0f5..fe02e27d9 100644
--- a/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromStreamTest.java
+++ b/json/streaming-parser/src/test/java/org/javaee7/json/streaming/parser/JsonParserFromStreamTest.java
@@ -45,6 +45,7 @@ public void testEmptyObject() throws JSONException {
assertEquals(JsonParser.Event.START_OBJECT, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
+ parser.close();
}
@Test
@@ -60,6 +61,7 @@ public void testSimpleObject() throws JSONException {
assertEquals(JsonParser.Event.KEY_NAME, parser.next());
assertEquals(JsonParser.Event.VALUE_STRING, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
+ parser.close();
}
@Test
@@ -79,6 +81,7 @@ public void testArray() throws JSONException {
assertEquals(JsonParser.Event.VALUE_STRING, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
assertEquals(JsonParser.Event.END_ARRAY, parser.next());
+ parser.close();
}
@Test
@@ -100,6 +103,7 @@ public void testNestedStructure() throws JSONException {
assertEquals(JsonParser.Event.VALUE_STRING, parser.next());
assertEquals(JsonParser.Event.END_ARRAY, parser.next());
assertEquals(JsonParser.Event.END_OBJECT, parser.next());
+ parser.close();
}
}