[seam-commits] Seam SVN: r14806 - branches/community/Seam_2_3/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue May 29 11:26:58 EDT 2012


Author: maschmid
Date: 2012-05-29 11:26:57 -0400 (Tue, 29 May 2012)
New Revision: 14806

Modified:
   branches/community/Seam_2_3/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java
Log:
update numberguess test


Modified: branches/community/Seam_2_3/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java	2012-05-29 14:57:50 UTC (rev 14805)
+++ branches/community/Seam_2_3/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java	2012-05-29 15:26:57 UTC (rev 14806)
@@ -33,7 +33,7 @@
 
     @Test
     public void testNumberGuessWin() throws Exception {
-        String id = new NonFacesRequest("/numberGuess.jspx") {
+        String id = new NonFacesRequest("/numberGuess.xhtml") {
 
             @Override
             protected void renderResponse() throws Exception {
@@ -50,7 +50,7 @@
 
         }.run();
 
-        String id2 = new FacesRequest("/numberGuess.jspx", id) {
+        String id2 = new FacesRequest("/numberGuess.xhtml", id) {
 
             @Override
             protected void applyRequestValues() throws Exception {
@@ -68,14 +68,14 @@
             @Override
             protected void afterRequest() {
                 assert !isRenderResponseBegun();
-                assert getViewId().equals("/numberGuess.jspx");
+                assert getViewId().equals("/numberGuess.xhtml");
             }
 
         }.run();
 
         assert id2.equals(id);
 
-        new NonFacesRequest("/numberGuess.jspx", id) {
+        new NonFacesRequest("/numberGuess.xhtml", id) {
 
             @Override
             protected void renderResponse() throws Exception {
@@ -95,7 +95,7 @@
 
         }.run();
 
-        id2 = new FacesRequest("/numberGuess.jspx", id) {
+        id2 = new FacesRequest("/numberGuess.xhtml", id) {
 
             @Override
             protected void applyRequestValues() throws Exception {
@@ -112,14 +112,14 @@
             @Override
             protected void afterRequest() {
                 assert !isRenderResponseBegun();
-                assert getViewId().equals("/win.jspx");
+                assert getViewId().equals("/win.xhtml");
             }
 
         }.run();
 
         assert id2.equals(id);
 
-        new NonFacesRequest("/win.jspx", id) {
+        new NonFacesRequest("/win.xhtml", id) {
             @Override
             protected void renderResponse() throws Exception {
                 NumberGuess ng = (NumberGuess) getInstance(NumberGuess.class);
@@ -138,7 +138,7 @@
 
     @Test
     public void testNumberGuessLose() throws Exception {
-        String id = new NonFacesRequest("/numberGuess.jspx") {
+        String id = new NonFacesRequest("/numberGuess.xhtml") {
 
             @Override
             protected void renderResponse() throws Exception {
@@ -157,7 +157,7 @@
 
             final int count = i;
 
-            new FacesRequest("/numberGuess.jspx", id) {
+            new FacesRequest("/numberGuess.xhtml", id) {
 
                 @Override
                 protected void applyRequestValues() throws Exception {
@@ -177,12 +177,12 @@
                 @Override
                 protected void afterRequest() {
                     assert !isRenderResponseBegun();
-                    assert getViewId().equals("/numberGuess.jspx");
+                    assert getViewId().equals("/numberGuess.xhtml");
                 }
 
             }.run();
 
-            new NonFacesRequest("/numberGuess.jspx", id) {
+            new NonFacesRequest("/numberGuess.xhtml", id) {
 
                 @Override
                 protected void renderResponse() throws Exception {
@@ -204,7 +204,7 @@
 
         }
 
-        new FacesRequest("/numberGuess.jspx", id) {
+        new FacesRequest("/numberGuess.xhtml", id) {
 
             @Override
             protected void applyRequestValues() throws Exception {
@@ -224,12 +224,12 @@
             @Override
             protected void afterRequest() {
                 assert !isRenderResponseBegun();
-                assert getViewId().equals("/lose.jspx");
+                assert getViewId().equals("/lose.xhtml");
             }
 
         }.run();
 
-        new NonFacesRequest("/lose.jspx", id) {
+        new NonFacesRequest("/lose.xhtml", id) {
 
             @Override
             protected void renderResponse() throws Exception {



More information about the seam-commits mailing list