Skip to content

Commit

Permalink
update of com.github.ben-manes.versions.gradle.plugin to new version …
Browse files Browse the repository at this point in the history
…0.49.0

- update of gradle-plugin dependency 'org.ajoberstar.grgit:grgit-gradle' to new version 5.2.1
- update of gradle-plugin dependency of 'com.diffplug.spotless:spotless-plugin-gradle' in version 6.22.0
- update of dependency jobj-reflect to new major version 2.4
- update of dependency jobj-copy to new minor version 4.2-SNAPSHOT
  • Loading branch information
astrapi69 committed Nov 5, 2023
1 parent b3d246d commit 98ffdc3
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 19 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
Version 10.2-SNAPSHOT
-------------

CHANGED:

- update of com.github.ben-manes.versions.gradle.plugin to new version 0.49.0
- update of gradle-plugin dependency 'org.ajoberstar.grgit:grgit-gradle' to new version 5.2.1
- update of gradle-plugin dependency of 'com.diffplug.spotless:spotless-plugin-gradle' in version 6.22.0
- update of dependency jobj-reflect to new major version 2.4
- update of dependency jobj-copy to new minor version 4.2-SNAPSHOT

Version 10.1
-------------
Expand Down
18 changes: 9 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,28 @@ projectRepositoriesPasswordKey=ossrhPassword
###########################
# gradle-plugins versions #
###########################
gradlePluginVersionsVersion=0.48.0
gradlePluginVersionsVersion=0.49.0
licenseGradlePluginVersion=0.16.1
grgitGradlePluginVersion=5.2.0
spotlessGradlePluginVersion=6.21.0
grgitGradlePluginVersion=5.2.1
spotlessGradlePluginVersion=6.22.0
#########################
# dependencies versions #
#########################
jobjCoreVersion=8
jobjReflectVersion=2
jobjCoreVersion=8.1
jobjReflectVersion=2.4
sillyCollectionVersion=27
vintageTimeVersion=6
sillyMathVersion=2.2
jobjCopyVersion=4.1
jobjCopyVersion=4.2-SNAPSHOT
##############################
# test dependencies versions #
##############################
commonsLang3Version=3.13.0
sillyStringsVersion=8.2
sillyStringsVersion=9
meanbeanVersion=2.0.3
testngVersion=7.8.0
testObjectVersion=7.2
equalsverifierVersion=3.15.1
testObjectVersion=8.1
equalsverifierVersion=3.15.2
##########################
# for deploy on sonatype #
##########################
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Wed Jan 22 15:59:51 CET 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import io.github.astrapi69.random.number.RandomIntFactory;
import io.github.astrapi69.random.number.RandomLongFactory;
import io.github.astrapi69.random.number.RandomShortFactory;
import io.github.astrapi69.reflection.InstanceFactory;
import io.github.astrapi69.reflection.ReflectionExtensions;

/**
Expand Down Expand Up @@ -135,7 +136,7 @@ public static <T> T newRandomObject(final Class<T> cls, String... ignoreFieldNam
throws IllegalAccessException, InstantiationException, NoSuchFieldException
{
Objects.requireNonNull(cls);
T instance = ReflectionExtensions.newInstance(cls);
T instance = InstanceFactory.newInstance(cls);
return setRandomValues(cls, instance, ignoreFieldNames);
}

Expand All @@ -162,8 +163,7 @@ public static <T> T newRandomObject(final Class<T> cls, String... ignoreFieldNam
*/
@SuppressWarnings("unchecked")
public static <T> T newRandomObject(final T obj, String... ignoreFieldNames)
throws IllegalAccessException, InstantiationException, NoSuchFieldException,
ClassNotFoundException
throws IllegalAccessException, InstantiationException, NoSuchFieldException
{
Objects.requireNonNull(obj);
Class<T> cls = (Class<T>)obj.getClass();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

import org.testng.annotations.Test;

import io.github.astrapi69.AbstractTestCase;
import io.github.astrapi69.test.base.AbstractTestCase;


/**
* The unit test class for the class {@link RandomCharacters}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import io.github.astrapi69.BaseTestCase;
import io.github.astrapi69.random.util.PropertiesLoader;
import io.github.astrapi69.string.StringExtensions;
import io.github.astrapi69.test.base.BaseTestCase;

/**
* The unit test class for the class {@link RandomAddressExtensions}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import io.github.astrapi69.BaseTestCase;
import io.github.astrapi69.string.StringExtensions;
import io.github.astrapi69.test.base.BaseTestCase;

/**
* The unit test class for the class {@link RandomNumberExtensions}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import io.github.astrapi69.test.object.EmployeeList;
import io.github.astrapi69.test.object.Person;
import io.github.astrapi69.test.object.PrimitiveArrays;
import io.github.astrapi69.test.object.enumtype.Gender;
import io.github.astrapi69.test.object.enumeration.Gender;

/**
* The unit test class for the class {@link RandomObjectFactory}
Expand Down Expand Up @@ -262,7 +262,7 @@ public void testRandomEnumNull()
@Test
public void testRandomEnumString()
{
String enumClassName = "io.github.astrapi69.test.object.enumtype.Gender";
String enumClassName = "io.github.astrapi69.test.object.enumeration.Gender";
Gender randomEnumEntry = RandomObjectFactory.randomEnumFromClassname(enumClassName);

final Gender[] genders = Gender.values();
Expand Down Expand Up @@ -433,6 +433,7 @@ public void testNewRandomObjectWithObject() throws IllegalAccessException,
Person person2 = RandomObjectFactory.newRandomObject(person, "$jacocoData");
assertNotNull(person2);
assertNotEquals(person, person2);
// TODO after update of test-object version uncomment
PrimitiveArrays primitiveArrays = RandomObjectFactory.newRandomObject(PrimitiveArrays.class,
"$jacocoData");
assertNotNull(primitiveArrays);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import io.github.astrapi69.BaseTestCase;
import io.github.astrapi69.random.RandomCharacters;
import io.github.astrapi69.test.base.BaseTestCase;

/**
* The unit test class for the class {@link RandomWebObjectFactory}.
Expand Down

0 comments on commit 98ffdc3

Please sign in to comment.