Rename package to ossez
This commit is contained in:
parent
9e1f3c0899
commit
6e4a769626
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.failure_vs_error;
|
||||
package com.ossez.failure_vs_error;
|
||||
|
||||
/**
|
||||
* @author paullatzelsperger
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.junit.tags.example;
|
||||
package com.ossez.junit.tags.example;
|
||||
|
||||
public class Employee {
|
||||
private int id;
|
|
@ -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.jdbc.core.JdbcTemplate;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.junit.tags.example;
|
||||
package com.ossez.junit.tags.example;
|
||||
|
||||
import org.springframework.jdbc.core.RowMapper;
|
||||
|
|
@ -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.ComponentScan;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.junit5;
|
||||
package com.ossez.junit5;
|
||||
|
||||
public class Greetings {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.junit5.bean;
|
||||
package com.ossez.junit5.bean;
|
||||
|
||||
/**
|
||||
* Bean that contains utility methods to work with numbers.
|
|
@ -1,4 +0,0 @@
|
|||
package com.baeldung.categories;
|
||||
|
||||
public interface UnitTest {
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
package com.baeldung.migration.junit4.categories;
|
||||
|
||||
public interface Annotations {
|
||||
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
package com.baeldung.migration.junit4.categories;
|
||||
|
||||
public interface JUnit4UnitTest {
|
||||
|
||||
}
|
|
@ -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.assertThrows;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung;
|
||||
package com.ossez;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
|
@ -1,13 +1,12 @@
|
|||
package com.baeldung;
|
||||
package com.ossez;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import com.ossez.junit5.Greetings;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.platform.runner.JUnitPlatform;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import com.baeldung.junit5.Greetings;
|
||||
|
||||
@RunWith(JUnitPlatform.class)
|
||||
public class GreetingsUnitTest {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung;
|
||||
package com.ossez;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung;
|
||||
package com.ossez;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
|
@ -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.assertTrue;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.assertexception.migration.junit4;
|
||||
package com.ossez.assertexception.migration.junit4;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
|
@ -1,8 +1,8 @@
|
|||
package com.baeldung.categories;
|
||||
package com.ossez.categories;
|
||||
|
||||
import com.baeldung.junit.tags.example.Employee;
|
||||
import com.baeldung.junit.tags.example.EmployeeDAO;
|
||||
import com.baeldung.junit.tags.example.SpringJdbcConfig;
|
||||
import com.ossez.junit.tags.example.Employee;
|
||||
import com.ossez.junit.tags.example.EmployeeDAO;
|
||||
import com.ossez.junit.tags.example.SpringJdbcConfig;
|
||||
import org.hamcrest.CoreMatchers;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.categories;
|
||||
package com.ossez.categories;
|
||||
|
||||
import org.junit.experimental.categories.Categories;
|
||||
import org.junit.experimental.categories.Categories.IncludeCategory;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.categories;
|
||||
package com.ossez.categories;
|
||||
|
||||
public interface IntegrationTest {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.ossez.categories;
|
||||
|
||||
public interface UnitTest {
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.example;
|
||||
package com.ossez.example;
|
||||
|
||||
import org.junit.Assert;
|
||||
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.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.junit.tags.example.Employee;
|
||||
import com.baeldung.junit.tags.example.EmployeeDAO;
|
||||
import com.baeldung.junit.tags.example.SpringJdbcConfig;
|
||||
import com.ossez.junit.tags.example.Employee;
|
||||
import com.ossez.junit.tags.example.EmployeeDAO;
|
||||
import com.ossez.junit.tags.example.SpringJdbcConfig;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class)
|
|
@ -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.junit.Assert;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.extensions.tempdir;
|
||||
package com.ossez.extensions.tempdir;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.jupiter.api.Assertions.assertAll;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.extensions.tempdir;
|
||||
package com.ossez.extensions.tempdir;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.jupiter.api.Assertions.assertAll;
|
|
@ -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.Test;
|
|
@ -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.Test;
|
||||
|
||||
import com.baeldung.junit5.bean.NumbersBean;
|
||||
import com.ossez.junit5.bean.NumbersBean;
|
||||
|
||||
/**
|
||||
* Test class for {@link NumbersBean}.
|
|
@ -1,14 +1,13 @@
|
|||
package com.baeldung.junit5.spring;
|
||||
package com.ossez.junit5.spring;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import com.ossez.junit5.Greetings;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||
|
||||
import com.baeldung.junit5.Greetings;
|
||||
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = { SpringTestConfiguration.class })
|
||||
public class GreetingsSpringUnitTest {
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.junit5.spring;
|
||||
package com.ossez.junit5.spring;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
|
@ -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.Test;
|
||||
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 })
|
||||
public class AnnotationTestExampleUnitTest {
|
||||
@Test(expected = Exception.class)
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.migration.junit4;
|
||||
package com.ossez.migration.junit4;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.migration.junit4;
|
||||
package com.ossez.migration.junit4;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.migration.junit4;
|
||||
package com.ossez.migration.junit4;
|
||||
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
|
@ -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.Test;
|
||||
|
||||
import com.baeldung.migration.junit4.rules.TraceUnitTestRule;
|
||||
|
||||
public class RuleExampleUnitTest {
|
||||
|
||||
@Rule
|
|
@ -0,0 +1,5 @@
|
|||
package com.ossez.migration.junit4.categories;
|
||||
|
||||
public interface Annotations {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.ossez.migration.junit4.categories;
|
||||
|
||||
public interface JUnit4UnitTest {
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.migration.junit4.rules;
|
||||
package com.ossez.migration.junit4.rules;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.migration.junit5;
|
||||
package com.ossez.migration.junit5;
|
||||
|
||||
import java.time.Duration;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.migration.junit5;
|
||||
package com.ossez.migration.junit5;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
|
@ -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.Assumptions.assumeFalse;
|
|
@ -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.BeforeAll;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.migration.junit5;
|
||||
package com.ossez.migration.junit5;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
|
@ -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.extension.ExtendWith;
|
||||
import org.junit.platform.runner.JUnitPlatform;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import com.baeldung.migration.junit5.extensions.TraceUnitExtension;
|
||||
|
||||
@RunWith(JUnitPlatform.class)
|
||||
@ExtendWith(TraceUnitExtension.class)
|
||||
public class RuleExampleUnitTest {
|
|
@ -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.BeforeEachCallback;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.resourcedirectory;
|
||||
package com.ossez.resourcedirectory;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.suites;
|
||||
package com.ossez.suites;
|
||||
|
||||
import org.junit.platform.runner.JUnitPlatform;
|
||||
import org.junit.platform.suite.api.SelectPackages;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.tags;
|
||||
package com.ossez.tags;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
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.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.junit.tags.example.Employee;
|
||||
import com.baeldung.junit.tags.example.EmployeeDAO;
|
||||
import com.baeldung.junit.tags.example.SpringJdbcConfig;
|
||||
import com.ossez.junit.tags.example.Employee;
|
||||
import com.ossez.junit.tags.example.EmployeeDAO;
|
||||
import com.ossez.junit.tags.example.SpringJdbcConfig;
|
||||
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = { SpringJdbcConfig.class }, loader = AnnotationConfigContextLoader.class)
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.tags;
|
||||
package com.ossez.tags;
|
||||
|
||||
import org.junit.platform.runner.JUnitPlatform;
|
||||
import org.junit.platform.suite.api.IncludeTags;
|
Loading…
Reference in New Issue