mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Remove redundant test instance annotations from BaseTest children
This commit is contained in:
parent
e03fc627fa
commit
123ff24060
@ -31,12 +31,10 @@ import java.util.Arrays;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.SerializedBatchUpdateException;
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class BatchUpdateExceptionTests extends BaseTest {
|
||||
|
||||
private final int[] uc = {1, 2, 3};
|
||||
|
||||
@ -34,11 +34,9 @@ import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class CallableStatementTests extends BaseTest {
|
||||
private CallableStatement cstmt;
|
||||
|
||||
|
||||
@ -32,11 +32,9 @@ import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class ConnectionTests extends BaseTest {
|
||||
|
||||
protected StubConnection conn;
|
||||
|
||||
@ -27,11 +27,9 @@ import java.sql.SQLException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class DataTruncationTests extends BaseTest {
|
||||
|
||||
private final String READ_TRUNCATION = "01004";
|
||||
|
||||
@ -23,19 +23,16 @@
|
||||
package test.sql;
|
||||
|
||||
import java.sql.Date;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class DateTests extends BaseTest {
|
||||
|
||||
/*
|
||||
|
||||
@ -34,11 +34,9 @@ import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class PreparedStatementTests extends BaseTest {
|
||||
|
||||
private PreparedStatement pstmt;
|
||||
|
||||
@ -29,11 +29,9 @@ import java.util.HashMap;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLClientInfoExceptionTests extends BaseTest {
|
||||
|
||||
private final HashMap<String, ClientInfoStatus> map = new HashMap<>();
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLNonTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLDataExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -26,11 +26,9 @@ import java.sql.SQLException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLNonTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLFeatureNotSupportedExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLNonTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLIntegrityConstraintViolationExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLNonTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLInvalidAuthorizationSpecExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLNonTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLNonTransientConnectionExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -27,11 +27,9 @@ import java.sql.SQLNonTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLNonTransientExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -27,11 +27,9 @@ import java.sql.SQLRecoverableException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLRecoverableExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLSyntaxErrorException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLSyntaxErrorExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLTimeoutExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLTransactionRollbackExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -28,11 +28,9 @@ import java.sql.SQLTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLTransientConnectionExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -27,11 +27,9 @@ import java.sql.SQLTransientException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLTransientExceptionTests extends BaseTest {
|
||||
|
||||
/**
|
||||
|
||||
@ -27,11 +27,9 @@ import java.sql.SQLWarning;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class SQLWarningTests extends BaseTest {
|
||||
|
||||
private final String[] warnings = {"Warning 1", "cause 1", "Warning 2",
|
||||
|
||||
@ -30,7 +30,6 @@ import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
@ -38,7 +37,6 @@ import org.junit.jupiter.params.provider.ValueSource;
|
||||
import util.BaseTest;
|
||||
import util.StubConnection;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class StatementTests extends BaseTest {
|
||||
|
||||
private Statement stmt;
|
||||
|
||||
@ -28,13 +28,11 @@ import java.time.LocalTime;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class TimeTests extends BaseTest {
|
||||
|
||||
/*
|
||||
|
||||
@ -36,13 +36,11 @@ import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
import util.BaseTest;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
public class TimestampTests extends BaseTest {
|
||||
|
||||
private static TimeZone defaultTimeZone = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user