Rename package to ossez

This commit is contained in:
YuCheng Hu 2021-11-22 13:35:20 -05:00
parent 9e1f3c0899
commit 6e4a769626
48 changed files with 73 additions and 78 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.failure_vs_error; package com.ossez.failure_vs_error;
/** /**
* @author paullatzelsperger * @author paullatzelsperger

View File

@ -1,4 +1,4 @@
package com.baeldung.junit.tags.example; package com.ossez.junit.tags.example;
public class Employee { public class Employee {
private int id; private int id;

View File

@ -1,4 +1,4 @@
package com.baeldung.junit.tags.example; package com.ossez.junit.tags.example;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplate;

View File

@ -1,4 +1,4 @@
package com.baeldung.junit.tags.example; package com.ossez.junit.tags.example;
import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.RowMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.junit.tags.example; package com.ossez.junit.tags.example;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;

View File

@ -1,4 +1,4 @@
package com.baeldung.junit5; package com.ossez.junit5;
public class Greetings { public class Greetings {

View File

@ -1,4 +1,4 @@
package com.baeldung.junit5.bean; package com.ossez.junit5.bean;
/** /**
* Bean that contains utility methods to work with numbers. * Bean that contains utility methods to work with numbers.

View File

@ -1,4 +0,0 @@
package com.baeldung.categories;
public interface UnitTest {
}

View File

@ -1,5 +0,0 @@
package com.baeldung.migration.junit4.categories;
public interface Annotations {
}

View File

@ -1,5 +0,0 @@
package com.baeldung.migration.junit4.categories;
public interface JUnit4UnitTest {
}

View File

@ -1,4 +1,4 @@
package com.baeldung; package com.ossez;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertThrows;

View File

@ -1,4 +1,4 @@
package com.baeldung; package com.ossez;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;

View File

@ -1,13 +1,12 @@
package com.baeldung; package com.ossez;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import com.ossez.junit5.Greetings;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform; import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import com.baeldung.junit5.Greetings;
@RunWith(JUnitPlatform.class) @RunWith(JUnitPlatform.class)
public class GreetingsUnitTest { public class GreetingsUnitTest {

View File

@ -1,4 +1,4 @@
package com.baeldung; package com.ossez;
import java.util.logging.Logger; import java.util.logging.Logger;

View File

@ -1,4 +1,4 @@
package com.baeldung; package com.ossez;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;

View File

@ -1,4 +1,4 @@
package com.baeldung.assertexception; package com.ossez.assertexception;
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;

View File

@ -1,4 +1,4 @@
package com.baeldung.assertexception.migration.junit4; package com.ossez.assertexception.migration.junit4;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;

View File

@ -1,8 +1,8 @@
package com.baeldung.categories; package com.ossez.categories;
import com.baeldung.junit.tags.example.Employee; import com.ossez.junit.tags.example.Employee;
import com.baeldung.junit.tags.example.EmployeeDAO; import com.ossez.junit.tags.example.EmployeeDAO;
import com.baeldung.junit.tags.example.SpringJdbcConfig; import com.ossez.junit.tags.example.SpringJdbcConfig;
import org.hamcrest.CoreMatchers; import org.hamcrest.CoreMatchers;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Before; import org.junit.Before;

View File

@ -1,4 +1,4 @@
package com.baeldung.categories; package com.ossez.categories;
import org.junit.experimental.categories.Categories; import org.junit.experimental.categories.Categories;
import org.junit.experimental.categories.Categories.IncludeCategory; import org.junit.experimental.categories.Categories.IncludeCategory;

View File

@ -1,4 +1,4 @@
package com.baeldung.categories; package com.ossez.categories;
public interface IntegrationTest { public interface IntegrationTest {
} }

View File

@ -0,0 +1,4 @@
package com.ossez.categories;
public interface UnitTest {
}

View File

@ -1,4 +1,4 @@
package com.baeldung.example; package com.ossez.example;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
@ -10,9 +10,9 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader; import org.springframework.test.context.support.AnnotationConfigContextLoader;
import com.baeldung.junit.tags.example.Employee; import com.ossez.junit.tags.example.Employee;
import com.baeldung.junit.tags.example.EmployeeDAO; import com.ossez.junit.tags.example.EmployeeDAO;
import com.baeldung.junit.tags.example.SpringJdbcConfig; import com.ossez.junit.tags.example.SpringJdbcConfig;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class) @ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class)

View File

@ -1,6 +1,6 @@
package com.baeldung.example; package com.ossez.example;
import com.baeldung.junit.tags.example.EmployeeDAO; import com.ossez.junit.tags.example.EmployeeDAO;
import org.hamcrest.CoreMatchers; import org.hamcrest.CoreMatchers;
import org.junit.Assert; import org.junit.Assert;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;

View File

@ -1,4 +1,4 @@
package com.baeldung.extensions.tempdir; package com.ossez.extensions.tempdir;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertAll;

View File

@ -1,4 +1,4 @@
package com.baeldung.extensions.tempdir; package com.ossez.extensions.tempdir;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertAll;

View File

@ -1,4 +1,4 @@
package com.baeldung.failure_vs_error; package com.ossez.failure_vs_error;
import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;

View File

@ -1,9 +1,9 @@
package com.baeldung.junit5.bean.test; package com.ossez.junit5.bean.test;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import com.baeldung.junit5.bean.NumbersBean; import com.ossez.junit5.bean.NumbersBean;
/** /**
* Test class for {@link NumbersBean}. * Test class for {@link NumbersBean}.

View File

@ -1,14 +1,13 @@
package com.baeldung.junit5.spring; package com.ossez.junit5.spring;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import com.ossez.junit5.Greetings;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.context.junit.jupiter.SpringExtension;
import com.baeldung.junit5.Greetings;
@ExtendWith(SpringExtension.class) @ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = { SpringTestConfiguration.class }) @ContextConfiguration(classes = { SpringTestConfiguration.class })
public class GreetingsSpringUnitTest { public class GreetingsSpringUnitTest {

View File

@ -1,4 +1,4 @@
package com.baeldung.junit5.spring; package com.ossez.junit5.spring;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

View File

@ -1,12 +1,11 @@
package com.baeldung.migration.junit4; package com.ossez.migration.junit4;
import com.ossez.migration.junit4.categories.Annotations;
import com.ossez.migration.junit4.categories.JUnit4UnitTest;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.experimental.categories.Category; import org.junit.experimental.categories.Category;
import com.baeldung.migration.junit4.categories.Annotations;
import com.baeldung.migration.junit4.categories.JUnit4UnitTest;
@Category(value = { Annotations.class, JUnit4UnitTest.class }) @Category(value = { Annotations.class, JUnit4UnitTest.class })
public class AnnotationTestExampleUnitTest { public class AnnotationTestExampleUnitTest {
@Test(expected = Exception.class) @Test(expected = Exception.class)

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit4; package com.ossez.migration.junit4;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit4; package com.ossez.migration.junit4;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit4; package com.ossez.migration.junit4;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.BeforeClass; import org.junit.BeforeClass;

View File

@ -1,10 +1,9 @@
package com.baeldung.migration.junit4; package com.ossez.migration.junit4;
import com.ossez.migration.junit4.rules.TraceUnitTestRule;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import com.baeldung.migration.junit4.rules.TraceUnitTestRule;
public class RuleExampleUnitTest { public class RuleExampleUnitTest {
@Rule @Rule

View File

@ -0,0 +1,5 @@
package com.ossez.migration.junit4.categories;
public interface Annotations {
}

View File

@ -0,0 +1,5 @@
package com.ossez.migration.junit4.categories;
public interface JUnit4UnitTest {
}

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit4.rules; package com.ossez.migration.junit4.rules;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit5; package com.ossez.migration.junit5;
import java.time.Duration; import java.time.Duration;

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit5; package com.ossez.migration.junit5;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit5; package com.ossez.migration.junit5;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.assumeFalse; import static org.junit.jupiter.api.Assumptions.assumeFalse;

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit5; package com.ossez.migration.junit5;
import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit5; package com.ossez.migration.junit5;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;

View File

@ -1,12 +1,11 @@
package com.baeldung.migration.junit5; package com.ossez.migration.junit5;
import com.ossez.migration.junit5.extensions.TraceUnitExtension;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.platform.runner.JUnitPlatform; import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import com.baeldung.migration.junit5.extensions.TraceUnitExtension;
@RunWith(JUnitPlatform.class) @RunWith(JUnitPlatform.class)
@ExtendWith(TraceUnitExtension.class) @ExtendWith(TraceUnitExtension.class)
public class RuleExampleUnitTest { public class RuleExampleUnitTest {

View File

@ -1,4 +1,4 @@
package com.baeldung.migration.junit5.extensions; package com.ossez.migration.junit5.extensions;
import org.junit.jupiter.api.extension.AfterEachCallback; import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.BeforeEachCallback; import org.junit.jupiter.api.extension.BeforeEachCallback;

View File

@ -1,4 +1,4 @@
package com.baeldung.resourcedirectory; package com.ossez.resourcedirectory;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.suites; package com.ossez.suites;
import org.junit.platform.runner.JUnitPlatform; import org.junit.platform.runner.JUnitPlatform;
import org.junit.platform.suite.api.SelectPackages; import org.junit.platform.suite.api.SelectPackages;

View File

@ -1,4 +1,4 @@
package com.baeldung.tags; package com.ossez.tags;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
@ -16,9 +16,9 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.support.AnnotationConfigContextLoader; import org.springframework.test.context.support.AnnotationConfigContextLoader;
import com.baeldung.junit.tags.example.Employee; import com.ossez.junit.tags.example.Employee;
import com.baeldung.junit.tags.example.EmployeeDAO; import com.ossez.junit.tags.example.EmployeeDAO;
import com.baeldung.junit.tags.example.SpringJdbcConfig; import com.ossez.junit.tags.example.SpringJdbcConfig;
@ExtendWith(SpringExtension.class) @ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class) @ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class)

View File

@ -1,4 +1,4 @@
package com.baeldung.tags; package com.ossez.tags;
import org.junit.platform.runner.JUnitPlatform; import org.junit.platform.runner.JUnitPlatform;
import org.junit.platform.suite.api.IncludeTags; import org.junit.platform.suite.api.IncludeTags;