feat: implement swiper slider, tabbed livestream, and table extension plugins with schema updates for settings content
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.sisvietnamvn.web;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.thymeleaf.TemplateEngine;
|
||||
import org.thymeleaf.context.Context;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@SpringBootTest(properties = {"spring.liquibase.enabled=false", "spring.datasource.url=jdbc:h2:mem:testdb"})
|
||||
public class ThymeleafParseTest {
|
||||
|
||||
@Autowired
|
||||
private TemplateEngine templateEngine;
|
||||
|
||||
@Test
|
||||
public void testParse() {
|
||||
try {
|
||||
Context ctx = new Context();
|
||||
List<String> allTables = new ArrayList<>();
|
||||
allTables.add("testTable");
|
||||
ctx.setVariable("allTables", allTables);
|
||||
ctx.setVariable("activeTables", new ArrayList<>());
|
||||
|
||||
String result = templateEngine.process("manage/plugins/table-extension-settings", ctx);
|
||||
System.out.println("TEMPLATE COMPILED SUCCESSFULLY");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user