01: package com.sun.portal.samples.asc.tests;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: /**
07: * U5: Client requests initial container content
08: * URL: provider=AJAXTableContainer&action=content
09: * Request: HttpRequest
10: * success: content
11: * failure: JSON message
12: * @author gregz
13: *
14: */
15: public class TestUseCase5 extends AJAXTestCase {
16:
17: public void testU5Success() {
18: try {
19: Map p = new HashMap();
20: p.put("provider", Configuration.defaultContainer);
21: p.put("action", "content");
22: int response = httpGet(p);
23: assertEquals(200, response);
24: String expected = "DesktopNormalFull.html";
25: String unexpected = "DesktopError.js";
26: compareExpected(expected);
27: compareUnexpected(unexpected);
28:
29: } catch (Exception e) {
30: TestUtils.fail(this, e);
31: }
32: }
33:
34: }
|