@Test public void testGetViewSubject() throws Exception { EventImpl event = getEvent("MyEvent", Collections.<String, String>emptyMap(), view_xml); Assert.assertEquals("MY_VIEW", event.getViewSubject().getViewName()); Assert.assertEquals("My View!", event.getViewSubject().getLabel()); Assert.assertEquals("1.0.0", event.getViewSubject().getVersion()); }
public ViewDefinition getViewSubject() { return viewSubject; }
EventImpl implements Event { public ViewDefinition getViewSubject() { return viewSubject; } }
EventImpl implements Event { public ViewDefinition getViewSubject() { return viewSubject; } EventImpl(String id, Map<String, String> properties, ViewDefinition viewSubject);  EventImpl(String id, Map<String, String> properties, ViewInstanceDefinition viewInstanceSubject); private  EventImpl(String id, Map<String, String> properties,
                ViewDefinition viewSubject, ViewInstanceDefinition viewInstanceSubject); }
EventImpl implements Event { public ViewDefinition getViewSubject() { return viewSubject; } EventImpl(String id, Map<String, String> properties, ViewDefinition viewSubject);  EventImpl(String id, Map<String, String> properties, ViewInstanceDefinition viewInstanceSubject); private  EventImpl(String id, Map<String, String> properties,
                ViewDefinition viewSubject, ViewInstanceDefinition viewInstanceSubject); String getId(); Map<String, String> getProperties(); ViewDefinition getViewSubject(); ViewInstanceDefinition getViewInstanceSubject(); @Override String toString(); }
EventImpl implements Event { public ViewDefinition getViewSubject() { return viewSubject; } EventImpl(String id, Map<String, String> properties, ViewDefinition viewSubject);  EventImpl(String id, Map<String, String> properties, ViewInstanceDefinition viewInstanceSubject); private  EventImpl(String id, Map<String, String> properties,
                ViewDefinition viewSubject, ViewInstanceDefinition viewInstanceSubject); String getId(); Map<String, String> getProperties(); ViewDefinition getViewSubject(); ViewInstanceDefinition getViewInstanceSubject(); @Override String toString();  }