Class cs.eng1.piazzapanic.food.ingredients.IngredientTest

5

tests

5

failures

0

ignored

0.012s

duration

0%

successful

Failed tests

testGetType

com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: food/original/cooked_patty.png
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:190)
	at app//com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:101)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:122)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:114)
	at app//cs.eng1.piazzapanic.food.FoodTextureManager.<init>(FoodTextureManager.java:16)
	at app//cs.eng1.piazzapanic.food.ingredients.IngredientTest.testGetType(IngredientTest.java:24)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base@17.0.6/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@17.0.6/java.lang.reflect.Method.invoke(Method.java:568)
	at app//org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at app//org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at app//org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at app//org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at app//org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at app//org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at app//org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at app//org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at app//cs.eng1.piazzapanic.food.ingredients.GdxTestRunner.render(GdxTestRunner.java:45)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:128)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:93)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: food\original\cooked_patty.png (Internal)
	at app//com.badlogic.gdx.files.FileHandle.read(FileHandle.java:142)
	at app//com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:228)
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:187)
	... 20 more

testSetIsBurnt

com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: food/original/cooked_patty.png
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:190)
	at app//com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:101)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:122)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:114)
	at app//cs.eng1.piazzapanic.food.FoodTextureManager.<init>(FoodTextureManager.java:16)
	at app//cs.eng1.piazzapanic.food.ingredients.IngredientTest.testSetIsBurnt(IngredientTest.java:41)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base@17.0.6/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@17.0.6/java.lang.reflect.Method.invoke(Method.java:568)
	at app//org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at app//org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at app//org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at app//org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at app//org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at app//org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at app//org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at app//org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at app//cs.eng1.piazzapanic.food.ingredients.GdxTestRunner.render(GdxTestRunner.java:45)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:128)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:93)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: food\original\cooked_patty.png (Internal)
	at app//com.badlogic.gdx.files.FileHandle.read(FileHandle.java:142)
	at app//com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:228)
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:187)
	... 20 more

testSetIsChopped

com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: food/original/cooked_patty.png
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:190)
	at app//com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:101)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:122)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:114)
	at app//cs.eng1.piazzapanic.food.FoodTextureManager.<init>(FoodTextureManager.java:16)
	at app//cs.eng1.piazzapanic.food.ingredients.IngredientTest.testSetIsChopped(IngredientTest.java:51)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base@17.0.6/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@17.0.6/java.lang.reflect.Method.invoke(Method.java:568)
	at app//org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at app//org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at app//org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at app//org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at app//org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at app//org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at app//org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at app//org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at app//cs.eng1.piazzapanic.food.ingredients.GdxTestRunner.render(GdxTestRunner.java:45)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:128)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:93)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: food\original\cooked_patty.png (Internal)
	at app//com.badlogic.gdx.files.FileHandle.read(FileHandle.java:142)
	at app//com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:228)
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:187)
	... 20 more

testSetIsCooked

com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: food/original/cooked_patty.png
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:190)
	at app//com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:101)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:122)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:114)
	at app//cs.eng1.piazzapanic.food.FoodTextureManager.<init>(FoodTextureManager.java:16)
	at app//cs.eng1.piazzapanic.food.ingredients.IngredientTest.testSetIsCooked(IngredientTest.java:32)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base@17.0.6/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@17.0.6/java.lang.reflect.Method.invoke(Method.java:568)
	at app//org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at app//org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at app//org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at app//org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at app//org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at app//org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at app//org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at app//org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at app//cs.eng1.piazzapanic.food.ingredients.GdxTestRunner.render(GdxTestRunner.java:45)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:128)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:93)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: food\original\cooked_patty.png (Internal)
	at app//com.badlogic.gdx.files.FileHandle.read(FileHandle.java:142)
	at app//com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:228)
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:187)
	... 20 more

testTestToString

com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: food/original/cooked_patty.png
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:190)
	at app//com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:101)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:122)
	at app//com.badlogic.gdx.graphics.Texture.<init>(Texture.java:114)
	at app//cs.eng1.piazzapanic.food.FoodTextureManager.<init>(FoodTextureManager.java:16)
	at app//cs.eng1.piazzapanic.food.ingredients.IngredientTest.testTestToString(IngredientTest.java:14)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@17.0.6/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base@17.0.6/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@17.0.6/java.lang.reflect.Method.invoke(Method.java:568)
	at app//org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at app//org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at app//org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at app//org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at app//org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at app//org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at app//org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at app//org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at app//cs.eng1.piazzapanic.food.ingredients.GdxTestRunner.render(GdxTestRunner.java:45)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication.mainLoop(HeadlessApplication.java:128)
	at app//com.badlogic.gdx.backends.headless.HeadlessApplication$1.run(HeadlessApplication.java:93)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: food\original\cooked_patty.png (Internal)
	at app//com.badlogic.gdx.files.FileHandle.read(FileHandle.java:142)
	at app//com.badlogic.gdx.files.FileHandle.readBytes(FileHandle.java:228)
	at app//com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:187)
	... 20 more

Tests

Test Duration Result
testGetType 0.001s failed
testSetIsBurnt 0.001s failed
testSetIsChopped 0.008s failed
testSetIsCooked 0.001s failed
testTestToString 0.001s failed