Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Merge 7c5b473 into c8197c1
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedFarouk-HMCTS committed Jul 3, 2018
2 parents c8197c1 + 7c5b473 commit 4247553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void shouldGenerateClassWithMapForAdditionalPropertiesIfAdditionalPropert


final PojoGeneratorProperties generatorProperties = pojoGeneratorPropertiesBuilder()
.withRootClassName("StudentPojoWithBuilder")
.withRootClassName("StudentPojoWithBuilderAdditionalProperties")
.build();

final List<Class<?>> newClasses = generatorUtil
Expand All @@ -55,9 +55,9 @@ public void shouldGenerateClassWithMapForAdditionalPropertiesIfAdditionalPropert

final Class<?> studentClass = newClasses.get(0);

final Object studentBuilder = studentClass.getMethod("studentPojoWithBuilder").invoke(null);
final Object studentBuilder = studentClass.getMethod("studentPojoWithBuilderAdditionalProperties").invoke(null);

assertThat(studentBuilder.getClass().getName(), is("uk.gov.justice.events.pojo.builder.StudentPojoWithBuilder$Builder"));
assertThat(studentBuilder.getClass().getName(), is("uk.gov.justice.events.pojo.builder.StudentPojoWithBuilderAdditionalProperties$Builder"));

final String firstName = "Molly";
final String lastName = "O'Golly";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"id": "http://justice.gov.uk/events/pojo/builder/student-pojo-with-builder.json",
"id": "http://justice.gov.uk/events/pojo/builder/student-pojo-with-builder-additional-properties.json",
"properties": {
"firstName": {
"type": "string"
Expand Down

0 comments on commit 4247553

Please sign in to comment.