Checkstyle rules for imports and cleanup

Fixes #529

- enforced Spring Framework ordering rules
- disallowed static imports except for specific classes in test frameworks
This commit is contained in:
Marius Bogoevici
2016-05-11 21:50:19 -04:00
parent 8274d48cad
commit a974ff7773
60 changed files with 330 additions and 332 deletions

View File

@@ -16,8 +16,8 @@
package org.springframework.cloud.stream.test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -35,8 +35,8 @@ import org.springframework.messaging.support.GenericMessage;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
/**
* Integration test that validates that {@link org.springframework.cloud.stream.test.binder.TestSupportBinder} applies

View File

@@ -16,9 +16,6 @@
package org.springframework.cloud.stream.test.matcher;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import java.util.Collections;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;
@@ -30,6 +27,9 @@ import org.junit.Test;
import org.springframework.messaging.Message;
import org.springframework.messaging.support.GenericMessage;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
/**
* Tests for MessageQueueMatcher.
*