app/src/test/java/com/davidmiguel/gobees/data/model/MeteoRecordTest.java
Method meteoRecordTest
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void meteoRecordTest() {
MeteoRecord meteoRecord = new MeteoRecord();
// Id
meteoRecord.setId(1);
Using the '.*' form of import should be avoided - org.junit.Assert.*. Open
Open
import static org.junit.Assert.*;
- Read upRead up
- Exclude checks
Checks that there are no import statements that use the *
notation.
Rationale: Importing all classes from a package or staticmembers from a class leads to tight coupling between packagesor classes and might lead to problems when a new version of alibrary introduces name clashes.
This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.