1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-06 07:32:46 +00:00

Fixes item pick animation and renames few packets

This commit is contained in:
2011-12-16 01:21:23 -02:00
parent 3059931d36
commit 82f6bcbc1c
39 changed files with 322 additions and 215 deletions

View File

@@ -29,13 +29,32 @@ import org.junit.Test;
public class ArrayUtilsTest extends ArrayUtils {
@Test
public void testCopyArrayExcept() {
final String str1 = "one";
final String str2 = "two";
final String str3 = "three";
final TestClass objA = new TestClass("a");
final TestClass objB = new TestClass("b");
final TestClass objC = new TestClass("c");
String[] arr = new String[] { str1, str2, str3 };
TestClass[] arr = new TestClass[] { objA, objB, objC };
TestClass[] selected = ArrayUtils.copyArrayExcept(TestClass[].class,
arr, objB);
Assert.assertTrue(Arrays.equals(new String[] { str1, str3 },
ArrayUtils.copyArrayExcept(arr, str2)));
System.out.println(Arrays.toString(selected));
Assert.assertTrue(Arrays.equals(new TestClass[] { objA, objC },
selected));
}
private static class TestClass {
private String name;
/**
* @param string
*/
public TestClass(String string) {
this.name = string;
}
@Override
public String toString() {
return "TestClass [name=" + name + "]";
}
}
}