Browse Source

Finish Project

vollständige_und_weitere_testate
chris 2 years ago
parent
commit
9928ee5ed7
  1. 3
      .idea/.gitignore
  2. 17
      .idea/libraries/junit_jupiter.xml
  3. 9
      .idea/markdown.xml
  4. 4
      .idea/misc.xml
  5. 8
      .idea/modules.xml
  6. 13
      .idea/oop_crashkurs.iml
  7. 6
      .idea/vcs.xml
  8. 0
      SimpleArrayMap/.idea/.gitignore
  9. 12
      SimpleArrayMap/.idea/SimpleArrayMap.iml
  10. 17
      SimpleArrayMap/.idea/libraries/junit_jupiter.xml
  11. 9
      SimpleArrayMap/.idea/markdown.xml
  12. 6
      SimpleArrayMap/.idea/misc.xml
  13. 8
      SimpleArrayMap/.idea/modules.xml
  14. 6
      SimpleArrayMap/.idea/vcs.xml
  15. 44
      SimpleArrayMap/.idea/workspace.xml
  16. 3
      SimpleArrayMap/src/solution/SimpleMapTest.java
  17. 13
      SimpleArrayMap/src/testat/ASimpleMapTest.java
  18. 4
      SimpleArrayMap/src/testat/SimpleArrayMap.java
  19. 1
      SimpleLinkedList/src/solution/SimpleLinkedList.java

3
.idea/.gitignore

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

17
.idea/libraries/junit_jupiter.xml

@ -0,0 +1,17 @@
<component name="libraryTable">
<library name="junit.jupiter" type="repository">
<properties maven-id="org.junit.jupiter:junit-jupiter:5.8.0" />
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter/5.8.0/junit-jupiter-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.8.0/junit-jupiter-api-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.8.0/junit-platform-commons-1.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-params/5.8.0/junit-jupiter-params-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-engine/5.8.0/junit-jupiter-engine-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-engine/1.8.0/junit-platform-engine-1.8.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

9
.idea/markdown.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettings">
<enabledExtensions>
<entry key="MermaidLanguageExtension" value="false" />
<entry key="PlantUMLLanguageExtension" value="false" />
</enabledExtensions>
</component>
</project>

4
.idea/misc.xml

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="11" project-jdk-type="JavaSDK" />
</project>

8
.idea/modules.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/oop_crashkurs.iml" filepath="$PROJECT_DIR$/.idea/oop_crashkurs.iml" />
</modules>
</component>
</project>

13
.idea/oop_crashkurs.iml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/SimpleArrayMap" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/SimpleLinkedList" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="junit.jupiter" level="project" />
</component>
</module>

6
.idea/vcs.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

0
SimpleArrayMap/.idea/.gitignore

12
SimpleArrayMap/.idea/SimpleArrayMap.iml

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="junit.jupiter" level="project" />
</component>
</module>

17
SimpleArrayMap/.idea/libraries/junit_jupiter.xml

@ -0,0 +1,17 @@
<component name="libraryTable">
<library name="junit.jupiter" type="repository">
<properties maven-id="org.junit.jupiter:junit-jupiter:5.8.0" />
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter/5.8.0/junit-jupiter-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.8.0/junit-jupiter-api-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.8.0/junit-platform-commons-1.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-params/5.8.0/junit-jupiter-params-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-engine/5.8.0/junit-jupiter-engine-5.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-engine/1.8.0/junit-platform-engine-1.8.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

9
SimpleArrayMap/.idea/markdown.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettings">
<enabledExtensions>
<entry key="MermaidLanguageExtension" value="false" />
<entry key="PlantUMLLanguageExtension" value="false" />
</enabledExtensions>
</component>
</project>

6
SimpleArrayMap/.idea/misc.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>

8
SimpleArrayMap/.idea/modules.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/SimpleArrayMap.iml" filepath="$PROJECT_DIR$/.idea/SimpleArrayMap.iml" />
</modules>
</component>
</project>

6
SimpleArrayMap/.idea/vcs.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

44
SimpleArrayMap/.idea/workspace.xml

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="82cca40d-6a74-4c74-97be-88548b3f41df" name="Changes" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectId" id="2FS5DB4h1ZHgsFjtInThNWkKFeC" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/../SimpleLinkedList" />
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.15" />
<property name="project.structure.side.proportion" value="0.2" />
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="82cca40d-6a74-4c74-97be-88548b3f41df" name="Changes" comment="" />
<created>1664472523385</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1664472523385</updated>
</task>
<servers />
</component>
</project>

3
SimpleArrayMap/src/solution/SimpleMapTest.java

@ -2,12 +2,13 @@ package solution;
import testat.ASimpleMapTest;
import testat.ISimpleMap;
import solution.SimpleArrayMap;
public class SimpleMapTest extends ASimpleMapTest{
@Override
protected ISimpleMap<String, String> getInstance() {
return new SimpleArrayMap<>(5);
return new SimpleArrayMap<String, String>(5);
}
}

13
SimpleArrayMap/src/testat/ASimpleMapTest.java

@ -1,13 +1,14 @@
package testat;
import static org.junit.Assert.assertEquals;
import java.util.function.Consumer;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.function.Consumer;
import static org.junit.jupiter.api.Assertions.assertEquals;
import testat.ISimpleMap;
public abstract class ASimpleMapTest {
ISimpleMap<String, String> map;
@ -60,7 +61,7 @@ public abstract class ASimpleMapTest {
void testadd4() {
add3();
map.put("4", "Vier");
map.put("5", "Fünf");
map.put("5", "Fnf");
map.remove("3");
map.put("6", "Sechs");
@ -71,7 +72,7 @@ public abstract class ASimpleMapTest {
actual = map.get("4");
assertEquals("Vier", actual);
actual = map.get("5");
assertEquals("Fünf", actual);
assertEquals("Fnf", actual);
actual = map.get("6");
assertEquals("Sechs", actual);
}

4
SimpleArrayMap/src/testat/SimpleArrayMap.java

@ -0,0 +1,4 @@
package src.testat;
public class SimpleArrayMap {
}

1
SimpleLinkedList/src/solution/SimpleLinkedList.java

@ -9,6 +9,7 @@ public class SimpleLinkedList<E> extends AbstractSimpleList<E> {
firstNode = null;
size = 0;
}
@Override
public int size() {

Loading…
Cancel
Save