use of org.xwiki.bridge.event.ActionExecutingEvent in project xwiki-platform by xwiki.
the class ActionExecutingEventTest method testWildcardActionDoesntEqualOtherActions.
@Test
public void testWildcardActionDoesntEqualOtherActions() {
ActionExecutingEvent event = new ActionExecutingEvent("something");
Assert.assertFalse("Wildcard action equals another action!", new ActionExecutingEvent().equals(event));
}
use of org.xwiki.bridge.event.ActionExecutingEvent in project xwiki-platform by xwiki.
the class ActionExecutingEventTest method testDoesntEqualDifferentCaseAction.
@Test
public void testDoesntEqualDifferentCaseAction() {
ActionExecutingEvent event = new ActionExecutingEvent("something");
Assert.assertFalse("Action equals comparison was case insensitive!", event.equals(new ActionExecutingEvent("SomeThing")));
}
use of org.xwiki.bridge.event.ActionExecutingEvent in project xwiki-platform by xwiki.
the class ActionExecutingEventTest method testWildcardActionDoesntEqualEmptyAction.
@Test
public void testWildcardActionDoesntEqualEmptyAction() {
ActionExecutingEvent event = new ActionExecutingEvent("");
Assert.assertFalse("Wildcard action equals another action!", new ActionExecutingEvent().equals(event));
}
use of org.xwiki.bridge.event.ActionExecutingEvent in project xwiki-platform by xwiki.
the class ActionExecutingEventTest method testHashCode.
// Tests for hashCode()
@Test
public void testHashCode() {
ActionExecutingEvent event = new ActionExecutingEvent("something");
Assert.assertTrue("Hashcode was zero!", event.hashCode() != 0);
}
use of org.xwiki.bridge.event.ActionExecutingEvent in project xwiki-platform by xwiki.
the class ActionExecutingEventTest method testDoesntEqualWildcardAction.
@Test
public void testDoesntEqualWildcardAction() {
ActionExecutingEvent event = new ActionExecutingEvent("something");
Assert.assertFalse("Wildcard action was equal!", event.equals(new ActionExecutingEvent()));
}
Aggregations