-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27737 from sberyozkin/resteasy_reactive_statustyp…
…e_equals Add RESTEasy Reactive StatusType equals and hashCode methods
- Loading branch information
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...on/runtime/src/test/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImplTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.jboss.resteasy.reactive.common.jaxrs; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertNotEquals; | ||
|
||
import javax.ws.rs.core.Response; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class StatusTypeImplTest { | ||
@Test | ||
public void testEquals() { | ||
Response.StatusType statusType = new StatusTypeImpl(200, null); | ||
assertEquals(statusType, Response.Status.OK); | ||
} | ||
|
||
@Test | ||
public void testNotEquals() { | ||
Response.StatusType statusType = new StatusTypeImpl(200, "All works OK"); | ||
assertNotEquals(statusType, Response.Status.OK); | ||
} | ||
} |