File tree 2 files changed +25
-2
lines changed
src/test/java/com/arangodb/springframework/debug/repository
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
import com .arangodb .springframework .AbstractArangoTest ;
24
24
import com .arangodb .springframework .debug .repository .entity .LongEntity ;
25
- import org .junit .Ignore ;
26
25
import org .junit .Test ;
27
26
import org .springframework .beans .factory .annotation .Autowired ;
28
27
@@ -40,7 +39,6 @@ public class LongEntityRepositoryTest extends AbstractArangoTest {
40
39
private LongEntityRepository repo ;
41
40
42
41
@ Test
43
- @ Ignore
44
42
public void save () {
45
43
LongEntity entity = new LongEntity ();
46
44
entity .setId (1L );
Original file line number Diff line number Diff line change 23
23
import com .arangodb .springframework .annotation .Document ;
24
24
import org .springframework .data .annotation .Id ;
25
25
26
+ import java .util .Objects ;
27
+
26
28
/**
27
29
* @author Michele Rastelli
28
30
*/
@@ -52,4 +54,27 @@ public Long getValue() {
52
54
public void setValue (Long value ) {
53
55
this .value = value ;
54
56
}
57
+
58
+ @ Override
59
+ public boolean equals (Object o ) {
60
+ if (this == o ) return true ;
61
+ if (o == null || getClass () != o .getClass ()) return false ;
62
+ LongEntity that = (LongEntity ) o ;
63
+ return Objects .equals (id , that .id ) &&
64
+ Objects .equals (value , that .value );
65
+ }
66
+
67
+ @ Override
68
+ public int hashCode () {
69
+ return Objects .hash (id , value );
70
+ }
71
+
72
+ @ Override
73
+ public String toString () {
74
+ return "LongEntity{" +
75
+ "id=" + id +
76
+ ", value=" + value +
77
+ '}' ;
78
+ }
79
+
55
80
}
You can’t perform that action at this time.
0 commit comments