Rename the package: <module>core-java-11-2</module> to project

This commit is contained in:
YuCheng Hu 2022-05-13 14:45:48 -04:00
parent 93611de36d
commit 27af3d0cdc
37 changed files with 65 additions and 65 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.features; package com.ossez.features;
public class MainClass { public class MainClass {

View File

@ -1,4 +1,4 @@
package com.baeldung.httpsclientauthentication; package com.ossez.httpsclientauthentication;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;

View File

@ -1,4 +1,4 @@
package com.baeldung.httpsclientauthentication; package com.ossez.httpsclientauthentication;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;

View File

@ -1,4 +1,4 @@
package com.baeldung.optional; package com.ossez.optional;
public class Modem { public class Modem {
private Double price; private Double price;

View File

@ -1,4 +1,4 @@
package com.baeldung.optional; package com.ossez.optional;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
public abstract class Animal implements Eating { public abstract class Animal implements Eating {

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
public class Bird extends Animal { public class Bird extends Animal {
private boolean walks; private boolean walks;

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
public interface Eating { public interface Eating {
String eats(); String eats();

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
public class Goat extends Animal implements Locomotion { public class Goat extends Animal implements Locomotion {

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
import java.lang.reflect.Field; import java.lang.reflect.Field;

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
@Greeter(greet="Good morning") @Greeter(greet="Good morning")
public class Greetings { public class Greetings {

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
public interface Locomotion { public interface Locomotion {
String getLocomotion(); String getLocomotion();

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
public class Operations { public class Operations {

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
public class Person { public class Person {
private String name; private String name;

View File

@ -1,5 +1,5 @@
package com.baeldung.soap.ws.client.generated; package com.ossez.soap.ws.client.generated;
import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAccessorType;

View File

@ -1,5 +1,5 @@
package com.baeldung.soap.ws.client.generated; package com.ossez.soap.ws.client.generated;
import jakarta.jws.WebMethod; import jakarta.jws.WebMethod;
import jakarta.jws.WebParam; import jakarta.jws.WebParam;
@ -28,7 +28,7 @@ public interface CountryService {
* *
* @param arg0 * @param arg0
* @return * @return
* returns com.baeldung.soap.ws.client.generated.Country * returns Country
*/ */
@WebMethod @WebMethod
@WebResult(partName = "return") @WebResult(partName = "return")

View File

@ -1,5 +1,5 @@
package com.baeldung.soap.ws.client.generated; package com.ossez.soap.ws.client.generated;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;

View File

@ -1,5 +1,5 @@
package com.baeldung.soap.ws.client.generated; package com.ossez.soap.ws.client.generated;
import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.XmlType;

View File

@ -1,5 +1,5 @@
package com.baeldung.soap.ws.client.generated; package com.ossez.soap.ws.client.generated;
import jakarta.xml.bind.annotation.XmlRegistry; import jakarta.xml.bind.annotation.XmlRegistry;

View File

@ -1,2 +1,2 @@
@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://server.ws.soap.baeldung.com/") @jakarta.xml.bind.annotation.XmlSchema(namespace = "http://server.ws.soap.baeldung.com/")
package com.baeldung.soap.ws.client.generated; package com.ossez.soap.ws.client.generated;

View File

@ -1,4 +1,4 @@
package com.baeldung.soap.ws.server; package com.ossez.soap.ws.server;
public class Country { public class Country {
protected String name; protected String name;

View File

@ -1,4 +1,4 @@
package com.baeldung.soap.ws.server; package com.ossez.soap.ws.server;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.baeldung.soap.ws.server; package com.ossez.soap.ws.server;
import jakarta.jws.WebMethod; import jakarta.jws.WebMethod;
import jakarta.jws.WebService; import jakarta.jws.WebService;

View File

@ -1,8 +1,8 @@
package com.baeldung.soap.ws.server; package com.ossez.soap.ws.server;
import jakarta.jws.WebService; import jakarta.jws.WebService;
@WebService(endpointInterface = "com.baeldung.soap.ws.server.CountryService") @WebService(endpointInterface = "com.ossez.soap.ws.server.CountryService")
public class CountryServiceImpl implements CountryService { public class CountryServiceImpl implements CountryService {
private CountryRepository countryRepository = new CountryRepository(); private CountryRepository countryRepository = new CountryRepository();

View File

@ -1,4 +1,4 @@
package com.baeldung.soap.ws.server; package com.ossez.soap.ws.server;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -1,4 +1,4 @@
package com.baeldung.soap.ws.server; package com.ossez.soap.ws.server;
public enum Currency { public enum Currency {

View File

@ -1,4 +1,4 @@
package com.baeldung.collectors; package com.ossez.collectors;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet;

View File

@ -1,4 +1,4 @@
package com.baeldung.features; package com.ossez.features;
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.features; package com.ossez.features;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir; import org.junit.jupiter.api.io.TempDir;

View File

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

View File

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

View File

@ -1,4 +1,4 @@
package com.baeldung.optional; package com.ossez.optional;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger; import org.slf4j.Logger;

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;

View File

@ -1,4 +1,4 @@
package com.baeldung.reflection; package com.ossez.reflection;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
@ -32,23 +32,23 @@ public class ReflectionUnitTest {
final Class<?> clazz = goat.getClass(); final Class<?> clazz = goat.getClass();
assertEquals("Goat", clazz.getSimpleName()); assertEquals("Goat", clazz.getSimpleName());
assertEquals("com.baeldung.reflection.Goat", clazz.getName()); assertEquals("Goat", clazz.getName());
assertEquals("com.baeldung.reflection.Goat", clazz.getCanonicalName()); assertEquals("Goat", clazz.getCanonicalName());
} }
@Test @Test
public void givenClassName_whenCreatesObject_thenCorrect() throws ClassNotFoundException { public void givenClassName_whenCreatesObject_thenCorrect() throws ClassNotFoundException {
final Class<?> clazz = Class.forName("com.baeldung.reflection.Goat"); final Class<?> clazz = Class.forName("com.ossez.reflection.Goat");
assertEquals("Goat", clazz.getSimpleName()); assertEquals("Goat", clazz.getSimpleName());
assertEquals("com.baeldung.reflection.Goat", clazz.getName()); assertEquals("Goat", clazz.getName());
assertEquals("com.baeldung.reflection.Goat", clazz.getCanonicalName()); assertEquals("Goat", clazz.getCanonicalName());
} }
@Test @Test
public void givenClass_whenRecognisesModifiers_thenCorrect() throws ClassNotFoundException { public void givenClass_whenRecognisesModifiers_thenCorrect() throws ClassNotFoundException {
final Class<?> goatClass = Class.forName("com.baeldung.reflection.Goat"); final Class<?> goatClass = Class.forName("com.ossez.reflection.Goat");
final Class<?> animalClass = Class.forName("com.baeldung.reflection.Animal"); final Class<?> animalClass = Class.forName("com.ossez.reflection.Animal");
final int goatMods = goatClass.getModifiers(); final int goatMods = goatClass.getModifiers();
final int animalMods = animalClass.getModifiers(); final int animalMods = animalClass.getModifiers();
@ -81,8 +81,8 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsImplementedInterfaces_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsImplementedInterfaces_thenCorrect() throws ClassNotFoundException {
final Class<?> goatClass = Class.forName("com.baeldung.reflection.Goat"); final Class<?> goatClass = Class.forName("com.ossez.reflection.Goat");
final Class<?> animalClass = Class.forName("com.baeldung.reflection.Animal"); final Class<?> animalClass = Class.forName("com.ossez.reflection.Animal");
final Class<?>[] goatInterfaces = goatClass.getInterfaces(); final Class<?>[] goatInterfaces = goatClass.getInterfaces();
final Class<?>[] animalInterfaces = animalClass.getInterfaces(); final Class<?>[] animalInterfaces = animalClass.getInterfaces();
@ -94,16 +94,16 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsConstructor_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsConstructor_thenCorrect() throws ClassNotFoundException {
final Class<?> goatClass = Class.forName("com.baeldung.reflection.Goat"); final Class<?> goatClass = Class.forName("com.ossez.reflection.Goat");
final Constructor<?>[] constructors = goatClass.getConstructors(); final Constructor<?>[] constructors = goatClass.getConstructors();
assertEquals(1, constructors.length); assertEquals(1, constructors.length);
assertEquals("com.baeldung.reflection.Goat", constructors[0].getName()); assertEquals("Goat", constructors[0].getName());
} }
@Test @Test
public void givenClass_whenGetsFields_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsFields_thenCorrect() throws ClassNotFoundException {
final Class<?> animalClass = Class.forName("com.baeldung.reflection.Animal"); final Class<?> animalClass = Class.forName("com.ossez.reflection.Animal");
final Field[] fields = animalClass.getDeclaredFields(); final Field[] fields = animalClass.getDeclaredFields();
final List<String> actualFields = getFieldNames(fields); final List<String> actualFields = getFieldNames(fields);
@ -114,7 +114,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsMethods_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsMethods_thenCorrect() throws ClassNotFoundException {
final Class<?> animalClass = Class.forName("com.baeldung.reflection.Animal"); final Class<?> animalClass = Class.forName("com.ossez.reflection.Animal");
final Method[] methods = animalClass.getDeclaredMethods(); final Method[] methods = animalClass.getDeclaredMethods();
final List<String> actualMethods = getMethodNames(methods); final List<String> actualMethods = getMethodNames(methods);
@ -124,7 +124,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsAllConstructors_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsAllConstructors_thenCorrect() throws ClassNotFoundException {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Constructor<?>[] constructors = birdClass.getConstructors(); final Constructor<?>[] constructors = birdClass.getConstructors();
assertEquals(3, constructors.length); assertEquals(3, constructors.length);
@ -132,7 +132,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsEachConstructorByParamTypes_thenCorrect() throws Exception { public void givenClass_whenGetsEachConstructorByParamTypes_thenCorrect() throws Exception {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
birdClass.getConstructor(); birdClass.getConstructor();
birdClass.getConstructor(String.class); birdClass.getConstructor(String.class);
birdClass.getConstructor(String.class, boolean.class); birdClass.getConstructor(String.class, boolean.class);
@ -140,7 +140,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenInstantiatesObjectsAtRuntime_thenCorrect() throws Exception { public void givenClass_whenInstantiatesObjectsAtRuntime_thenCorrect() throws Exception {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Constructor<?> cons1 = birdClass.getConstructor(); final Constructor<?> cons1 = birdClass.getConstructor();
final Constructor<?> cons2 = birdClass.getConstructor(String.class); final Constructor<?> cons2 = birdClass.getConstructor(String.class);
@ -159,7 +159,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsPublicFields_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsPublicFields_thenCorrect() throws ClassNotFoundException {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Field[] fields = birdClass.getFields(); final Field[] fields = birdClass.getFields();
assertEquals(1, fields.length); assertEquals(1, fields.length);
assertEquals("CATEGORY", fields[0].getName()); assertEquals("CATEGORY", fields[0].getName());
@ -168,7 +168,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsPublicFieldByName_thenCorrect() throws Exception { public void givenClass_whenGetsPublicFieldByName_thenCorrect() throws Exception {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Field field = birdClass.getField("CATEGORY"); final Field field = birdClass.getField("CATEGORY");
assertEquals("CATEGORY", field.getName()); assertEquals("CATEGORY", field.getName());
@ -176,7 +176,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsDeclaredFields_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsDeclaredFields_thenCorrect() throws ClassNotFoundException {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Field[] fields = birdClass.getDeclaredFields(); final Field[] fields = birdClass.getDeclaredFields();
assertEquals(1, fields.length); assertEquals(1, fields.length);
assertEquals("walks", fields[0].getName()); assertEquals("walks", fields[0].getName());
@ -184,7 +184,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsFieldsByName_thenCorrect() throws Exception { public void givenClass_whenGetsFieldsByName_thenCorrect() throws Exception {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Field field = birdClass.getDeclaredField("walks"); final Field field = birdClass.getDeclaredField("walks");
assertEquals("walks", field.getName()); assertEquals("walks", field.getName());
@ -192,14 +192,14 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClassField_whenGetsType_thenCorrect() throws Exception { public void givenClassField_whenGetsType_thenCorrect() throws Exception {
final Field field = Class.forName("com.baeldung.reflection.Bird").getDeclaredField("walks"); final Field field = Class.forName("com.ossez.reflection.Bird").getDeclaredField("walks");
final Class<?> fieldClass = field.getType(); final Class<?> fieldClass = field.getType();
assertEquals("boolean", fieldClass.getSimpleName()); assertEquals("boolean", fieldClass.getSimpleName());
} }
@Test @Test
public void givenClassField_whenSetsAndGetsValue_thenCorrect() throws Exception { public void givenClassField_whenSetsAndGetsValue_thenCorrect() throws Exception {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Bird bird = (Bird) birdClass.getConstructor().newInstance(); final Bird bird = (Bird) birdClass.getConstructor().newInstance();
final Field field = birdClass.getDeclaredField("walks"); final Field field = birdClass.getDeclaredField("walks");
field.setAccessible(true); field.setAccessible(true);
@ -216,7 +216,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClassField_whenGetsAndSetsWithNull_thenCorrect() throws Exception { public void givenClassField_whenGetsAndSetsWithNull_thenCorrect() throws Exception {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Field field = birdClass.getField("CATEGORY"); final Field field = birdClass.getField("CATEGORY");
field.setAccessible(true); field.setAccessible(true);
@ -225,7 +225,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsAllPublicMethods_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsAllPublicMethods_thenCorrect() throws ClassNotFoundException {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Method[] methods = birdClass.getMethods(); final Method[] methods = birdClass.getMethods();
final List<String> methodNames = getMethodNames(methods); final List<String> methodNames = getMethodNames(methods);
@ -235,7 +235,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenClass_whenGetsOnlyDeclaredMethods_thenCorrect() throws ClassNotFoundException { public void givenClass_whenGetsOnlyDeclaredMethods_thenCorrect() throws ClassNotFoundException {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final List<String> actualMethodNames = getMethodNames(birdClass.getDeclaredMethods()); final List<String> actualMethodNames = getMethodNames(birdClass.getDeclaredMethods());
final List<String> expectedMethodNames = Arrays.asList("setWalks", "walks", "getSound", "eats"); final List<String> expectedMethodNames = Arrays.asList("setWalks", "walks", "getSound", "eats");
@ -258,7 +258,7 @@ public class ReflectionUnitTest {
@Test @Test
public void givenMethod_whenInvokes_thenCorrect() throws Exception { public void givenMethod_whenInvokes_thenCorrect() throws Exception {
final Class<?> birdClass = Class.forName("com.baeldung.reflection.Bird"); final Class<?> birdClass = Class.forName("com.ossez.reflection.Bird");
final Bird bird = (Bird) birdClass.getConstructor().newInstance(); final Bird bird = (Bird) birdClass.getConstructor().newInstance();
final Method setWalksMethod = birdClass.getDeclaredMethod("setWalks", boolean.class); final Method setWalksMethod = birdClass.getDeclaredMethod("setWalks", boolean.class);
final Method walksMethod = birdClass.getDeclaredMethod("walks"); final Method walksMethod = birdClass.getDeclaredMethod("walks");

View File

@ -1,4 +1,4 @@
package com.baeldung.version; package com.ossez.version;
import org.apache.commons.lang3.SystemUtils; import org.apache.commons.lang3.SystemUtils;
import org.assertj.core.api.Assertions; import org.assertj.core.api.Assertions;