mirror of
https://github.com/octoleo/plantuml.git
synced 2024-06-01 08:00:48 +00:00
31 lines
1001 B
Java
31 lines
1001 B
Java
package net.sourceforge.plantuml.tim.stdlib;
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
import java.util.Collections;
|
|
|
|
import org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores;
|
|
import org.junit.jupiter.api.IndicativeSentencesGeneration;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import net.sourceforge.plantuml.tim.EaterException;
|
|
import net.sourceforge.plantuml.tim.EaterExceptionLocated;
|
|
import net.sourceforge.plantuml.tim.TFunction;
|
|
import net.sourceforge.plantuml.tim.expression.TValue;
|
|
|
|
/**
|
|
* Tests the builtin function.
|
|
*/
|
|
@IndicativeSentencesGeneration(separator = ": ", generator = ReplaceUnderscores.class)
|
|
|
|
class GetAllThemeTest {
|
|
TFunction cut = new GetAllTheme();
|
|
final String cutName = "GetAllTheme";
|
|
|
|
@Test
|
|
void Test_without_Param() throws EaterException, EaterExceptionLocated {
|
|
final TValue tValue = cut.executeReturnFunction(null, null, null, Collections.emptyList(), null);
|
|
assertThat(tValue.toString()).contains("_none_", "amiga", "vibrant");
|
|
}
|
|
}
|