Package org.apache.tuscany.sdo.api

Examples of org.apache.tuscany.sdo.api.Event.wasSet()


    quote.setString("companyName", firstName);
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertEquals(Event.SET, e.getEventType());
    assertEquals(null, e.getOldValue());
    assertFalse(e.wasSet());

    quote.setString("companyName", "FBNT");
    e = o.getLastEvent();
    assertTrue(e.wasSet());
View Full Code Here


    assertEquals(null, e.getOldValue());
    assertFalse(e.wasSet());

    quote.setString("companyName", "FBNT");
    e = o.getLastEvent();
    assertTrue(e.wasSet());

    assertEquals(firstName, e.getOldValue());
    assertEquals(++changeCount, o.getNotificationCount());
    assertEquals("companyName", e.getProperty().getName());
View Full Code Here

    quote.setString("companyName", "3rdValue");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.isTouch());
    assertTrue(e.wasSet());

    quote.unset("companyName");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.wasSet());
View Full Code Here

    assertTrue(e.wasSet());

    quote.unset("companyName");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.wasSet());
  

    quote.set("companyName", "4thValue");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
View Full Code Here

  

    quote.set("companyName", "4thValue");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertFalse(e.wasSet());
   
    assertEquals(Event.NO_INDEX, e.getPosition());
   
    DataObject child = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
View Full Code Here

    assertEquals(Event.NO_INDEX, e.getPosition());
   
    DataObject child = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertFalse(e.wasSet());
    assertEquals(0, e.getPosition());
    assertEquals(Event.ADD, e.getEventType());
   
    DataObject child2 = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
View Full Code Here

    assertEquals(Event.ADD, e.getEventType());
   
    DataObject child2 = quote.createDataObject("quotes");
    assertEquals(++changeCount, o.getNotificationCount());
    e = o.getLastEvent();
    assertTrue(e.wasSet())// the quotes property was previously set to a non empty list
    assertEquals(1, e.getPosition());
   
    child2.setString("companyName", "subsidiary");
   
    assertEquals(changeCount /* no ++ */, o.getNotificationCount()); // not monitoring the child
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.