ParticleTypeNote extends ParticleType { public Object packetNote(boolean far, Location loc, Color color) { return packetNote(far, loc.getX(), loc.getY(), loc.getZ(), color.getRed(), color.getGreen(), color .getBlue()); }  Object packetNote(boolean far, Location loc,
                             Color color); Object packetNote(boolean far, Vector loc,
                             Color color); Object packetNote(boolean far, double x, double y, double z,
                             Color color); Object packetNote(boolean far, Location loc,
                             int r, int g, int b); Object packetNote(boolean far, Vector loc,
                             int r, int g, int b); Object packetNote(boolean far, double x, double y, double z,
                             int r, int g, int b); Object packetNote(boolean far, Location loc,
                             double color); Object packetNote(boolean far, Vector loc,
                             double color); Object packetNote(boolean far, double x, double y, double z,
                             double color);  }
@Test(expected = ParticleException.class) public void testExceptionOnInvalidType() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 1D, 0); invalidParticleType.packetNote(true, target.getVector(), Color.fromRGB(255, 0, 0)); }
@Test(expected = UnsupportedOperationException.class) public void testTooManyChannels() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), Color.fromRGB(255, 125, 125)); }
@Test(expected = UnsupportedOperationException.class) public void testNotEnoughChannelsRed() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), Color.fromRGB(220, 0, 0)); }
@Test(expected = UnsupportedOperationException.class) public void testNotEnoughChannelsGreen() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), Color.fromRGB(0, 220, 0)); }
@Test(expected = UnsupportedOperationException.class) public void testNotEnoughChannelsBlue() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), Color.fromRGB(0, 0, 220)); }
@Test(expected = UnsupportedOperationException.class) public void testNotEnoughChannelsNothing() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 0D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), Color.fromRGB(0, 0, 0)); }
@Test public void test_packetNote_Location_Color() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getLocation(), Color.fromRGB(255, 0, 255)); verifyArgumentPassWithDelta(target); }
@Test public void test_packetNote_Vector_Color() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), Color.fromRGB(255, 0, 255)); verifyArgumentPassWithDelta(target); }
@Test public void test_packetNote_Pos_Color() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getX(), target.getY(), target.getZ(), Color.fromRGB(255, 0, 255)); verifyArgumentPassWithDelta(target); }
@Test public void test_packetNote_Location_Ints() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getLocation(), 255, 0, 255); verifyArgumentPassWithDelta(target); }
@Test public void test_packetNote_Vector_Ints() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), 255, 0, 255); verifyArgumentPassWithDelta(target); }
@Test public void test_packetNote_Pos_Ints() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getX(), target.getY(), target.getZ(), 255, 0, 255); verifyArgumentPassWithDelta(target); }
@Test public void test_packetNote_Location_Double() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getLocation(), target.getOffsetX()); verifyArgumentPass(target); }
@Test public void test_packetNote_Vector_Double() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getVector(), target.getOffsetX()); verifyArgumentPass(target); }
@Test public void test_packetNote_Pos_Double() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 10D / 24D, 0D, 0D, 1D, 0); particleType.packetNote(true, target.getX(), target.getY(), target.getZ(), target.getOffsetX()); verifyArgumentPass(target); }