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