Skip to content

Commit

Permalink
Added JavaDocs in WorldTest, SunTest, SunsFactoryTest
Browse files Browse the repository at this point in the history
  • Loading branch information
soficabe committed Feb 15, 2024
1 parent 354145a commit 38e54b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/test/java/pvzclone/SunTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ final class SunTest {
private static final int SPEED = 5;
private Sun sun;

/**
* Inizializza sun prima di ogni test.
*/
@BeforeEach
private void createSunEntity() {
this.sun = new SunImpl(POSITION, SPEED);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/pvzclone/SunsFactoryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import pvzclone.model.impl.SunsFactory;

/**
* This class contains unit tests for the SunFactory.
* This class contains tests for the SunFactory.
*
* @author Sofia Caberletti.
*/
Expand Down
8 changes: 8 additions & 0 deletions src/test/java/pvzclone/WorldTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@
import pvzclone.model.impl.LevelsManager;
import pvzclone.model.impl.WorldImpl;

/**
* This class contains tests for the class WorldImpl.
*
* @author Sofia Caberletti.
*/
public class WorldTest {
private static final int INT_COSTANT_FOR_TESTING = 5;
private static final int LONG_COSTANT_FOR_TESTING = 5;
private World world;

/**
* Inizializza world prima di ogni test.
*/
@BeforeEach
private void createWorld() {
this.world = new WorldImpl();
Expand Down

0 comments on commit 38e54b1

Please sign in to comment.