Rename the package: <module>core-java-11-2</module> to project
This commit is contained in:
parent
93611de36d
commit
27af3d0cdc
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.features;
|
||||
package com.ossez.features;
|
||||
|
||||
public class MainClass {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.httpsclientauthentication;
|
||||
package com.ossez.httpsclientauthentication;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.httpsclientauthentication;
|
||||
package com.ossez.httpsclientauthentication;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.optional;
|
||||
package com.ossez.optional;
|
||||
|
||||
public class Modem {
|
||||
private Double price;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.optional;
|
||||
package com.ossez.optional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
public abstract class Animal implements Eating {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
public class Bird extends Animal {
|
||||
private boolean walks;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
public interface Eating {
|
||||
String eats();
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
public class Goat extends Animal implements Locomotion {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Field;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
@Greeter(greet="Good morning")
|
||||
public class Greetings {
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
public interface Locomotion {
|
||||
String getLocomotion();
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
public class Operations {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
public class Person {
|
||||
private String name;
|
|
@ -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.XmlAccessorType;
|
|
@ -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.WebParam;
|
||||
|
@ -28,7 +28,7 @@ public interface CountryService {
|
|||
*
|
||||
* @param arg0
|
||||
* @return
|
||||
* returns com.baeldung.soap.ws.client.generated.Country
|
||||
* returns Country
|
||||
*/
|
||||
@WebMethod
|
||||
@WebResult(partName = "return")
|
|
@ -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.URL;
|
|
@ -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.XmlType;
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
package com.baeldung.soap.ws.client.generated;
|
||||
package com.ossez.soap.ws.client.generated;
|
||||
|
||||
import jakarta.xml.bind.annotation.XmlRegistry;
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
@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;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.soap.ws.server;
|
||||
package com.ossez.soap.ws.server;
|
||||
|
||||
public class Country {
|
||||
protected String name;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.soap.ws.server;
|
||||
package com.ossez.soap.ws.server;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.soap.ws.server;
|
||||
package com.ossez.soap.ws.server;
|
||||
|
||||
import jakarta.jws.WebMethod;
|
||||
import jakarta.jws.WebService;
|
|
@ -1,8 +1,8 @@
|
|||
package com.baeldung.soap.ws.server;
|
||||
package com.ossez.soap.ws.server;
|
||||
|
||||
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 {
|
||||
|
||||
private CountryRepository countryRepository = new CountryRepository();
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.soap.ws.server;
|
||||
package com.ossez.soap.ws.server;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.soap.ws.server;
|
||||
package com.ossez.soap.ws.server;
|
||||
|
||||
public enum Currency {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.collectors;
|
||||
package com.ossez.collectors;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableSet;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.features;
|
||||
package com.ossez.features;
|
||||
|
||||
import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.features;
|
||||
package com.ossez.features;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.features;
|
||||
package com.ossez.features;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.optional;
|
||||
package com.ossez.optional;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.optional;
|
||||
package com.ossez.optional;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.equalTo;
|
||||
import static org.junit.Assert.assertFalse;
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.reflection;
|
||||
package com.ossez.reflection;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
|
@ -32,23 +32,23 @@ public class ReflectionUnitTest {
|
|||
final Class<?> clazz = goat.getClass();
|
||||
|
||||
assertEquals("Goat", clazz.getSimpleName());
|
||||
assertEquals("com.baeldung.reflection.Goat", clazz.getName());
|
||||
assertEquals("com.baeldung.reflection.Goat", clazz.getCanonicalName());
|
||||
assertEquals("Goat", clazz.getName());
|
||||
assertEquals("Goat", clazz.getCanonicalName());
|
||||
}
|
||||
|
||||
@Test
|
||||
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("com.baeldung.reflection.Goat", clazz.getName());
|
||||
assertEquals("com.baeldung.reflection.Goat", clazz.getCanonicalName());
|
||||
assertEquals("Goat", clazz.getName());
|
||||
assertEquals("Goat", clazz.getCanonicalName());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenClass_whenRecognisesModifiers_thenCorrect() throws ClassNotFoundException {
|
||||
final Class<?> goatClass = Class.forName("com.baeldung.reflection.Goat");
|
||||
final Class<?> animalClass = Class.forName("com.baeldung.reflection.Animal");
|
||||
final Class<?> goatClass = Class.forName("com.ossez.reflection.Goat");
|
||||
final Class<?> animalClass = Class.forName("com.ossez.reflection.Animal");
|
||||
final int goatMods = goatClass.getModifiers();
|
||||
final int animalMods = animalClass.getModifiers();
|
||||
|
||||
|
@ -81,8 +81,8 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
public void givenClass_whenGetsImplementedInterfaces_thenCorrect() throws ClassNotFoundException {
|
||||
final Class<?> goatClass = Class.forName("com.baeldung.reflection.Goat");
|
||||
final Class<?> animalClass = Class.forName("com.baeldung.reflection.Animal");
|
||||
final Class<?> goatClass = Class.forName("com.ossez.reflection.Goat");
|
||||
final Class<?> animalClass = Class.forName("com.ossez.reflection.Animal");
|
||||
final Class<?>[] goatInterfaces = goatClass.getInterfaces();
|
||||
final Class<?>[] animalInterfaces = animalClass.getInterfaces();
|
||||
|
||||
|
@ -94,16 +94,16 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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();
|
||||
|
||||
assertEquals(1, constructors.length);
|
||||
assertEquals("com.baeldung.reflection.Goat", constructors[0].getName());
|
||||
assertEquals("Goat", constructors[0].getName());
|
||||
}
|
||||
|
||||
@Test
|
||||
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 List<String> actualFields = getFieldNames(fields);
|
||||
|
@ -114,7 +114,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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 List<String> actualMethods = getMethodNames(methods);
|
||||
|
||||
|
@ -124,7 +124,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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();
|
||||
|
||||
assertEquals(3, constructors.length);
|
||||
|
@ -132,7 +132,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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(String.class);
|
||||
birdClass.getConstructor(String.class, boolean.class);
|
||||
|
@ -140,7 +140,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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<?> cons2 = birdClass.getConstructor(String.class);
|
||||
|
@ -159,7 +159,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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();
|
||||
assertEquals(1, fields.length);
|
||||
assertEquals("CATEGORY", fields[0].getName());
|
||||
|
@ -168,7 +168,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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");
|
||||
assertEquals("CATEGORY", field.getName());
|
||||
|
||||
|
@ -176,7 +176,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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();
|
||||
assertEquals(1, fields.length);
|
||||
assertEquals("walks", fields[0].getName());
|
||||
|
@ -184,7 +184,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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");
|
||||
assertEquals("walks", field.getName());
|
||||
|
||||
|
@ -192,14 +192,14 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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();
|
||||
assertEquals("boolean", fieldClass.getSimpleName());
|
||||
}
|
||||
|
||||
@Test
|
||||
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 Field field = birdClass.getDeclaredField("walks");
|
||||
field.setAccessible(true);
|
||||
|
@ -216,7 +216,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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");
|
||||
field.setAccessible(true);
|
||||
|
||||
|
@ -225,7 +225,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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 List<String> methodNames = getMethodNames(methods);
|
||||
|
||||
|
@ -235,7 +235,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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> expectedMethodNames = Arrays.asList("setWalks", "walks", "getSound", "eats");
|
||||
|
@ -258,7 +258,7 @@ public class ReflectionUnitTest {
|
|||
|
||||
@Test
|
||||
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 Method setWalksMethod = birdClass.getDeclaredMethod("setWalks", boolean.class);
|
||||
final Method walksMethod = birdClass.getDeclaredMethod("walks");
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.version;
|
||||
package com.ossez.version;
|
||||
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.assertj.core.api.Assertions;
|
Loading…
Reference in New Issue