test: added unit test

This commit is contained in:
dancingCycle 2022-01-05 12:35:23 -05:00
parent c256048f6a
commit 15c8313cb1
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package de.swingbe.ifleet;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Test telegram parsing.
* <p>
* Note that this class is package-private, so that the client can not use it.
*/
class TelegramParserImplTest {
private final TelegramParserImpl parser = new TelegramParserImpl();
@Test
void padLeft() {
assertThat(parser.parse("TODO"))
.isEqualTo("to be done");
}
}