Releases: ImSejin/common-utils
Releases Β· ImSejin/common-utils
v0.14.0
v0.13.0
v0.12.0
v0.11.0
v0.10.0
v0.9.0
v0.8.0
Modification
- π Move: all methods in
TypeClassifier
toClassUtils
- π Move: package
tool.crypto
tosecurity.crypto
- π Move: pacakge of
ClassAssert
,PackageAssert
fromassertion.reflect
toassertion.lang
- π Move: pacakge of
ArrayAssert
fromassertion.array
toassertion.lang
- π Move: pacakge of
StringAssert
fromassertion.chars
toassertion.lang
- π Move: pacakge of
BooleanAssert
,CharacterAssert
,DoubleAssert
,FloatAssert
,NumberAssert
fromassertion.primitive
toassertion.lang
- π₯ Remove: methods
instantiate(Class, Class[], Object[])
,invoke(Class, Object, String, Class[], Object[])
inReflectionUtils
- π₯ Remove: redundant annotation
@Nonnull
on parameter - β»οΈ Replace: methods
box
withwrap(Object)
inArrayUtils
- β»οΈ Replace: methods
unbox
withunwrap(Object)
inArrayUtils
- β»οΈ Replace:
assertion.DecimalNumberAssertion
withassertion.composition.DecimalNumberAssertion
- β»οΈ Replace:
assertion.object.AbstractObjectAssert
withassertion.lang.ObjectAssert
- β»οΈ Replace:
assertion.chars.AbstractCharSequenceAssert
withassertion.lang.CharSequenceAssert
- β»οΈ Replace:
assertion.time.OffsetAssertion
withassertion.composition.OffsetAssertable
- β»οΈ Replace:
assertion.time.YearAssertion
withassertion.composition.YearAssertable
- β»οΈ Replace:
assertion.collection.AbstractCollectionAssert
withassertion.util.CollectionAssert
- β»οΈ Replace:
assertion.map.AbstractMapAssert
withassertion.util.MapAssert
- β¨ Support: multiple-dimensional array by
wrap(Object)
,unwrap(Object)
inArrayUtils
- β¨ Support: array by
wrap(Class)
,unwrap(Class)
inClassUtils
- β¨ Support: recursive conversion on method
ArrayUtils#toString(Object)
- β‘οΈ Improve: method
getInheritedFields(Class)
inReflectionUtils
- β‘οΈ Improve: formatting for array on
Descriptor
- β‘οΈ Integrate:
ArrayAssert
,CollectionAssert
withIterationAssertable
- ποΈ Deprecate:
Descriptor#equals(Object)
New features
- π¦οΈ Add: package
model.graph.traverse
- β¨ Add: model
Graph
(implementation:DirectedGraph
,UndirectedGraph
) - β¨ Add: security model
Verification
- β¨ Add: assertion composition
IterationAssertable
- β¨ Add: variable
EMPTY_ARRAY_MAP
inArrayUtils
- β¨ Add: method
StringUtils#indexOfCurrentClosingBracket(String, int, char, char)
- β¨ Add: method
InstantAssert#asEpochMilli()
- β¨ Add: methods
asSecondOfDay()
,asNanoOfDay()
inLocalTimeAssert
- β¨ Add: methods
asValue()
,asLength()
inYearAssert
- β¨ Add: methods
asYear()
,asMonthValue()
inYearMonthAssert
- β¨ Add: methods
getAllExtendedOrImplementedTypesAsSet(Class)
,getAllExtendedOrImplementedTypesAsGraph(Class)
,resolveActualTypes(Type)
inClassUtils
- β¨ Add: methods
resolveArrayType(Class, int)
,resolveActualComponentType(Class)
,dimensionOf(Class)
inArrayUtils
- β¨ Add: methods
instantiate(Constructor, Object...)
,invoke(Method, Object, Object[])
,execute(Executable, Object, Object[])
inReflectionUtils
Troubleshooting
- ποΈ Fix: security issues on reflection
- π Fix: wrong computation in
ArrayUtils#toString(Object)
- π Fix: wrong type inference in
AbstractObjectAssert
- π Fix: wrong type inference in
ArrayAssert
Dependencies
- β¬οΈ Upgrade: dependency
gson
from2.8.7
to2.9.0
- β¬οΈ Upgrade: test dependency
junit5
from5.8.1
to5.8.2
- β¬οΈ Upgrade: test dependency
assertj-core
from3.21.0
to3.22.0
- β¬οΈ Upgrade: test dependency
spock-core
from2.0-groovy-3.0
to2.1-groovy-3.0
- β¬οΈ Upgrade: build dependency
maven-compiler-plugin
from3.8.1
to3.10.1
- β¬οΈ Upgrade: build dependency
maven-jar-plugin
from3.2.0
to3.2.2
- β¬οΈ Upgrade: build dependency
gmavenplus-plugin
from1.13.0
to1.13.1
- β¬οΈ Upgrade: build dependency
jacoco-maven-plugin
from0.8.7
to0.8.8
v0.7.1
Modification
- β‘οΈ Improve: type inference of
AbstractObjectAssert
New features
- β¨ Add: method
ordinalIndexOf(String, char, int)
inStringUtils
- β¨ Add: protected method
merge(Descriptor, Descriptor)
inDescriptor
- β¨ Add: method
asName()
inAbstractFileAssert
Troubleshooting
- π Fix: wrong computation of
ReflectionUtils#getInheritedFields(Class)
on groovy class - π Fix: wrong computation to sustain states when convert to other assertion
- π Fix: wrong assertion of
hasName(String)
,hasExtension(String)
inAbstractFileAssert
- π Fix: wrong assertion of
isEqualTo(BigDecimal)
,isNotEqualTo(BigDecimal)
inBigDecimalAssert
v0.7.0
Modification
- π Move: package of classes
AbstractChrono*Assert
toio.github.imsejin.common.assertion.time.chrono
- π₯ Remove: methods
anyNullOrBlank(Collection)
,allNullOrBlank(Collection)
inStringUtils
- π₯ Remove: methods
toPositive
,toNegative
that has a parameter as primitive type inNumberUtils
- β»οΈ Change: default description for assertions
AbstractObjectAssert
,AbstractCharSequenceAssert
,AbstractChronoLocalDateAssert
,AbstractChronoLocalDateTimeAssert
,AbstractChronoZonedDateTimeAssert
,LocalTimeAssert
,OffsetDateTimeAssert
,OffsetTimeAssert
- β»οΈ Change: some generic type of
AbstractMapAssert
,AbstractChronoLocalDateAssert
,AbstractChronoLocalDateTimeAssert
,AbstractChronoZonedDateTimeAssert
,LocalTimeAssert
,OffsetDateTimeAssert
,OffsetTimeAssert
- β»οΈ Change: default assertion descriptions as variables
- β»οΈ Change: method
anyContains(String, Collection)
toanyContains(String, Iterable)
inStringUtils
- β»οΈ Change: parameter of methods
box
,unbox
to be non-null inArrayUtils
- β»οΈ Replace: method
baseName(File)
withgetBaseName(String)
inFilenameUtils
- β»οΈ Replace: method
extension(File)
withgetExtension(String)
inFilenameUtils
- β»οΈ Replace: method
formatComma(long)
withformatComma(double)
inStringUtils
- β»οΈ Replace: methods
isNullOrEmpty
withisNullOrEmpty(Object)
inArrayUtils
- β»οΈ Replace: methods
exists
withexists(Object)
inArrayUtils
- β‘οΈ Improve: architecture of time assertions with extension of class
AbstractTemporalAssert
- β‘οΈ Improve: performance of
anyEquals(String, Collection)
inStringUtils
New features
- β¨ Support: assertions for
BigInteger
,BigDecimal
- β¨ Add: assertions
InstantAssert
,YearAssert
,YearMonthAssert
- β¨ Add: abstract assertion
AbstractTemporalAssert
- β¨ Add: interfaces
YearAssertion
,OffsetAssertion
for assertion - β¨ Add: method
asInstant()
toAbstractChronoLocalDateTimeAssert
,AbstractChronoZonedDateTimeAssert
,OffsetDateTimeAssert
- β¨ Add: method
isOdd(BigInteger)
inMathUtils
- β¨ Add: method
download(URL, File)
inFileUtils
- β¨ Add: methods
ifNullOrEmpty(Collection, Collection)
,ifNullOrEmpty(Collection, Supplier)
,exists(Map)
inCollectionUtils
Dependencies
- β Remove: useless build dependency
maven-dependency-plugin
- β¬οΈ Upgrade: test dependency
junit5
from5.7.2
to5.8.1
- β¬οΈ Upgrade: test dependency
assertj-core
from3.20.2
to3.21.0
- β¬οΈ Upgrade: test dependency
lombok
from1.18.20
to1.18.22
- β¬οΈ Upgrade: build dependency
maven-javadoc-plugin
from3.2.0
to3.3.1
- β¬οΈ Upgrade: build dependency
maven-gpg-plugin
from1.6
to3.0.1
- β¬οΈ Upgrade: build dependency
maven-gmavenplus-plugin
from1.12.1
to1.13.0
Troubleshooting
- π Fix: wrong type inference in
AbstractMapAssert
- π Fix: wrong assertion condition of
isNotSameSize(Map)
inAbstractMapAssert
- π Fix: wrong default description when array is multi-dimensional
- π Fix: wrong comparison in
NumberUtils#hasDecimalPart(BigDecimal)
Full Changelog: 0.6.0...0.7.0
v0.6.0
Modification
- π Move: method
hasDecimalPart(double)
fromMathUtils
toNumberUtils
- π Rename: constant
OperatingSystem
toOS
- π Rename: method
toWrapper(Class)
tobox(Class)
inTypeClassifier
- π Rename: method
toPrimitive(Class)
tounbox(Class)
inTypeClassifier
- π Rename: method
toWrapper
tobox
inArrayUtils
- π Rename: method
toPrimitive
tounbox
inArrayUtils
- π₯ Remove: methods
getKeywords()
,contains(String)
,of(String)
inOperatingSystem
- β»οΈ Refactor: tool
Stopwatch
- β»οΈ Change: method from
containsAny(Object...)
tocontainsAny(Object, Object...)
inArrayAssert
New features
- β¨ Add: tool
ClassFinder
- β¨ Add: utility
ReflectionUtils
- β¨ Add: interface for two way ecryption
Crypto
- β¨ Add: classes
AES128
,AES192
,AES256
that are implemetations ofCrypto
- β¨ Add: method
getTimeUnit()
inStopwatch
- β¨ Add: method
prepend(Object[], Object...)
,append(Object[], Object...)
inArrayUtils
- β¨ Add: methods
findAllFiles(Path)
,deleteRecursively(Path, FileVisitOption...)
inFileUtils
- β¨ Add: methods
isSuperclass(Class, Class)
,initialValueOf(Class)
inClassUtils
- β¨ Add: methods
reverse(long)
,reverse(BigInteger)
,hasDecimalPart(BigDecimal)
inNumberUtils
- β¨ Add: methods
getCurrentOs()
,isCurrentOs()
inOS
- β¨ Add: method
containsAny(T, T...)
inAbstractCollectionAssert
- β¨ Add: method
doesNotContainNull()
inArrayAssert
,AbstractCollectionAssert
- β¨ Add: methods
isBetween(NUMBER, NUMBER)
,isStrictlyBetween(NUMBER, NUMBER)
,isCloseTo(NUMBER, double)
inNumberAssert
- β¨ Add: conversion methods in some assertion classes
- β¨ Add: default description for some assertion classes
Troubleshooting
- π Fix: wrong assertion condition of
isNotSameLength(CharSequence)
inAbstractCharSequenceAssert
- π Fix: wrong assertion condition of
isLetter()
,isLetterOrDigit()
,isUppercase()
,isLowercase()
,isAlphabetic()
,startsWith(String)
,endsWith(String)
,contains(String)
inStringAssert