Skip to content

Commit 066d695

Browse files
committed
Added unit test
1 parent 198d8ef commit 066d695

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

  • gocwebtemplate-core/gocwebtemplate-core-base/src
  • gocwebtemplate-sample-jsp/src/main/resources/goc/webtemplate/global/config

gocwebtemplate-core/gocwebtemplate-core-base/src/main/java/goc/webtemplate/component/AbstractCoreBean.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,7 @@ public void setCustomFooterSections(ArrayList<FooterSection> value) {
14591459
* can be overriden programatically.
14601460
*/
14611461
public boolean getHidePlaceholderMenu() {
1462+
this.initializeOnce();
14621463
return this.hidePlaceholderMenu;
14631464
}
14641465

gocwebtemplate-core/gocwebtemplate-core-base/src/test/java/goc/webtemplate/component/abstractcorebeantest/RenderTopTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,13 @@ public void testGcToolsModalThrowsExceptionInGcWeb() {
4848
sut.getRenderTop();
4949
});
5050
}
51+
52+
@Test
53+
public void testHidePlaceholderMenuTrueRenders() {
54+
AbstractCoreBeanImpl sut = new AbstractCoreBeanImpl();
55+
56+
sut.setHidePlaceholderMenu(true);
57+
58+
assertTrue(sut.getRenderTop().contains("\"hidePlaceholderMenu\":true"));
59+
}
5160
}

gocwebtemplate-sample-jsp/src/main/resources/goc/webtemplate/global/config/cdn.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ cdn_localdev_localpath=/GoCWebTemplateSampleJSP/loadtesting/app/cls/WET/{0}/{1}/
2929
#(blank values for theme, subtheme and version will use defaults from internal environment configuration)
3030
wettemplate_theme=
3131
wettemplate_subtheme=
32-
wettemplate_version=v4_0_46
32+
wettemplate_version=
3333
wettemplate_loadjqueryfromgoogle=false
3434
webtemplate_usehttps=true
3535
#

0 commit comments

Comments
 (0)