RotationOrder { @Override public String toString() { return name; } private  RotationOrder(final String name,
                          final Vector3D a1, final Vector3D a2, final Vector3D a3); @Override String toString(); Vector3D getA1(); Vector3D getA2(); Vector3D getA3(); static final RotationOrder XYZ; static final RotationOrder XZY; static final RotationOrder YXZ; static final RotationOrder YZX; static final RotationOrder ZXY; static final RotationOrder ZYX; static final RotationOrder XYX; static final RotationOrder XZX; static final RotationOrder YXY; static final RotationOrder YZY; static final RotationOrder ZXZ; static final RotationOrder ZYZ; }
@Test public void testName() { RotationOrder[] orders = { RotationOrder.XYZ, RotationOrder.XZY, RotationOrder.YXZ, RotationOrder.YZX, RotationOrder.ZXY, RotationOrder.ZYX, RotationOrder.XYX, RotationOrder.XZX, RotationOrder.YXY, RotationOrder.YZY, RotationOrder.ZXZ, RotationOrder.ZYZ }; for (int i = 0; i < orders.length; ++i) { Assert.assertEquals(getFieldName(orders[i]), orders[i].toString()); } }