Package easysm.stores

Examples of easysm.stores.Event


    Set<ParameterInfo> params = SetFactory.createSet(ParameterInfo.class);
    EventInfo eInfo = new EventInfo(eIffy, params);
    main.doAddEvent(eInfo);
    List<Event> eSet = main.events().eventList();
    assertTrue(eSet.size() == 2);
    assertTrue(eSet.contains(new Event(eInfo)));

  }
View Full Code Here


  @Test
  public void Main_doUpdateEvent_OneValidEvent()
  {
    main.doAddEvent(new EventInfo(eIffy, null));
    List<Event> eSet = main.events().eventList();
    Event ev = null;
    for (Event e : eSet) {
      if (e.name().equals(eIffy))
        ev = e;
    }
    EventInfo eInfo = new EventInfo(ePine, null);
    main.doUpdateEvent(ev, eInfo);
    assertTrue(eSet.size() == 2);
    assertTrue(ev.name().equals(ePine));
    assertTrue(ev.parameters().size() == 0);
  }
View Full Code Here

TOP

Related Classes of easysm.stores.Event

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.