Package org.sgx.yuigwt.yuitest1.gallery.test.editors

Examples of org.sgx.yuigwt.yuitest1.gallery.test.editors.PropertyHaverEditorTest1$Person


     * @see Person#getAge()
     */
    @Test
    public void getAllPersonsEligibleToVote() {
        List<Person> potentialVoters =
                new ArrayList<>(asList(new Person("Tom", 24), new Person("Dick", 75), new Person("Harry", 17)));

        int legalAgeOfVoting = 18;
        List<Person> eligibleVoters = VotingRules.eligibleVoters(potentialVoters, legalAgeOfVoting);

        assertThat(eligibleVoters, hasSize(2));
View Full Code Here


   }
  
   public void test1() throws Exception
   {
      MyStateful stateful = (MyStateful) getInitialContext(0).lookup("MyStatefulBean/remote");
      Person p = new Person("Brian");
      stateful.save(p);
      String expected = "Changing SFSB state";
      stateful.setDescription(expected);
      stateful.setUpFailover("once");
      try
View Full Code Here

    public void test_Person_binding() throws IOException, SAXException {
        XMLBinding xmlBinding = new XMLBinding().add(getClass().getResourceAsStream("config5/person-binding-config.xml"));
        xmlBinding.intiailize();

        Person person = xmlBinding.fromXML("<person name='Max' age='50' />", Person.class);
        String xml = xmlBinding.toXML(person);
        XMLUnit.setIgnoreWhitespace(true);
        XMLAssert.assertXMLEqual("<person name='Max' age='50' />", xml);

    }
View Full Code Here

//    nodeEventDelegationTest1();
//    animTest1();
  }

  private void doGallery() {
    new Gallery().draw();
  }
View Full Code Here

    Map<String, String> urlParams = Util.parseUrlParams(Util.getCurrentAddressUrl());
    if(urlParams.containsKey("singleTest") && urlParams.containsKey("test")) {
      new GallerySingleTest(urlParams.get("test")).draw(); ;
    }
    else {
      new Gallery().draw();
    }
  }
View Full Code Here

  public void yuiBinded() {
    final String testName = getTestName();
    if(testName==null)
      return;
   
    final GalleryUtil galleryUtil = GalleryUtil.getDefaultInstance();
    final Test test = galleryUtil.getTestByName(testName);
   
     //new GalleryUtil(null);
   
    final Button button1 = getYUIBinder().getWidget(buttonEl).cast();
    final Button acceptButton = getYUIBinder().getWidget(acceptButtonEl).cast();
    final Panel panel1 = getYUIBinder().getWidget(panel1El).cast();
   
    button1.on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        //cannot work directly in panel1.getStdModNode("body") because we cannot call asHTMLPanel() if the node is already inside a GWT Widget.
//        test.test(panel1.getStdModNode("body"));  
        Node p = y.one("body").appendChild("<div></div>");
//        p.generateID();
        test.test(p);  
       
        panel1.setStdModContent("body", p);
//        panel1.render();
        panel1.show();
      }
    });
    acceptButton.on("click", new EventCallback<EventFacade>() {
      @Override
      public void call(EventFacade e) {
        panel1.hide();
      }
    });
    
   
   
    Node parent = y.one(tabviewEl);//getElement()).appendChild("");
   
    final List<String> headers = new LinkedList<String>();
    final List<String> bodies = new LinkedList<String>();
   
    for(final String resName : test.getTestResources().keySet()) {
      ResourcePrototype res = test.getTestResources().get(resName);
      galleryUtil.getText(res, new ResourceCallback<TextResource>() {
       
        @Override
        public void onSuccess(TextResource resource) {
          String scapedContent = y.Escape().html(resource.getText().replace("\t", "  "));
          String header = resName;
View Full Code Here

    tests.add(new DataTableTest1());
    tests.add(new TabViewTest1());
    tests.add(new ConfigObjectsTest1());
    tests.add(new EventSimulateTest1());
    tests.add(new PJaxTest1());
    tests.add(new AnimTest1());
    tests.add(new ConsoleTest1());
    tests.add(new StyleSheetTest1());
    tests.add(new SubstituteTest1());
    tests.add(new CacheTest1());
    tests.add(new CookieTest1());
View Full Code Here

    tests.add(new SubstituteTest1());
    tests.add(new CacheTest1());
    tests.add(new CookieTest1());
    tests.add(new ImageLoaderTest1());
    tests.add(new CalendarTest1());
    tests.add(new AutoCompleteTest1());
    tests.add(new DataSchemaArrayTest1());
    tests.add(new DataTypeTest1());
    tests.add(new AyncQueueTest1());
    tests.add(new IOTest1());
    tests.add(new CollectionTest1());
View Full Code Here

    tests.add(new ImageLoaderTest1());
    tests.add(new CalendarTest1());
    tests.add(new AutoCompleteTest1());
    tests.add(new DataSchemaArrayTest1());
    tests.add(new DataTypeTest1());
    tests.add(new AyncQueueTest1());
    tests.add(new IOTest1());
    tests.add(new CollectionTest1());
    tests.add(new TransitionTest1());
    tests.add(new EditorBaseTest1());
    tests.add(new HistoryTest1());
View Full Code Here

    this.g = g;
    tests = new HashSet<Test>();

    // YUI modules

    tests.add(new ButtonTest1());
    tests.add(new YUIUtilTest1());
    tests.add(new MenuNavTest1());
    tests.add(new EventDelegateTest1());
    tests.add(new SliderTest1());
    tests.add(new PanelTest1());
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yuitest1.gallery.test.editors.PropertyHaverEditorTest1$Person

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.