-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vuu 81 definition as json node #104
Vuu 81 definition as json node #104
Conversation
layout-server/src/main/java/org/finos/vuu/layoutserver/dto/request/LayoutRequestDto.java
Outdated
Show resolved
Hide resolved
layout-server/src/main/java/org/finos/vuu/layoutserver/utils/ObjectNodeConverter.java
Outdated
Show resolved
Hide resolved
layout-server/src/test/java/org/finos/vuu/layoutserver/integration/LayoutIntegrationTest.java
Outdated
Show resolved
Hide resolved
layout-server/src/test/java/org/finos/vuu/layoutserver/integration/LayoutIntegrationTest.java
Outdated
Show resolved
Hide resolved
...ut-server/src/test/java/org/finos/vuu/layoutserver/service/ApplicationLayoutServiceTest.java
Outdated
Show resolved
Hide resolved
...ut-server/src/test/java/org/finos/vuu/layoutserver/service/ApplicationLayoutServiceTest.java
Outdated
Show resolved
Hide resolved
layout-server/src/test/java/org/finos/vuu/layoutserver/integration/LayoutIntegrationTest.java
Outdated
Show resolved
Hide resolved
eea27db
to
6a24965
Compare
427f2db
to
8065a56
Compare
8065a56
to
5911f5f
Compare
layout-server/src/main/java/org/finos/vuu/layoutserver/utils/ObjectNodeConverter.java
Show resolved
Hide resolved
layout-server/src/main/java/org/finos/vuu/layoutserver/utils/ObjectNodeConverter.java
Outdated
Show resolved
Hide resolved
layout-server/src/test/java/org/finos/vuu/layoutserver/integration/LayoutIntegrationTest.java
Outdated
Show resolved
Hide resolved
layout-server/src/main/java/org/finos/vuu/layoutserver/dto/request/LayoutRequestDto.java
Outdated
Show resolved
Hide resolved
layout-server/src/main/java/org/finos/vuu/layoutserver/dto/response/LayoutResponseDto.java
Outdated
Show resolved
Hide resolved
layout-server/src/main/java/org/finos/vuu/layoutserver/dto/request/LayoutRequestDto.java
Show resolved
Hide resolved
|
||
service.persistApplicationLayout(user, definition); | ||
|
||
verify(mockRepo, times(1)) | ||
.save(new ApplicationLayout(user, definition)); | ||
} | ||
|
||
@Test | ||
public void createApplicationLayout_invalidDefinition_throwsJsonException() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test case is not relevant anymore as definition is now an ObjectNode rather than a string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff! Just a very minor thing on wording, but that won't stop me from approving.
@@ -32,14 +39,16 @@ | |||
@ActiveProfiles("test") | |||
public class LayoutIntegrationTest { | |||
|
|||
private static final String DEFAULT_LAYOUT_DEFINITION = "Default layout definition"; | |||
private static final String DEFAULT_LAYOUT_DEFINITION_STRING = "{\"id\":\"main-tabs\"}"; | |||
private static final String DEFAULT_UPDATED_LAYOUT_DEFINITION_STRING = "{\"id\":\"updated-main-tabs\"}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor semantic thing that's not going to stop me from approving: I would remove the word "default" and just call this UPDATED_LAYOUT_DEFINITION_STRING
.
Changes