[seam-commits] Seam SVN: r14854 - branches/enterprise/WFK-2_0/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
Thu Jun 7 06:33:58 EDT 2012


Author: manaRH
Date: 2012-06-07 06:33:58 -0400 (Thu, 07 Jun 2012)
New Revision: 14854

Modified:
   branches/enterprise/WFK-2_0/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java
Log:
update numberguess test

Modified: branches/enterprise/WFK-2_0/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java	2012-06-07 10:33:39 UTC (rev 14853)
+++ branches/enterprise/WFK-2_0/examples-ee6/numberguess/numberguess-tests/src/test/java/org/jboss/seam/example/numberguess/test/NumberGuessTest.java	2012-06-07 10:33:58 UTC (rev 14854)
@@ -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