Browse Source

getName()

feature-pr-AirportClass
Imron 3 years ago
parent
commit
7262127ca0
  1. 17
      .idea/.gitignore
  2. 10
      src/main/java/hs/fulda/de/ci/exam/project/Airport.java
  3. 3
      src/main/java/hs/fulda/de/ci/exam/project/ExampleClass.java
  4. BIN
      src/main/resources/img.png
  5. 14
      src/test/java/hs/fulda/de/ci/exam/project/AirportClassTest.java
  6. BIN
      target/classes/hs/fulda/de/ci/exam/project/ExampleClass.class
  7. BIN
      target/test-classes/TestExample.class

17
.idea/.gitignore

@ -6,3 +6,20 @@
# Datasource local storage ignored files # Datasource local storage ignored files
/dataSources/ /dataSources/
/dataSources.local.xml /dataSources.local.xml
/target
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar
# Eclipse m2e generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

10
src/main/java/hs/fulda/de/ci/exam/project/Airport.java

@ -0,0 +1,10 @@
package hs.fulda.de.ci.exam.project;
public class Airport {
protected String name;
public String getName() {
return this.name;
}
}

3
src/main/java/hs/fulda/de/ci/exam/project/ExampleClass.java

@ -1,7 +1,8 @@
package hs.fulda.de.ci.exam.project; package hs.fulda.de.ci.exam.project;
import java.util.LinkedList;
public class ExampleClass { public class ExampleClass {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("Example Class Runs");
} }
} }

BIN
src/main/resources/img.png

After

Width: 750  |  Height: 813  |  Size: 259 KiB

14
src/test/java/hs/fulda/de/ci/exam/project/AirportClassTest.java

@ -0,0 +1,14 @@
package hs.fulda.de.ci.exam.project;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class AirportClassTest {
@Test
void test_getName(){
Airport airport = new Airport();
airport.name = "fraport";
assertThat(airport.getName()).describedAs("get list of Flights").isEqualTo("fraport");
}
}

BIN
target/classes/hs/fulda/de/ci/exam/project/ExampleClass.class

BIN
target/test-classes/TestExample.class

Loading…
Cancel
Save