If you think the Android project frc-notebook listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
import android.test.suitebuilder.annotation.SmallTest;
import junit.framework.TestCase;
/*www.java2s.com*//**
* File created by phil on 4/10/14.
* Copyright 2014, Phil Lopreiato
* This file is part of FRC Notebook.
* FRC Notebook is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* FRC Notebook is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with FRC Notebook. If not, see http://www.gnu.org/licenses/.
*/publicclass BasicTest extends TestCase {
@SmallTest
publicvoid testBoolean() {
assertEquals("Test true == true",true,true);
assertEquals("Test false == false",false,false);
}
@SmallTest
publicvoid testMultiplication(){
assertEquals("10 x 5 must be 50", 50, 10*5);
}
@SmallTest
publicvoid testAddition(){
assertEquals("2+2=4?",2+2,4);
assertEquals("2-2=0",2-2,0);
}
}