// Path: nox/src/test/java/com/github/pedrovgs/nox/doubles/FakeShape.java
// public class FakeShape extends Shape {
// 
//   private float xPosition;
//   private float yPosition;
//   private int overSize;
// 
//   public FakeShape(ShapeConfig shapeConfig) {
//     super(shapeConfig);
//   }
// 
//   public void setXPosition(float xPosition) {
//     this.xPosition = xPosition;
//   }
// 
//   public void setYPosition(float yPosition) {
//     this.yPosition = yPosition;
//   }
// 
//   @Override public void calculate() {
//     for (int i = 0; i < getShapeConfig().getNumberOfElements(); i++) {
//       setNoxItemXPosition(i, xPosition);
//       setNoxItemYPosition(i, yPosition);
//     }
//   }
// 
//   public void setBoundaries(int minX, int maxX, int minY, int maxY, int overSize) {
//     setNoxItemXPosition(0, minX);
//     setNoxItemXPosition(0, maxX);
//     setNoxItemYPosition(0, minY);
//     setNoxItemYPosition(0, maxY);
//     this.overSize = overSize;
//   }
// 
//   @Override public int getOverSize() {
//     return overSize;
//   }
// }


import com.github.pedrovgs.nox.doubles.FakeShape;
import org.junit.Before;
import org.junit.Test;
import static junit.framework.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
/*
 * Copyright (C) 2015 Pedro Vicente Gomez Sanchez.
 *
 * 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.github.pedrovgs.nox.shape;



/**
 * @author Pedro Vicente Gomez Sanchez.
 */
public class BoundaryShapeTest {

  private static final int ANY_VIEW_WIDTH = 100;
  private static final int ANY_VIEW_HEIGHT = 100;
  private static final float ANY_ITEM_SIZE = 8;
  private static final float ANY_ITEM_MARGIN = 2;
  private static final float ANY_X_POSITION = 1;
  private static final double DELTA = 0.1;
  private static final float ANY_Y_POSITION = 1;
  private static final int ANY_ITEM_POSITION = 0;
  private static final int ANY_BIG_OFFSET = 1000;

// Path: nox/src/test/java/com/github/pedrovgs/nox/doubles/FakeShape.java
// public class FakeShape extends Shape {
// 
//   private float xPosition;
//   private float yPosition;
//   private int overSize;
// 
//   public FakeShape(ShapeConfig shapeConfig) {
//     super(shapeConfig);
//   }
// 
//   public void setXPosition(float xPosition) {
//     this.xPosition = xPosition;
//   }
// 
//   public void setYPosition(float yPosition) {
//     this.yPosition = yPosition;
//   }
// 
//   @Override public void calculate() {
//     for (int i = 0; i < getShapeConfig().getNumberOfElements(); i++) {
//       setNoxItemXPosition(i, xPosition);
//       setNoxItemYPosition(i, yPosition);
//     }
//   }
// 
//   public void setBoundaries(int minX, int maxX, int minY, int maxY, int overSize) {
//     setNoxItemXPosition(0, minX);
//     setNoxItemXPosition(0, maxX);
//     setNoxItemYPosition(0, minY);
//     setNoxItemYPosition(0, maxY);
//     this.overSize = overSize;
//   }
// 
//   @Override public int getOverSize() {
//     return overSize;
//   }
// }


// Path: nox/src/test/java/com/github/pedrovgs/nox/shape/BoundaryShapeTest.java
import com.github.pedrovgs.nox.doubles.FakeShape;
import org.junit.Before;
import org.junit.Test;
import static junit.framework.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

/*
 * Copyright (C) 2015 Pedro Vicente Gomez Sanchez.
 *
 * 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.github.pedrovgs.nox.shape;



/**
 * @author Pedro Vicente Gomez Sanchez.
 */
public class BoundaryShapeTest {

  private static final int ANY_VIEW_WIDTH = 100;
  private static final int ANY_VIEW_HEIGHT = 100;
  private static final float ANY_ITEM_SIZE = 8;
  private static final float ANY_ITEM_MARGIN = 2;
  private static final float ANY_X_POSITION = 1;
  private static final double DELTA = 0.1;
  private static final float ANY_Y_POSITION = 1;
  private static final int ANY_ITEM_POSITION = 0;
  private static final int ANY_BIG_OFFSET = 1000;

  private FakeShape path;