1
1
/*
2
- * Copyright (c) 2009 - 2012 Deutsches Elektronen-Synchroton,
2
+ * Copyright (c) 2009 - 2020 Deutsches Elektronen-Synchroton,
3
3
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
4
4
*
5
5
* This library is free software; you can redistribute it and/or modify
@@ -31,11 +31,11 @@ public class stateid4Test {
31
31
public void testEqualsTrue () {
32
32
33
33
stateid4 stateidA = new stateid4 ();
34
- stateidA .seqid = new uint32_t ( 1 ) ;
34
+ stateidA .seqid = 1 ;
35
35
stateidA .other = "state" .getBytes ();
36
36
37
37
stateid4 stateidB = new stateid4 ();
38
- stateidB .seqid = new uint32_t ( 1 ) ;
38
+ stateidB .seqid = 1 ;
39
39
stateidB .other = "state" .getBytes ();
40
40
41
41
assertTrue ("equal keys not equal" , stateidA .equals (stateidB ));
@@ -47,7 +47,7 @@ public void testEqualsTrue() {
47
47
public void testEqualsSame () {
48
48
49
49
stateid4 stateidA = new stateid4 ();
50
- stateidA .seqid = new uint32_t ( 1 ) ;
50
+ stateidA .seqid = 1 ;
51
51
stateidA .other = "state" .getBytes ();
52
52
53
53
assertTrue ("equal keys not equal" , stateidA .equals (stateidA ));
@@ -57,11 +57,11 @@ public void testEqualsSame() {
57
57
public void testDifferSequence () {
58
58
59
59
stateid4 stateidA = new stateid4 ();
60
- stateidA .seqid = new uint32_t ( 1 ) ;
60
+ stateidA .seqid = 1 ;
61
61
stateidA .other = "state" .getBytes ();
62
62
63
63
stateid4 stateidB = new stateid4 ();
64
- stateidB .seqid = new uint32_t ( 2 ) ;
64
+ stateidB .seqid = 2 ;
65
65
stateidB .other = "state" .getBytes ();
66
66
67
67
assertTrue ("differ by sequence should still be equal" , stateidA .equals (stateidB ));
@@ -72,11 +72,11 @@ public void testDifferSequence() {
72
72
public void testDifferOther () {
73
73
74
74
stateid4 stateidA = new stateid4 ();
75
- stateidA .seqid = new uint32_t ( 1 ) ;
75
+ stateidA .seqid = 1 ;
76
76
stateidA .other = "stateA" .getBytes ();
77
77
78
78
stateid4 stateidB = new stateid4 ();
79
- stateidB .seqid = new uint32_t ( 1 ) ;
79
+ stateidB .seqid = 1 ;
80
80
stateidB .other = "stateB" .getBytes ();
81
81
82
82
assertFalse ("differ by other not detected" , stateidA .equals (stateidB ));
0 commit comments