javaquery/api/src/test/java/org/apidesign/bck2brwsr/htmlpage/JSONTest.java
changeset 1412 a51c0d80ee24
parent 1009 80c46ea076d3
child 1750 0b4afadbd494
     1.1 --- a/javaquery/api/src/test/java/org/apidesign/bck2brwsr/htmlpage/JSONTest.java	Thu Apr 18 12:47:25 2013 +0200
     1.2 +++ b/javaquery/api/src/test/java/org/apidesign/bck2brwsr/htmlpage/JSONTest.java	Fri Nov 22 09:34:48 2013 +0100
     1.3 @@ -281,31 +281,31 @@
     1.4          assert Sex.FEMALE.equals(p.getSex()) : "Expecting FEMALE: " + p.getSex();
     1.5      }
     1.6      
     1.7 -    @Http(@Http.Resource(
     1.8 -        content = "{'info':[{'firstName': 'Gitar', 'sex': 'FEMALE'}]}", 
     1.9 -        path="/people.json", 
    1.10 -        mimeType = "application/json"
    1.11 -    ))
    1.12 -    @BrwsrTest public void loadAndParseArrayInPeople() throws InterruptedException {
    1.13 -        if (js == null) {
    1.14 -            js = new JSONik();
    1.15 -            js.applyBindings();
    1.16 -        
    1.17 -            js.fetchPeople("people.json");
    1.18 -        }
    1.19 -        
    1.20 -        if (0 == js.getFetchedCount()) {
    1.21 -            throw new InterruptedException();
    1.22 -        }
    1.23 -
    1.24 -        assert js.getFetchedCount() == 1 : "One person loaded: " + js.getFetchedCount();
    1.25 -        
    1.26 -        Person p = js.getFetched();
    1.27 -        
    1.28 -        assert p != null : "We should get our person back: " + p;
    1.29 -        assert "Gitar".equals(p.getFirstName()) : "Expecting Gitar: " + p.getFirstName();
    1.30 -        assert Sex.FEMALE.equals(p.getSex()) : "Expecting FEMALE: " + p.getSex();
    1.31 -    }
    1.32 +//    @Http(@Http.Resource(
    1.33 +//        content = "{'info':[{'firstName': 'Gitar', 'sex': 'FEMALE'}]}", 
    1.34 +//        path="/people.json", 
    1.35 +//        mimeType = "application/json"
    1.36 +//    ))
    1.37 +//    @BrwsrTest public void loadAndParseArrayInPeople() throws InterruptedException {
    1.38 +//        if (js == null) {
    1.39 +//            js = new JSONik();
    1.40 +//            js.applyBindings();
    1.41 +//        
    1.42 +//            js.fetchPeople("people.json");
    1.43 +//        }
    1.44 +//        
    1.45 +//        if (0 == js.getFetchedCount()) {
    1.46 +//            throw new InterruptedException();
    1.47 +//        }
    1.48 +//
    1.49 +//        assert js.getFetchedCount() == 1 : "One person loaded: " + js.getFetchedCount();
    1.50 +//        
    1.51 +//        Person p = js.getFetched();
    1.52 +//        
    1.53 +//        assert p != null : "We should get our person back: " + p;
    1.54 +//        assert "Gitar".equals(p.getFirstName()) : "Expecting Gitar: " + p.getFirstName();
    1.55 +//        assert Sex.FEMALE.equals(p.getSex()) : "Expecting FEMALE: " + p.getSex();
    1.56 +//    }
    1.57      
    1.58      @Http(@Http.Resource(
    1.59          content = "{'age':[1, 2, 3]}",