mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-06-16 23:22:23 +00:00
- auto refresh function - light and dark theme - monaco editor (vscode) with "apex" as syntax highlighting language * apex seems to work quite fine (better than no highlighting) * future possibility: own plantuml language syntax support * future possibility: autocomplete (to much work but maybe partial) - implemented example for `!theme ...` - implemented example for `<&icon>` * future possibility: code validation - implemented example for `@start...` and `@end...`: * should be the first or last command * should be of the some type (e.g. `@startyaml` and @endyaml) * should be used exactly once per document/diagram - editor and preview is splitable into two windows like the "Extract window" functionality on (plantuml.com)[https://www.plantuml.com/plantuml] - multi index / multi paging diagram support - diagram can be displayed/rended as PNG, SVG, ASCII Art or PDF - Ctrl+s download the PlantUML Code as code file (diagram.puml) - Ctrl+, opens the settings and Esc closes the settings
21 lines
590 B
Java
21 lines
590 B
Java
package net.sourceforge.plantuml.servlet;
|
|
|
|
import java.io.IOException;
|
|
import java.net.URL;
|
|
|
|
import net.sourceforge.plantuml.servlet.utils.WebappTestCase;
|
|
|
|
|
|
public class TestLanguage extends WebappTestCase {
|
|
|
|
/**
|
|
* Tests that the language for the current PlantUML server can be obtained through HTTP
|
|
*/
|
|
public void testRetrieveLanguage() throws IOException {
|
|
final URL url = new URL(getServerUrl() + "/language");
|
|
String languageText = getContentText(url);
|
|
assertTrue("Language contains @startuml", languageText.indexOf("@startuml") > 0);
|
|
}
|
|
|
|
}
|