4 package jp.sfjp.mikutoga.vmd.model;
6 import org.junit.After;
7 import org.junit.AfterClass;
8 import org.junit.Before;
9 import org.junit.BeforeClass;
10 import org.junit.Test;
11 import static org.junit.Assert.*;
16 public class CameraRotationTest {
18 public CameraRotationTest() {
22 public static void setUpClass() {
26 public static void tearDownClass() {
34 public void tearDown() {
38 * Test of get/set method, of class CameraRotation.
41 public void testGetSetParams() {
42 System.out.println("getLatitude");
44 CameraRotation rotation;
46 rotation = new CameraRotation();
48 assertEquals(0.0, rotation.getLatitude(), 0.0);
49 assertEquals(0.0, rotation.getLongitude(), 0.0);
50 assertEquals(0.0, rotation.getRoll(), 0.0);
52 rotation.setLatitude(1.0);
53 rotation.setLongitude(2.0);
54 rotation.setRoll(3.0);
56 assertEquals(1.0, rotation.getLatitude(), 0.0);
57 assertEquals(2.0, rotation.getLongitude(), 0.0);
58 assertEquals(3.0, rotation.getRoll(), 0.0);
64 * Test of toString method, of class CameraRotation.
67 public void testToString() {
68 System.out.println("toString");
70 CameraRotation rotation;
72 rotation = new CameraRotation();
74 assertEquals("latitude=0 longitude=0 roll=0", rotation.toString());
76 rotation.setLatitude(1.1f);
77 rotation.setLongitude(2.2f);
78 rotation.setRoll(3.3f);
79 assertEquals("latitude=1.1 longitude=2.2 roll=3.3", rotation.toString());