19 lines
545 B
19 lines
545 B
![]()
8 years ago
|
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));
|
||
|
}
|
||
|
|
||
|
}
|