Skip to content

Commit

Permalink
Sanity Tests(new file EventTest.java added) for Event.java completed!
Browse files Browse the repository at this point in the history
  • Loading branch information
Krish Patel committed Dec 6, 2022
1 parent 3bb5275 commit e4b52f7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
17 changes: 14 additions & 3 deletions event/EventTest.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
package event;

import org.junit.jupiter.api.Test;
import timeBehaviour.TimePoint;

import java.time.LocalDateTime;

import static org.junit.jupiter.api.Assertions.assertEquals;


/**
* A Unit Test Class for Event.java.
*/
class EventTest {
class EventTest
{
/**
* A Unit Test for Event.complete().
*/
@Test
void complete() {
void completeTest()
{
Event e = new Event("Event1", "testing", 100, new TimePoint(LocalDateTime.now()));

e.complete();

assertEquals(0, Event.getObserverList().size());
}
}
}
32 changes: 32 additions & 0 deletions out/production/The-Hamburglars/The-Hamburglars.iml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,37 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="javafx" level="application" />
<orderEntry type="module-library" scope="TEST">
<library name="JUnit5.8.1">
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-api-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/opentest4j-1.2.0.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-platform-commons-1.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/apiguardian-api-1.1.2.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-params-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-engine-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-platform-engine-1.8.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-api-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/opentest4j-1.2.0.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-platform-commons-1.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/apiguardian-api-1.1.2.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-params-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-jupiter-engine-5.8.1.jar!/" />
<root url="jar://$MODULE_DIR$/lib/junit-platform-engine-1.8.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>

0 comments on commit e4b52f7

Please sign in to comment.