mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
(chore) cleanup
This commit is contained in:
parent
7a8635eba2
commit
fff5c256fa
2 changed files with 5 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ import static org.apache.commons.lang3.StringUtils.isNotEmpty;
|
||||||
import org.apache.commons.io.FilenameUtils;
|
import org.apache.commons.io.FilenameUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -15,7 +14,6 @@ import lombok.Setter;
|
||||||
*
|
*
|
||||||
* @author Andreas Penski
|
* @author Andreas Penski
|
||||||
*/
|
*/
|
||||||
@Getter
|
|
||||||
@Setter
|
@Setter
|
||||||
public class DefaultNamingStrategy implements NamingStrategy {
|
public class DefaultNamingStrategy implements NamingStrategy {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,4 +58,9 @@ public class DefaultNamingStrategyTest {
|
||||||
strategy.setPrefix(null);
|
strategy.setPrefix(null);
|
||||||
assertThat(strategy.createName("test.ext")).isEqualTo("test.ext-postfix.xml");
|
assertThat(strategy.createName("test.ext")).isEqualTo("test.ext-postfix.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(expected = IllegalArgumentException.class)
|
||||||
|
public void testEmptyInput() {
|
||||||
|
new DefaultNamingStrategy().createName(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue