From 174d6fa9dcf843c962326b061dc5d354145d2eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B0=D1=80=D0=B0=D0=B1=D0=B0=D0=BD=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D0=BE=D1=84=D0=B5=D0=B9=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Mon, 28 Aug 2023 13:53:52 +0300 Subject: [PATCH] fix issue #122 --- .../generator/BaseAssertionGenerator.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java b/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java index 7d9cd41e..58e5a69f 100644 --- a/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java +++ b/src/main/java/org/assertj/assertions/generator/BaseAssertionGenerator.java @@ -473,7 +473,9 @@ private String generateAssertionEntryPointMethodsFor(final Set // resolve class (ex: Player) // in case of inner classes like Movie.PublicCategory use class name with outer class i.e. Movie.PublicCategory. assertionEntryPointMethodContent = replace(assertionEntryPointMethodContent, CLASS_TO_ASSERT, - classDescription.getFullyQualifiedClassName()); + generatedAssertionsPackage == null ? + classDescription.getFullyQualifiedAssertClassName() : + generatedAssertionsPackage + "." + classDescription.getAssertClassName()); allAssertThatsContentBuilder.append(lineSeparator).append(assertionEntryPointMethodContent); } @@ -497,7 +499,7 @@ private String determineBestEntryPointsAssertionsClassPackage(final Set