Skip to content

Commit 48d4e82

Browse files
authored
fix: modify app schema for test (#158)
* fix: update page history bug * fix: format code and fix style issue * fix: modify page histiry entity * feat: add code submission rules * fix: modify app schema for test
1 parent 5df2fec commit 48d4e82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/src/test/java/com/tinyengine/it/service/app/impl/v1/AppV1ServiceImplTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ void testAppSchema() {
107107
int appId = 2;
108108
app.setId(appId);
109109
app.setHomePage(1);
110+
app.setPlatformId(1);
110111
when(appMapper.queryAppById(anyInt())).thenReturn(app);
111112
Page page = new Page();
112113
page.setIsPage(true);
@@ -141,6 +142,7 @@ void testMergeEntries() {
141142
@Test
142143
void testGetMetaDto() {
143144
App app = new App();
145+
app.setPlatformId(1);
144146
when(appMapper.queryAppById(anyInt())).thenReturn(app);
145147
when(i18nEntryMapper.findI18nEntriesByHostandHostType(anyInt(), anyString()))
146148
.thenReturn(Arrays.asList(new I18nEntryDto()));

0 commit comments

Comments
 (0)