From 85896e0d0878a79ee4e2378d88b9241ebdc69635 Mon Sep 17 00:00:00 2001
From: Tim Molter <tim.molter@gmail.com>
Date: Thu, 3 Jul 2014 10:19:02 +0200
Subject: [PATCH] removed useless unit tests
---
.../xchart/DateAxisTickCalculatorTest.java | 49 -------------------
.../xchart/DecimalAxisTickCalculatorTest.java | 49 -------------------
2 files changed, 98 deletions(-)
delete mode 100644 xchart/src/test/java/com/xeiam/xchart/DateAxisTickCalculatorTest.java
delete mode 100644 xchart/src/test/java/com/xeiam/xchart/DecimalAxisTickCalculatorTest.java
diff --git a/xchart/src/test/java/com/xeiam/xchart/DateAxisTickCalculatorTest.java b/xchart/src/test/java/com/xeiam/xchart/DateAxisTickCalculatorTest.java
deleted file mode 100644
index 94ce234b..00000000
--- a/xchart/src/test/java/com/xeiam/xchart/DateAxisTickCalculatorTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Copyright 2011 - 2014 Xeiam LLC.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.xeiam.xchart;
-
-import static org.hamcrest.CoreMatchers.equalTo;
-import static org.hamcrest.MatcherAssert.assertThat;
-
-import java.util.Arrays;
-import java.util.List;
-
-import org.junit.Test;
-
-import com.xeiam.xchart.internal.chartpart.Axis.Direction;
-import com.xeiam.xchart.internal.chartpart.AxisTickDateCalculator;
-
-/**
- * @author timmolter
- */
-public class DateAxisTickCalculatorTest {
-
- @Test
- public void testDateOneMinuteTimespan() {
-
- AxisTickDateCalculator axisTickDateCalculator = new AxisTickDateCalculator(Direction.X, 600, 1361110661000.0, 1361110721000.0, new StyleManager());
-
- List<String> tickLabels = axisTickDateCalculator.getTickLabels();
- System.out.println(Arrays.toString(tickLabels.toArray()));
- assertThat(tickLabels.size(), equalTo(7));
- assertThat(tickLabels.get(0), equalTo("17:40"));
-
- List<Double> tickLocations = axisTickDateCalculator.getTickLocations();
- System.out.println(Arrays.toString(tickLocations.toArray()));
- assertThat(tickLocations.size(), equalTo(7));
- assertThat(tickLocations.get(0), equalTo(5.5));
- }
-}
diff --git a/xchart/src/test/java/com/xeiam/xchart/DecimalAxisTickCalculatorTest.java b/xchart/src/test/java/com/xeiam/xchart/DecimalAxisTickCalculatorTest.java
deleted file mode 100644
index e616b9e7..00000000
--- a/xchart/src/test/java/com/xeiam/xchart/DecimalAxisTickCalculatorTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Copyright 2011 - 2014 Xeiam LLC.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.xeiam.xchart;
-
-import static org.hamcrest.CoreMatchers.equalTo;
-import static org.hamcrest.MatcherAssert.assertThat;
-
-import java.util.Arrays;
-import java.util.List;
-
-import org.junit.Test;
-
-import com.xeiam.xchart.internal.chartpart.Axis.Direction;
-import com.xeiam.xchart.internal.chartpart.AxisTickNumericalCalculator;
-
-/**
- * @author timmolter
- */
-public class DecimalAxisTickCalculatorTest {
-
- @Test
- public void testDateOneMinuteTimespan() {
-
- AxisTickNumericalCalculator decimalAxisTickCalculator = new AxisTickNumericalCalculator(Direction.X, 600, -15, 15, new StyleManager());
-
- List<String> tickLabels = decimalAxisTickCalculator.getTickLabels();
- System.out.println(Arrays.toString(tickLabels.toArray()));
- assertThat(tickLabels.size(), equalTo(7));
- assertThat(tickLabels.get(0), equalTo("-15"));
-
- List<Double> tickLocations = decimalAxisTickCalculator.getTickLocations();
- System.out.println(Arrays.toString(tickLocations.toArray()));
- assertThat(tickLocations.size(), equalTo(7));
- assertThat(tickLocations.get(0), equalTo(15.0));
- }
-}
--
GitLab