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