/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Guerra24
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package io.github.guerra24.voxel.client.kernel.test;

import static org.junit.Assert.assertEquals;

import java.io.File;

import io.github.guerra24.voxel.client.kernel.core.Kernel;
import io.github.guerra24.voxel.client.kernel.resources.GameResources;
import io.github.guerra24.voxel.client.kernel.world.World;
import io.github.guerra24.voxel.client.kernel.world.entities.Camera;

import org.junit.Test;

public class KernelTest {
	@Test
	public void worldTest() {
		System.setProperty("org.lwjgl.librarypath", new File(
				"src/test/resources/natives").getAbsolutePath());
		Kernel kernel = new Kernel(true);
		assertEquals(new World().getClass(), kernel.world.getClass());
		kernel.dispose();
	}

	@Test
	public void camerTest() {
		System.setProperty("org.lwjgl.librarypath", new File(
				"src/test/resources/natives").getAbsolutePath());
		Kernel kernel = new Kernel(true);
		assertEquals(new Camera().getPosition(),
				kernel.gameResources.camera.getPosition());
		kernel.dispose();
	}

	@Test
	public void gameResourcesObjectTest() {
		System.setProperty("org.lwjgl.librarypath", new File(
				"src/test/resources/natives").getAbsolutePath());
		Kernel kernel = new Kernel(true);
		assertEquals(1, kernel.gameResources.allObjects.size());
		kernel.dispose();
	}
}

@@ -1320,79 +1320,8 @@
 el;%0A
-import io.github.guerra24.voxel.client.kernel.resources.GameResources;%0A
 impo
@@ -1496,16 +1496,18 @@
 Test %7B%0A%09
+/*
 @Test%0A%09p
@@ -1791,16 +1791,17 @@
 id camer
+a
 Test() %7B
@@ -2338,10 +2338,12 @@
 e();%0A%09%7D%0A
+*/
 %7D%0A

Build 46: Disabled JUnitTest