Merge pull request #8405 from kwoyke/BAEL-19988

BAEL-19988: Migrate testing-modules module to the com.baeldung package
This commit is contained in:
Josh Cummings 2019-12-19 17:47:30 -07:00 committed by GitHub
commit b8e73d5b8c
38 changed files with 68 additions and 65 deletions

View File

@ -1,4 +1,4 @@
package org.baeldung.easy.random.model;
package com.baeldung.easy.random.model;
import java.util.StringJoiner;

View File

@ -1,4 +1,4 @@
package org.baeldung.easy.random.model;
package com.baeldung.easy.random.model;
import java.util.*;

View File

@ -1,4 +1,4 @@
package org.baeldung.easy.random.model;
package com.baeldung.easy.random.model;
import java.util.StringJoiner;

View File

@ -1,4 +1,4 @@
package org.baeldung.easy.random.model;
package com.baeldung.easy.random.model;
import java.util.StringJoiner;

View File

@ -1,4 +1,4 @@
package org.baeldung.easy.random.model;
package com.baeldung.easy.random.model;
import java.time.LocalDate;
import java.util.Objects;

View File

@ -1,6 +1,6 @@
package org.baeldung.easy.random.randomizer;
package com.baeldung.easy.random.randomizer;
import org.baeldung.easy.random.model.YearQuarter;
import com.baeldung.easy.random.model.YearQuarter;
import org.jeasy.random.api.Randomizer;
import java.time.LocalDate;

View File

@ -1,9 +1,9 @@
package org.baeldung.easy.random;
package com.baeldung.easy.random;
import org.baeldung.easy.random.model.Employee;
import org.baeldung.easy.random.model.Person;
import org.baeldung.easy.random.model.YearQuarter;
import org.baeldung.easy.random.randomizer.YearQuarterRandomizer;
import com.baeldung.easy.random.model.Employee;
import com.baeldung.easy.random.model.Person;
import com.baeldung.easy.random.model.YearQuarter;
import com.baeldung.easy.random.randomizer.YearQuarterRandomizer;
import org.jeasy.random.EasyRandom;
import org.jeasy.random.EasyRandomParameters;
import org.jeasy.random.FieldPredicates;

View File

