mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 01:27:35 +01:00
Fixed some redundant casts and definitions
This commit is contained in:
parent
47b1d00ccf
commit
1dd540b9c0
@ -97,7 +97,7 @@ public class Log4JFilterTest {
|
|||||||
@Test
|
@Test
|
||||||
public void shouldFilterSensitiveStringMessage() {
|
public void shouldFilterSensitiveStringMessage() {
|
||||||
// given / when
|
// given / when
|
||||||
Result result = log4JFilter.filter(null, null, null, SENSITIVE_COMMAND, new Object[0]);
|
Result result = log4JFilter.filter(null, null, null, SENSITIVE_COMMAND);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(result, equalTo(Result.DENY));
|
assertThat(result, equalTo(Result.DENY));
|
||||||
@ -106,7 +106,7 @@ public class Log4JFilterTest {
|
|||||||
@Test
|
@Test
|
||||||
public void shouldNotFilterNormalStringMessage() {
|
public void shouldNotFilterNormalStringMessage() {
|
||||||
// given / when
|
// given / when
|
||||||
Result result = log4JFilter.filter(null, null, null, NORMAL_COMMAND, new Object[0]);
|
Result result = log4JFilter.filter(null, null, null, NORMAL_COMMAND);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(result, equalTo(Result.NEUTRAL));
|
assertThat(result, equalTo(Result.NEUTRAL));
|
||||||
@ -115,7 +115,7 @@ public class Log4JFilterTest {
|
|||||||
@Test
|
@Test
|
||||||
public void shouldNotFilterNonCommandStringMessage() {
|
public void shouldNotFilterNonCommandStringMessage() {
|
||||||
// given / when
|
// given / when
|
||||||
Result result = log4JFilter.filter(null, null, null, OTHER_COMMAND, new Object[0]);
|
Result result = log4JFilter.filter(null, null, null, OTHER_COMMAND);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(result, equalTo(Result.NEUTRAL));
|
assertThat(result, equalTo(Result.NEUTRAL));
|
||||||
@ -124,7 +124,7 @@ public class Log4JFilterTest {
|
|||||||
@Test
|
@Test
|
||||||
public void shouldReturnNeutralForNullMessage() {
|
public void shouldReturnNeutralForNullMessage() {
|
||||||
// given / when
|
// given / when
|
||||||
Result result = log4JFilter.filter(null, null, null, null, new Object[0]);
|
Result result = log4JFilter.filter(null, null, null, null);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(result, equalTo(Result.NEUTRAL));
|
assertThat(result, equalTo(Result.NEUTRAL));
|
||||||
@ -211,7 +211,7 @@ public class Log4JFilterTest {
|
|||||||
@Test
|
@Test
|
||||||
public void shouldNotFilterNullMessage() {
|
public void shouldNotFilterNullMessage() {
|
||||||
// given / when
|
// given / when
|
||||||
Result result = log4JFilter.filter(null, null, null, (Message) null, new Exception());
|
Result result = log4JFilter.filter(null, null, null, null, new Exception());
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(result, equalTo(Result.NEUTRAL));
|
assertThat(result, equalTo(Result.NEUTRAL));
|
||||||
|
Loading…
Reference in New Issue
Block a user