mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Applies Google Styleguide to Java parts of the library (#23)
This was partially applied to simulation but simulation is a bit of a mess and has a lot of duplicated code.
This commit is contained in:
committed by
Peter Johnson
parent
64ab6e51fe
commit
a834fff7b2
@@ -7,27 +7,24 @@
|
||||
|
||||
package edu.wpi.first.wpilibj;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import edu.wpi.first.wpilibj.fixtures.SampleFixture;
|
||||
import edu.wpi.first.wpilibj.test.AbstractComsSetup;
|
||||
|
||||
import edu.wpi.first.wpilibj.CANTalon;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* Sample test for a sample PID controller. This demonstrates the general
|
||||
* pattern of how to create a test and use testing fixtures and categories.
|
||||
*$
|
||||
* All tests must extend from {@link AbstractComsSetup} in order to ensure that
|
||||
* Network Communications are set up before the tests are run.
|
||||
*$
|
||||
* Sample test for a sample PID controller. This demonstrates the general pattern of how to create a
|
||||
* test and use testing fixtures and categories. All tests must extend from {@link
|
||||
* AbstractComsSetup} in order to ensure that Network Communications are set up before the tests are
|
||||
* run.
|
||||
*
|
||||
* @author Fredric Silberberg
|
||||
*/
|
||||
public class SampleTest extends AbstractComsSetup {
|
||||
@@ -58,8 +55,8 @@ public class SampleTest extends AbstractComsSetup {
|
||||
}
|
||||
|
||||
/**
|
||||
* This is just a sample test that asserts true. Any traditional junit code
|
||||
* can be used, these are ordinary junit tests!
|
||||
* This is just a sample test that asserts true. Any traditional junit code can be used, these are
|
||||
* ordinary junit tests!
|
||||
*/
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
Reference in New Issue
Block a user