Skip to content

Commit

Permalink
Add NotNull to Baloot2
Browse files Browse the repository at this point in the history
  • Loading branch information
PashaBarahimi committed Nov 25, 2023
1 parent ee0bfc6 commit beade9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Baloot2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>13.0</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
Expand Down
2 changes: 2 additions & 0 deletions Baloot2/src/test/java/domain/EngineTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package domain;

import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.*;

public class EngineTest {
Expand All @@ -10,6 +11,7 @@ public void setUp() {
engine = new Engine();
}

@NotNull
public static Order constructOrder(int id, int customer, int price, int quantity) {
Order order = new Order();
order.setId(id);
Expand Down

0 comments on commit beade9a

Please sign in to comment.