ParticleType { public Object packet(boolean far, Location loc) { return packet(far, loc.getX(), loc.getY(), loc.getZ(), 0D, 0D, 0D, 0D, 1); }  Object packet(boolean far, Location loc); Object packet(boolean far, Vector loc); Object packet(boolean far, double x, double y, double z); Object packet(boolean far, Location loc, int count); Object packet(boolean far, Vector loc, int count); Object packet(boolean far, double x, double y, double z, int count); Object packet(boolean far, Location loc, double speed, int count); Object packet(boolean far, Vector loc, double speed, int count); Object packet(boolean far, double x, double y, double z,
                         double speed, int count); Object packet(boolean far, Location loc,
                         double offsetX, double offsetY, double offsetZ,
                         int count); Object packet(boolean far, Vector loc,
                         double offsetX, double offsetY, double offsetZ,
                         int count); Object packet(boolean far, double x, double y, double z,
                         double offsetX, double offsetY, double offsetZ,
                         int count); Object packet(boolean far, Location loc,
                         double offsetX, double offsetY, double offsetZ,
                         double speed, int count); Object packet(boolean far, Vector loc,
                         double offsetX, double offsetY, double offsetZ,
                         double speed, int count); Object packet(boolean far, double x, double y, double z,
                         double offsetX, double offsetY, double offsetZ,
                         double speed, int count); @Deprecated Object packet(boolean far, float x, float  y, float z,
                         float offsetX, float offsetY, float offsetZ,
                         float speed, int count); boolean isValid();  }
@Test(expected = ParticleException.class) public void testExceptionOnInvalidType() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 1D, 0); invalidParticleType.packet(true, target.getVector()); }
@Test public void test_packet_Location() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 0D, 1); particleType.packet(true, target.getLocation()); verifyArgumentPass(target); }
@Test public void test_packet_Vector() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 0D, 1); particleType.packet(true, target.getVector()); verifyArgumentPass(target); }
@Test public void test_packet_Pos() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 0D, 1); particleType.packet(true, target.getX(), target.getY(), target.getZ()); verifyArgumentPass(target); }
@Test public void test_packet_Location_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 0D, 9); particleType.packet(true, target.getLocation(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Vector_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 0D, 9); particleType.packet(true, target.getVector(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Pos_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 0D, 9); particleType.packet(true, target.getX(), target.getY(), target.getZ(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Location_Speed_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 8D, 9); particleType.packet(true, target.getLocation(), target.getSpeed(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Vector_Speed_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 8D, 9); particleType.packet(true, target.getVector(), target.getSpeed(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Pos_Speed_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 8D, 9); particleType.packet(true, target.getX(), target.getY(), target.getZ(), target.getSpeed(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Location_Offsets_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 5D, 6D, 7D, 0D, 9); particleType.packet(true, target.getLocation(), target.getOffsetX(), target.getOffsetY(), target.getOffsetZ(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Vector_Offsets_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 5D, 6D, 7D, 0D, 9); particleType.packet(true, target.getVector(), target.getOffsetX(), target.getOffsetY(), target.getOffsetZ(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Pos_Offsets_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 5D, 6D, 7D, 0D, 9); particleType.packet(true, target.getX(), target.getY(), target.getZ(), target.getOffsetX(), target.getOffsetY(), target.getOffsetZ(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Location_Offsets_Speed_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 5D, 6D, 7D, 8D, 9); particleType.packet(true, target.getLocation(), target.getOffsetX(), target.getOffsetY(), target.getOffsetZ(), target.getSpeed(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Vector_Offsets_Speed_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 5D, 6D, 7D, 8D, 9); particleType.packet(true, target.getVector(), target.getOffsetX(), target.getOffsetY(), target.getOffsetZ(), target.getSpeed(), target.getCount()); verifyArgumentPass(target); }
@Test public void test_packet_Pos_Offsets_Speed_Count() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 5D, 6D, 7D, 8D, 9); particleType.packet(true, target.getX(), target.getY(), target.getZ(), target.getOffsetX(), target.getOffsetY(), target.getOffsetZ(), target.getSpeed(), target.getCount()); verifyArgumentPass(target); }