You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package de.joshavg.simpledic;
|
|
|
|
|
|
|
|
import static org.hamcrest.CoreMatchers.is;
|
|
|
|
import static org.hamcrest.MatcherAssert.assertThat;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
public class IntegrityCheckTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void servicesStartWithServiceDot() {
|
|
|
|
assertThat(IntegrityCheck.isServiceName("dingens"), is(false));
|
|
|
|
assertThat(IntegrityCheck.isServiceName("service"), is(false));
|
|
|
|
assertThat(IntegrityCheck.isServiceName("service."), is(false));
|
|
|
|
assertThat(IntegrityCheck.isServiceName("service.a"), is(true));
|
|
|
|
assertThat(IntegrityCheck.isServiceName("service.a.singleton"), is(false));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|