Skip to content

Commit

Permalink
[tests] Add explicit display names.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 12, 2020
1 parent c9f2c6a commit 7df54ad
Show file tree
Hide file tree
Showing 164 changed files with 378 additions and 4 deletions.
Expand Up @@ -28,6 +28,7 @@
import org.eclipse.xtext.xbase.lib.Procedures;
import org.eclipse.xtext.xbase.lib.Pure;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.docs.doclet.utils.SARLFeatureAccess;
Expand All @@ -48,6 +49,7 @@
* @since 0.7
*/
@SuppressWarnings("all")
@DisplayName("SARLFeatureAccess")
public final class SARLFeatureAccessTest {

private io.sarl.lang.services.SARLGrammarKeywordAccess original;
Expand Down
Expand Up @@ -23,6 +23,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.docs.doclet.utils.Utils;
Expand All @@ -36,6 +37,7 @@
* @since 0.7
*/
@SuppressWarnings("all")
@DisplayName("Utils")
public final class UtilsTest {

@Test
Expand Down
Expand Up @@ -40,6 +40,7 @@
import org.arakhne.afc.vmutil.Resources;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.SARLVersion;
Expand All @@ -57,6 +58,7 @@
* @since 0.10
*/
@SuppressWarnings("all")
@DisplayName("Entry point test")
public class MainTest {

private static final boolean CAPTURE_OUTPUTS = true;
Expand Down
Expand Up @@ -41,6 +41,7 @@
import org.arakhne.afc.vmutil.Resources;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.SARLVersion;
Expand All @@ -58,6 +59,7 @@
* @since 0.10
*/
@SuppressWarnings("all")
@DisplayName("Entry point test")
public class MainTest {

private static final boolean CAPTURE_OUTPUTS = true;
Expand Down
Expand Up @@ -44,6 +44,7 @@ import org.junit.jupiter.api.^extension.ExtendWith

import static io.sarl.tests.api.tools.TestAssertions.*
import static org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Disabled

/**
* Unit test for the issue #794: Spawn function first parameter strange behavior.
Expand All @@ -61,6 +62,7 @@ import static org.junit.jupiter.api.Assertions.*
typeof(SreRunExtension)
])
@DisplayName("run: Bug #794")
@Disabled
@Tag("run")
class Bug794Test {

Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -36,6 +37,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("AgentKilled")
public class AgentKilledTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -36,6 +37,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("AgentSpawned")
public class AgentSpawnedTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -33,6 +33,7 @@
import org.eclipse.xtext.xbase.lib.Functions.Function1;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentMatchers;

Expand All @@ -47,6 +48,7 @@
* @mavenartifactid $ArtifactId$
*/
@SuppressWarnings("all")
@DisplayName("AgentTask")
public class AgentTaskTest extends AbstractSarlTest {

private AgentTask task;
Expand Down
Expand Up @@ -26,6 +26,7 @@

import org.eclipse.xtext.xbase.lib.Functions.Function1;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Behavior;
Expand All @@ -41,6 +42,7 @@
* @mavenartifactid $ArtifactId$
*/
@SuppressWarnings("all")
@DisplayName("Behaviors")
public class BehaviorsTest extends AbstractSarlCoreTest<Capacity> {

@BeforeEach
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Event;
Expand All @@ -35,6 +36,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("ContextJoined")
public class ContextJoinedTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Event;
Expand All @@ -35,6 +36,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("ContextLeft")
public class ContextLeftTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -42,6 +43,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("DefaultContextInteractions")
public class DefaultContextInteractionsTest extends AbstractSarlCoreTest<Capacity> {

/**
Expand Down
Expand Up @@ -23,6 +23,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -34,6 +35,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("Destroy")
public class DestroyTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -26,6 +26,7 @@
import java.util.concurrent.ConcurrentLinkedDeque;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.AgentContext;
Expand All @@ -42,6 +43,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("ExternalContextAccess")
public class ExternalContextAccessTest extends AbstractSarlCoreTest<Capacity> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -37,6 +38,7 @@
* @mavenartifactid $ArtifactId$
*/
@SuppressWarnings("all")
@DisplayName("Initialize")
public class InitializeTest extends AbstractSarlCoreTest<Event> {

@BeforeEach
Expand Down
Expand Up @@ -26,6 +26,7 @@
import java.util.concurrent.ConcurrentSkipListSet;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.AgentContext;
Expand All @@ -40,6 +41,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("InnerContextAccess")
public class InnerContextAccessTest extends AbstractSarlCoreTest<Capacity> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.AgentContext;
Expand All @@ -36,6 +37,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("Lifecycle")
public class LifecycleTest extends AbstractSarlCoreTest<Capacity> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -36,6 +37,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("MemberExcluded")
public class MemberExcludedTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -36,6 +37,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("MemberJoined")
public class MemberJoinedTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -36,6 +37,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("MemberLeft")
public class MemberLeftTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -24,6 +24,7 @@

import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.core.AgentTask;
Expand All @@ -36,6 +37,7 @@
* @mavenartifactid $ArtifactId$
*/
@SuppressWarnings("all")
@DisplayName("Schedules")
public class SchedulesTest extends AbstractSarlCoreTest<Capacity> {

@BeforeEach
Expand Down
Expand Up @@ -23,6 +23,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -35,6 +36,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("SpaceCreated")
public class SpaceCreatedTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -23,6 +23,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.lang.core.Address;
Expand All @@ -35,6 +36,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("SpaceDestroyed")
public class SpaceDestroyedTest extends AbstractSarlCoreTest<Event> {

/**
Expand Down
Expand Up @@ -25,6 +25,7 @@
import java.util.UUID;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.core.UnknownContextException;
Expand All @@ -36,6 +37,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@DisplayName("UnknownContextException")
public class UnknownContextExceptionTest extends AbstractSarlTest {

private UUID id;
Expand Down
Expand Up @@ -33,6 +33,7 @@

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import io.sarl.bootstrap.SRE;
Expand All @@ -47,6 +48,7 @@
* @mavenartifactid $ArtifactId$
*/
@SuppressWarnings("all")
@DisplayName("SRE")
public class SRETest extends AbstractSarlTest {

@BeforeEach
Expand Down

0 comments on commit 7df54ad

Please sign in to comment.