@ -5,7 +5,7 @@ import org.junit.platform.suite.api.SelectPackages;
import org.junit.runner.RunWith;
@RunWith(JUnitPlatform.class)
@SelectPackages({ "org.baeldung.java.suite.childpackage1", "org.baeldung.java.suite.childpackage2" })
@SelectPackages({ "com.baeldung.java.suite.childpackage1", "com.baeldung.java.suite.childpackage2" })
public class SelectPackagesSuiteUnitTest {
}

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
public class AdvancedCollaborator {
int i;

View File

@ -1,4 +1,4 @@
package com.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
import java.util.Random;

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
public class Collaborator {

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
public class Model {
public String getInfo() {

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
public class Performer {
private Collaborator collaborator;

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.testCase;
package com.baeldung.testCase;
public class LoginController {

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.testCase;
package com.baeldung.testCase;
public class LoginDao {

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.testCase;
package com.baeldung.testCase;
public class LoginService {

View File

@ -1,4 +1,4 @@
package org.baeldung.mocks.testCase;
package com.baeldung.testCase;
public class UserForm {

View File

@ -1,9 +1,9 @@
package org.baeldung.mocks.easymock;
package com.baeldung.easymock;
import org.baeldung.mocks.testCase.LoginController;
import org.baeldung.mocks.testCase.LoginDao;
import org.baeldung.mocks.testCase.LoginService;
import org.baeldung.mocks.testCase.UserForm;
import com.baeldung.testCase.LoginController;
import com.baeldung.testCase.LoginDao;
import com.baeldung.testCase.LoginService;
import com.baeldung.testCase.UserForm;
import org.easymock.*;
import org.junit.Assert;
import org.junit.Test;

View File

@ -1,10 +1,11 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import com.baeldung.jmockit.AdvancedCollaborator;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -1,10 +1,9 @@
package com.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import mockit.Deencapsulation;
import mockit.Mock;
import mockit.MockUp;

View File

@ -1,5 +1,7 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
import com.baeldung.jmockit.ExpectationsCollaborator;
import com.baeldung.jmockit.Model;
import mockit.Delegate;
import mockit.Expectations;
import mockit.Mocked;

View File

@ -1,11 +1,11 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
import mockit.*;
import mockit.integration.junit4.JMockit;
import org.baeldung.mocks.testCase.LoginController;
import org.baeldung.mocks.testCase.LoginDao;
import org.baeldung.mocks.testCase.LoginService;
import org.baeldung.mocks.testCase.UserForm;
import com.baeldung.testCase.LoginController;
import com.baeldung.testCase.LoginDao;
import com.baeldung.testCase.LoginService;
import com.baeldung.testCase.UserForm;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.junit.Assert;

View File

@ -1,5 +1,8 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
import com.baeldung.jmockit.Collaborator;
import com.baeldung.jmockit.Model;
import com.baeldung.jmockit.Performer;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -1,5 +1,8 @@
package org.baeldung.mocks.jmockit;
package com.baeldung.jmockit;
import com.baeldung.jmockit.Collaborator;
import com.baeldung.jmockit.Model;
import com.baeldung.jmockit.Performer;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -1,9 +1,9 @@
package org.baeldung.mocks.mockito;
package com.baeldung.mockito;
import org.baeldung.mocks.testCase.LoginController;
import org.baeldung.mocks.testCase.LoginDao;
import org.baeldung.mocks.testCase.LoginService;
import org.baeldung.mocks.testCase.UserForm;
import com.baeldung.testCase.LoginController;
import com.baeldung.testCase.LoginDao;
import com.baeldung.testCase.LoginService;
import com.baeldung.testCase.UserForm;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.rest;
package com.baeldung.rest.jbehave;
public class GitHubUser {

View File

@ -1,11 +1,6 @@
package com.baeldung.rest.jbehave;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.impl.client.HttpClientBuilder;
import org.baeldung.rest.GitHubUser;
import org.baeldung.rest.RetrieveUtil;
import org.hamcrest.Matchers;
import org.jbehave.core.annotations.Given;
import org.jbehave.core.annotations.Then;

View File

@ -1,4 +1,4 @@
package org.baeldung.rest;
package com.baeldung.rest.jbehave;
import java.io.IOException;

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung</groupId>
<groupId>com.baeldung</groupId>
<artifactId>spring-testing</artifactId>
<version>0.1-SNAPSHOT</version>
<name>spring-testing</name>

View File

@ -1,4 +1,4 @@
package org.baeldung.mockito.repository;
package com.baeldung.mockito.repository;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

View File

@ -1,4 +1,4 @@
package org.baeldung.mockito.repository;
package com.baeldung.mockito.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

View File

@ -1,4 +1,4 @@
package org.baeldung.reflectiontestutils.repository;
package com.baeldung.reflectiontestutils.repository;
public class Employee {
private Integer id;

View File

@ -1,4 +1,4 @@
package org.baeldung.reflectiontestutils.repository;
package com.baeldung.reflectiontestutils.repository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package org.baeldung.reflectiontestutils.repository;
package com.baeldung.reflectiontestutils.repository;
import org.springframework.stereotype.Component;

View File

@ -1,6 +1,6 @@
package org.baeldung.mockito;
package com.baeldung.mockito;
import org.baeldung.mockito.repository.UserRepository;
import com.baeldung.mockito.repository.UserRepository;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -1,6 +1,6 @@
package org.baeldung.mockito;
package com.baeldung.mockito;
import org.baeldung.mockito.repository.UserRepository;
import com.baeldung.mockito.repository.UserRepository;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -1,11 +1,11 @@
package org.baeldung.reflectiontestutils;
package com.baeldung.reflectiontestutils;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;
import org.baeldung.reflectiontestutils.repository.Employee;
import org.baeldung.reflectiontestutils.repository.EmployeeService;
import org.baeldung.reflectiontestutils.repository.HRService;
import com.baeldung.reflectiontestutils.repository.EmployeeService;
import com.baeldung.reflectiontestutils.repository.HRService;
import com.baeldung.reflectiontestutils.repository.Employee;
import org.junit.Test;
import org.springframework.test.util.ReflectionTestUtils;