forked from Infosys/Discourse-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBadgesTest.java
More file actions
29 lines (25 loc) · 858 Bytes
/
BadgesTest.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 BadgesTest {
@Test
public void equalsVerifier() throws Exception {
TestUtil.equalsVerifier(Badges.class);
Badges badges1 = new Badges();
badges1.setId(1L);
Badges badges2 = new Badges();
badges2.setId(badges1.getId());
assertThat(badges1).isEqualTo(badges2);
badges2.setId(2L);
assertThat(badges1).isNotEqualTo(badges2);
badges1.setId(null);
assertThat(badges1).isNotEqualTo(badges2);
}
}