use of com.intellij.openapi.actionSystem.PressureShortcut in project intellij-community by JetBrains.
the class MouseShortcutEqualityTest method testSubclassesOfMouseEventsAreNotEqualToMouseEvents.
public void testSubclassesOfMouseEventsAreNotEqualToMouseEvents() {
MouseShortcut mouseShortcut = new MouseShortcut(MouseEvent.BUTTON2, InputEvent.ALT_DOWN_MASK, 2);
PressureShortcut pressureShortcut = new PressureShortcut(1);
assertFalse("MouseShortcut is not equal to PressureShortcut", mouseShortcut.equals(pressureShortcut));
assertFalse("MouseShortcut is not equal to PressureShortcut", pressureShortcut.equals(mouseShortcut));
}
use of com.intellij.openapi.actionSystem.PressureShortcut in project intellij-community by JetBrains.
the class MouseShortcutEqualityTest method testUnequalPressureShortcuts.
public void testUnequalPressureShortcuts() {
PressureShortcut pressureShortcut = new PressureShortcut(1);
PressureShortcut anotherPressureShortcut = new PressureShortcut(2);
assertFalse("Pressure shortcuts with different data are not equal", pressureShortcut.equals(anotherPressureShortcut));
assertFalse("Pressure shortcuts with different data are not equal", anotherPressureShortcut.equals(pressureShortcut));
}
use of com.intellij.openapi.actionSystem.PressureShortcut in project intellij-community by JetBrains.
the class MouseShortcutEqualityTest method testPressureShortcutsWithTheSameDataAreEqual.
public void testPressureShortcutsWithTheSameDataAreEqual() {
PressureShortcut pressureShortcut = new PressureShortcut(1);
PressureShortcut anotherPressureShortcut = new PressureShortcut(1);
assertEquals("Pressure shortcuts with the same data are equal", pressureShortcut, anotherPressureShortcut);
}
Aggregations