1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.bcel.generic;
19
20 import static org.junit.jupiter.api.Assertions.assertFalse;
21 import static org.junit.jupiter.api.Assertions.assertTrue;
22
23 import org.apache.bcel.classfile.ConstantLong;
24 import org.apache.bcel.classfile.ConstantPool;
25 import org.apache.bcel.classfile.Field;
26 import org.junit.jupiter.api.Disabled;
27 import org.junit.jupiter.api.Test;
28
29
30
31
32 public class FieldGenTest {
33
34 @Test
35 @Disabled
36 public void testBCELComparator() throws Exception {
37 final ConstantLong[] constantPool = { new ConstantLong(0), new ConstantLong(0) };
38 final FieldGen obj = new FieldGen(new Field(0, 0, 0, null, new ConstantPool(constantPool)), new ConstantPoolGen(constantPool));
39 assertTrue(FieldGen.getComparator().equals(null, null));
40 assertTrue(FieldGen.getComparator().equals(obj, obj));
41 assertFalse(FieldGen.getComparator().equals(obj, null));
42 assertFalse(FieldGen.getComparator().equals(null, obj));
43 }
44 }