Skip to content
Permalink
Browse files
removing warnings
  • Loading branch information
myrle-krantz committed Jul 13, 2017
1 parent b2de3af commit dd9777018c0ca2452bb14194a82e1b9018441090
Showing 4 changed files with 11 additions and 12 deletions.
@@ -77,14 +77,14 @@ public Logger logger() {
@ClassRule
public static CassandraInitializer cassandraInitializer = new CassandraInitializer();

@SuppressWarnings({"SpringAutowiredFieldsWarningInspection", "SpringJavaAutowiringInspection", "SpringJavaAutowiredMembersInspection"})
@SuppressWarnings("SpringAutowiredFieldsWarningInspection")
@Autowired
Example example;
private Example example;

@SuppressWarnings("SpringAutowiredFieldsWarningInspection")
@Autowired
@Qualifier(value = LOGGER_QUALIFIER)
Logger logger;
private Logger logger;

@Test
public void testBrokenToken()
@@ -108,7 +108,7 @@ public void testBrokenToken()
anubis.createSignatureSet(keyTimestamp, signature);
}

Assert.assertFalse("A call with a broken token should result in an exception thrown.", true);
Assert.fail("A call with a broken token should result in an exception thrown.");
} catch (final InvalidTokenException e) {
Assert.assertFalse("Service init code should not have been reached with a broken token.",
example.initialized());
@@ -84,10 +84,9 @@ public Logger logger() {
@Rule
public final TenantApplicationSecurityEnvironmentTestRule tenantApplicationSecurityEnvironment = new TenantApplicationSecurityEnvironmentTestRule(testEnvironment);


@SuppressWarnings({"SpringAutowiredFieldsWarningInspection", "SpringJavaAutowiringInspection", "SpringJavaAutowiredMembersInspection"})
@SuppressWarnings("SpringAutowiredFieldsWarningInspection")
@Autowired
Example example;
private Example example;

@Test
public void readPermissionShouldWorkToRead()
@@ -64,7 +64,7 @@ public Logger logger() {
@SuppressWarnings("SpringAutowiredFieldsWarningInspection")
@Autowired
@Qualifier(value = LOGGER_QUALIFIER)
Logger logger;
private Logger logger;

private final static TestEnvironment testEnvironment = new TestEnvironment(APP_NAME);
private final static CassandraInitializer cassandraInitializer = new CassandraInitializer();
@@ -79,13 +79,13 @@ public Logger logger() {
public final TenantApplicationSecurityEnvironmentTestRule tenantApplicationSecurityEnvironment
= new TenantApplicationSecurityEnvironmentTestRule(testEnvironment);

@SuppressWarnings({"SpringAutowiredFieldsWarningInspection", "SpringJavaAutowiringInspection", "SpringJavaAutowiredMembersInspection"})
@SuppressWarnings("SpringAutowiredFieldsWarningInspection")
@Autowired
protected MetricsFeignClient metricsFeignClient;
private MetricsFeignClient metricsFeignClient;

@SuppressWarnings({"SpringAutowiredFieldsWarningInspection", "SpringJavaAutowiredMembersInspection"})
@SuppressWarnings("SpringAutowiredFieldsWarningInspection")
@Autowired
Example example;
private Example example;


@Test

0 comments on commit dd97770

Please sign in to comment.