Crossfire JXClient, Trunk
|
Public Member Functions | |
void | testOrientations () throws Exception |
Static Private Member Functions | |
static void | check (@NotNull final Class<? extends Orientation > class_, final boolean useX, final boolean flip) throws IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException |
static void | check (@NotNull final Orientation o, final boolean useX, final boolean flip, final boolean valid, final int x, final int y, final int w, final int h, final boolean negativeImage) |
static void | checkNegative (@NotNull final Class<? extends Orientation > class_, final boolean useX, final boolean flip) throws IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException |
static void | checkPositive (@NotNull final Class<? extends Orientation > class_, final boolean useX, final boolean flip) throws IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException |
Regression tests for class Orientation and implementing classes.
Definition at line 34 of file OrientationTest.java.
|
staticprivate |
Checks an Orientation instance.
class_ | the instance's class |
useX | if set, swap x and y coordinates |
flip | if set, invert the x coordinate |
IllegalAccessException | if the test fails |
InstantiationException | if the test fails |
NoSuchMethodException | if the test fails |
InvocationTargetException | if the test fails |
Definition at line 58 of file OrientationTest.java.
References com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.checkNegative(), and com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.checkPositive().
Referenced by com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.checkNegative(), com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.checkPositive(), and com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.testOrientations().
|
staticprivate |
Checks that a value is correctly handled.
o | the orientation instance to check |
useX | if set, swap x and y coordinates |
flip | if set, invert the x coordinate |
valid | the expected "valid" value |
x | the expected x coordinate |
y | the expected y coordinate |
w | the expected width |
h | the expected height |
negativeImage | the expected "negative image" value |
Definition at line 159 of file OrientationTest.java.
|
staticprivate |
Checks that negative values are correctly handled by an Orientation instance.
class_ | the instance's class |
useX | if set, swap x and y coordinates |
flip | if set, invert the x coordinate |
IllegalAccessException | if the test fails |
InstantiationException | if the test fails |
NoSuchMethodException | if the test fails |
InvocationTargetException | if the test fails |
Definition at line 116 of file OrientationTest.java.
References com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.check(), com.realtime.crossfire.jxclient.gui.gauge.Orientation.setExtends(), com.realtime.crossfire.jxclient.gui.gauge.Orientation.setHasNegativeImage(), and com.realtime.crossfire.jxclient.gui.gauge.Orientation.setValues().
Referenced by com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.check().
|
staticprivate |
Checks that positive values are correctly handled by an Orientation instance.
class_ | the instance's class |
useX | if set, swap x and y coordinates |
flip | if set, invert the x coordinate |
IllegalAccessException | if the test fails |
InstantiationException | if the test fails |
InvocationTargetException | if the test fails |
NoSuchMethodException | if the test fails |
Definition at line 74 of file OrientationTest.java.
References com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.check(), com.realtime.crossfire.jxclient.gui.gauge.Orientation.setExtends(), com.realtime.crossfire.jxclient.gui.gauge.Orientation.setHasNegativeImage(), and com.realtime.crossfire.jxclient.gui.gauge.Orientation.setValues().
Referenced by com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.check().
void com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.testOrientations | ( | ) | throws Exception |
Checks that Orientation instances work correctly.
Exception | if the test failed |
Definition at line 41 of file OrientationTest.java.
References com.realtime.crossfire.jxclient.gui.gauge.OrientationTest.check().