From 8c0cb8a38df9ec1ad83da0113a94b7a576a3eb99 Mon Sep 17 00:00:00 2001 From: mrfoxygmfr Date: Tue, 6 May 2025 23:18:38 +0300 Subject: chore: remove unnecessary code --- .../warehouse_accounting/http/PartnersControllerTest.java | 11 ----------- .../warehouse_accounting/http/ProductsControllerTest.java | 12 ------------ 2 files changed, 23 deletions(-) (limited to 'src/test/java/ru') diff --git a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java index c85134a..ac5df35 100644 --- a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java +++ b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java @@ -11,17 +11,6 @@ import java.util.concurrent.TimeUnit; import static org.junit.jupiter.api.Assertions.*; public class PartnersControllerTest { - private final String srcURL = "http://localhost:8080/"; - private final String title = "Система складского учета"; - - @Test - void PartnersPageTest() { - ChromeDriver driver = new ChromeDriver(); - driver.get(srcURL); - assertEquals(title, driver.getTitle()); - driver.quit(); - } - @Test void CreateNewPartner() { ChromeDriver driver = new ChromeDriver(); diff --git a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/ProductsControllerTest.java b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/ProductsControllerTest.java index 66a8485..7148d4a 100644 --- a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/ProductsControllerTest.java +++ b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/ProductsControllerTest.java @@ -3,7 +3,6 @@ package ru.mrfoxygmfr.warehouse_accounting.http; import org.junit.jupiter.api.Test; import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver; -import org.openqa.selenium.support.ui.Select; import java.util.List; import java.util.concurrent.TimeUnit; @@ -11,17 +10,6 @@ import java.util.concurrent.TimeUnit; import static org.junit.jupiter.api.Assertions.*; public class ProductsControllerTest { - private final String srcURL = "http://localhost:8080/"; - private final String title = "Система складского учета"; - - @Test - void ProductsPageTest() { - ChromeDriver driver = new ChromeDriver(); - driver.get(srcURL); - assertEquals(title, driver.getTitle()); - driver.quit(); - } - @Test void CreateNewProduct() { ChromeDriver driver = new ChromeDriver(); -- cgit mrf-deployment