forked from Infosys/Discourse-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGroupsTest.java
More file actions
29 lines (25 loc) · 858 Bytes
/
GroupsTest.java
File metadata and controls
29 lines (25 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright 2021 Infosys Ltd.
* Use of this source code is governed by GNU General Public License version 2
* that can be found in the LICENSE file or at
* https://opensource.org/licenses/GPL-2.0
*/
package com.infy.domain;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import com.infy.web.rest.TestUtil;
public class GroupsTest {
@Test
public void equalsVerifier() throws Exception {
TestUtil.equalsVerifier(Groups.class);
Groups groups1 = new Groups();
groups1.setId(1L);
Groups groups2 = new Groups();
groups2.setId(groups1.getId());
assertThat(groups1).isEqualTo(groups2);
groups2.setId(2L);
assertThat(groups1).isNotEqualTo(groups2);
groups1.setId(null);
assertThat(groups1).isNotEqualTo(groups2);
}
}