(chore) cleanup

This commit is contained in:
Andreas Penski (init) 2020-08-21 10:12:47 +02:00
parent 7a8635eba2
commit fff5c256fa
2 changed files with 5 additions and 2 deletions

View file

@ -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 {

View file

@ -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);
}
} }