fix: 单元测试
parent
3732659cee
commit
941709d154
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.czcb.scfs.api.core.exception;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Assertions;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
class ZipExceptionTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void test() {
|
||||||
|
Assertions.assertThrows(ZipException.class, () -> {
|
||||||
|
throw new ZipException();
|
||||||
|
});
|
||||||
|
|
||||||
|
Assertions.assertThrows(ZipException.class, () -> {
|
||||||
|
throw new ZipException("");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue