Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ottlinger committed Dec 15, 2023
1 parent db4e3e0 commit 4150e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.aikiit.game.kaiser;

public class Kaiser {
public class KaiserEngine {
private Long population = 0L;
private Long area = 0L;
private Long yield = 0L;
Expand All @@ -26,7 +26,7 @@ public Long getAreaPerCapita() {
return Long.divideUnsigned(area, population);
}

public Kaiser() {
public KaiserEngine() {
this.population = 95L;
this.zYear = 0;
this.yield = 3L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.*;

class KaiserTest {
class KaiserEngineTest {

@Test
void getAreaPerCapita() {
Kaiser k = new Kaiser();
KaiserEngine k = new KaiserEngine();
assertThat(k.getAreaPerCapita()).isZero();
}
}

0 comments on commit 4150e42

Please sign in to comment.