Skip to content

Commit

Permalink
BC-7240 - test equal methode
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Jul 15, 2024
1 parent 5f9d3ed commit 6ae99fd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/java/de/svs/doido/mongo/dto/MongoServerTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package svs.doido.mongo.dto;

import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import static org.junit.jupiter.api.Assertions.assertEquals;

@QuarkusTest
class MongoServerTest {

@Test
void testGetterSetterName() {
MongoServer a = new MongoServer("Server 1","mongodb://mongodb-2.mongo-svc:27017/replicaSet=rs0&directConnection=false");
MongoServer b = new MongoServer("Server 1","mongodb://mongodb-2.mongo-svc:27017/replicaSet=rs0&directConnection=false");
assertEquals(1,a.equal(b));
}
}

0 comments on commit 6ae99fd

Please sign in to comment.