Skip to content
Snippets Groups Projects
Commit 3a5fc02a authored by Edvard Berdal Eek's avatar Edvard Berdal Eek
Browse files

Generate and refactor unit tests

parent c37e9eb0
No related branches found
No related tags found
1 merge request!20Created test classes for Factory and FileReader. Created equals methods
Pipeline #287932 passed
Showing
with 309 additions and 5 deletions
package org.example.chaosgame.model.chaos;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ChaosCanvasTest {
@BeforeEach
void setUp() {
}
@AfterEach
void tearDown() {
}
@Test
void getPixel() {
}
@Test
void putPixel() {
}
@Test
void testPutPixel() {
}
@Test
void transformIndicesToCoords() {
}
@Test
void getCanvasArray() {
}
@Test
void getWidth() {
}
@Test
void getHeight() {
}
@Test
void getMinCoords() {
}
@Test
void getMaxCoords() {
}
@Test
void setMinCoords() {
}
@Test
void setMaxCoords() {
}
@Test
void setTransformCoordsToIndices() {
}
@Test
void clearCanvas() {
}
@Test
void setWidth() {
}
@Test
void setHeight() {
}
}
\ No newline at end of file
package org.example.chaosgame.model.chaos;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ChaosGameDescriptionFactoryTest {
@Test
void get() {
}
}
\ No newline at end of file
package org.example.chaosgame.model.chaos;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ChaosGameDescriptionTest {
@Test
void getMinCoords() {
}
@Test
void getMaxCoords() {
}
@Test
void setMinCoords() {
}
@Test
void setMaxCoords() {
}
@Test
void getTransforms() {
}
@Test
void setTransforms() {
}
@Test
void getProbabilities() {
}
}
\ No newline at end of file
package org.example.chaosgame.model.chaos;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ChaosGameFileHandlerTest {
@BeforeEach
void setUp() {
}
@AfterEach
void tearDown() {
}
@Test
void readFromFile() {
}
@Test
void writeToFile() {
}
}
\ No newline at end of file
package org.example.chaosgame.model.chaos;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ChaosGameTest {
@BeforeEach
void setUp() {
}
@AfterEach
void tearDown() {
}
@Test
void getInstance() {
}
@Test
void getCanvas() {
}
@Test
void getDescription() {
}
@Test
void getSteps() {
}
@Test
void getTotalSteps() {
}
@Test
void setSteps() {
}
@Test
void setTotalSteps() {
}
@Test
void addTotalSteps() {
}
@Test
void resetTotalSteps() {
}
@Test
void runSteps() {
}
@Test
void setChaosGameDescription() {
}
@Test
void setChaosCanvas() {
}
@Test
void registerObserver() {
}
@Test
void removeObserver() {
}
@Test
void notifyObservers() {
}
}
\ No newline at end of file
package org.example.chaosgame.model.chaos;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ExploreGameTest {
@BeforeEach
void setUp() {
}
@AfterEach
void tearDown() {
}
@Test
void exploreFractals() {
}
@Test
void setChaosCanvas() {
}
@Test
void setExploreGame() {
}
@Test
void getCanvas() {
}
@Test
void getDescription() {
}
@Test
void registerObserver() {
}
@Test
void removeObserver() {
}
@Test
void notifyObservers() {
}
@Test
void call() {
}
@Test
void stopTask() {
}
}
\ No newline at end of file
package org.example.chaosgame.linalg;
package org.example.chaosgame.model.linalg;
import org.example.chaosgame.model.linalg.Complex;
import org.junit.jupiter.api.*;
......
package org.example.chaosgame.linalg;
package org.example.chaosgame.model.linalg;
import org.example.chaosgame.model.linalg.Matrix2x2;
import org.example.chaosgame.model.linalg.Vector2D;
......
package org.example.chaosgame.linalg;
package org.example.chaosgame.model.linalg;
import org.example.chaosgame.model.linalg.Vector2D;
import org.junit.jupiter.api.*;
......
package org.example.chaosgame.transformations;
package org.example.chaosgame.model.transformations;
import org.example.chaosgame.model.linalg.Matrix2x2;
import org.example.chaosgame.model.linalg.Vector2D;
......
package org.example.chaosgame.model.transformations;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ExploreJuliaTest {
@Test
void getComplex() {
}
@Test
void transform() {
}
}
\ No newline at end of file
package org.example.chaosgame.transformations;
package org.example.chaosgame.model.transformations;
import org.example.chaosgame.model.linalg.Complex;
import org.example.chaosgame.model.linalg.Vector2D;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment