Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo committed Aug 7, 2024
1 parent 5257522 commit fab8e69
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/test/java/com/mageddo/dnsproxyserver/AppIntTest.java
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
package com.mageddo.dnsproxyserver;

import ch.qos.logback.classic.Level;
import com.mageddo.commons.concurrent.Threads;
import com.mageddo.dns.utils.Messages;
import com.mageddo.dnsproxyserver.config.application.Configs;
import com.mageddo.dnsproxyserver.server.Starter;
import com.mageddo.dnsproxyserver.solver.SimpleResolver;
import com.mageddo.dnsproxyserver.utils.Ips;
import com.mageddo.logback.LogbackUtils;
import com.mageddo.utils.Executors;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.xbill.DNS.Message;
import testing.templates.ConfigFlagArgsTemplates;

import java.nio.file.Path;
import java.time.Duration;

import static org.junit.jupiter.api.Assertions.assertTrue;
Expand All @@ -30,7 +26,6 @@ public class AppIntTest {
void beforeEach() {
Starter.setMustStartFlagActive(true);
Configs.clear();
LogbackUtils.changeLogLevel("com.mageddo", Level.TRACE);
}

@AfterAll
Expand All @@ -39,7 +34,7 @@ static void afterAll(){
}

@Test
void appMustStartAndQuerySampleWithSuccess(@TempDir Path tempDir) {
void appMustStartAndQuerySampleWithSuccess() {

final var hostToQuery = "dps-sample.dev";
final var args = ConfigFlagArgsTemplates.withRandomPortsAndNotAsDefaultDns();
Expand Down

0 comments on commit fab8e69

Please sign in to comment.