mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 02:05:56 +01:00
23 lines
669 B
Java
23 lines
669 B
Java
package at.pcgamingfreaks.mkvaudiosubtitlechanger.util;
|
|
|
|
import org.junit.jupiter.api.Disabled;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import java.util.Date;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
@Disabled
|
|
class DateUtilsTest {
|
|
|
|
@Test
|
|
void convert() {
|
|
Date expectedDate = new Date(0);
|
|
String expectedString = "01.01.1970-01:00:00";
|
|
|
|
assertEquals(expectedDate, DateUtils.convert(0));
|
|
assertEquals(expectedDate, DateUtils.convert(expectedString, expectedDate));
|
|
assertEquals(expectedDate, DateUtils.convert("1234;15", expectedDate));
|
|
assertEquals(expectedString, DateUtils.convert(expectedDate));
|
|
}
|
|
} |