Commit 092e5d97 authored by Adam Blank's avatar Adam Blank
Browse files

Adds stub methods so tests compile

parent e4710f14
No related merge requests found
Pipeline #2661 failed with stage
in 0 seconds
Showing with 81 additions and 101 deletions
+81 -101
...@@ -3,10 +3,7 @@ ...@@ -3,10 +3,7 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="9d8f49d5-a7a8-40cd-89b4-170587b4708e" name="Default Changelist" comment=""> <list default="true" id="9d8f49d5-a7a8-40cd-89b4-170587b4708e" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/lab01-wikipedia.iml" beforeDir="false" afterPath="$PROJECT_DIR$/lab01-wikipedia.iml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/data/links_for_pizza_farm.txt" beforeDir="false" afterPath="$PROJECT_DIR$/tests/data/links_for_pizza_farm.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/data/links_for_rsa.txt" beforeDir="false" afterPath="$PROJECT_DIR$/tests/data/links_for_rsa.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tests/edu/caltech/cs2/lab01/WikipediaPageTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/tests/edu/caltech/cs2/lab01/WikipediaPageTests.java" afterDir="false" />
</list> </list>
<ignored path="$PROJECT_DIR$/out/" /> <ignored path="$PROJECT_DIR$/out/" />
<ignored path="$PROJECT_DIR$/.gradle/" /> <ignored path="$PROJECT_DIR$/.gradle/" />
...@@ -85,16 +82,16 @@ ...@@ -85,16 +82,16 @@
<usages-collector id="statistics.file.extensions.edit"> <usages-collector id="statistics.file.extensions.edit">
<counts> <counts>
<entry key="dummy" value="45" /> <entry key="dummy" value="45" />
<entry key="java" value="23027" /> <entry key="java" value="23381" />
<entry key="txt" value="450" /> <entry key="txt" value="535" />
<entry key="xml" value="3" /> <entry key="xml" value="3" />
<entry key="yml" value="150" /> <entry key="yml" value="150" />
</counts> </counts>
</usages-collector> </usages-collector>
<usages-collector id="statistics.file.types.edit"> <usages-collector id="statistics.file.types.edit">
<counts> <counts>
<entry key="JAVA" value="23027" /> <entry key="JAVA" value="23381" />
<entry key="PLAIN_TEXT" value="495" /> <entry key="PLAIN_TEXT" value="580" />
<entry key="XML" value="3" /> <entry key="XML" value="3" />
<entry key="YAML" value="150" /> <entry key="YAML" value="150" />
</counts> </counts>
...@@ -103,40 +100,14 @@ ...@@ -103,40 +100,14 @@
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" column="22" selection-start-line="5" selection-start-column="22" selection-end-line="5" selection-end-column="22" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/tests/data/links_for_pizza_farm.txt"> <entry file="file://$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="1" selection-start-line="1" selection-end-line="1" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tests/data/links_for_rsa.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="1" lean-forward="true" selection-start-line="1" selection-end-line="1" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/tests/edu/caltech/cs2/lab01/WikipediaPageTests.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="354"> <state relative-caret-position="358">
<caret line="113" column="31" selection-start-line="113" selection-start-column="31" selection-end-line="113" selection-end-column="31" /> <caret line="47" column="1" selection-start-line="47" selection-start-column="1" selection-end-line="47" selection-end-column="1" />
<folding> <folding>
<element signature="imports" expanded="true" /> <element signature="e#598#599#0" expanded="true" />
<element signature="e#625#626#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -221,11 +192,11 @@ ...@@ -221,11 +192,11 @@
<option value="$PROJECT_DIR$/.gitlab-ci.yml" /> <option value="$PROJECT_DIR$/.gitlab-ci.yml" />
<option value="$PROJECT_DIR$/tests/edu/caltech/cs2/helpers/CaptureSystemOutput.java" /> <option value="$PROJECT_DIR$/tests/edu/caltech/cs2/helpers/CaptureSystemOutput.java" />
<option value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/Main.java" /> <option value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/Main.java" />
<option value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java" />
<option value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/libraries/Wikipedia.java" /> <option value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/libraries/Wikipedia.java" />
<option value="$PROJECT_DIR$/tests/edu/caltech/cs2/lab01/WikipediaPageTests.java" /> <option value="$PROJECT_DIR$/tests/edu/caltech/cs2/lab01/WikipediaPageTests.java" />
<option value="$PROJECT_DIR$/tests/data/links_for_rsa.txt" /> <option value="$PROJECT_DIR$/tests/data/links_for_rsa.txt" />
<option value="$PROJECT_DIR$/tests/data/links_for_pizza_farm.txt" /> <option value="$PROJECT_DIR$/tests/data/links_for_pizza_farm.txt" />
<option value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java" />
</list> </list>
</option> </option>
</component> </component>
...@@ -274,47 +245,6 @@ ...@@ -274,47 +245,6 @@
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" /> <item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" /> <item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path>
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" />
<item name="tests" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" />
<item name="tests" type="462c0819:PsiDirectoryNode" />
<item name="data" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" />
<item name="tests" type="462c0819:PsiDirectoryNode" />
<item name="edu" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" />
<item name="tests" type="462c0819:PsiDirectoryNode" />
<item name="edu" type="462c0819:PsiDirectoryNode" />
<item name="caltech" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" />
<item name="tests" type="462c0819:PsiDirectoryNode" />
<item name="edu" type="462c0819:PsiDirectoryNode" />
<item name="caltech" type="462c0819:PsiDirectoryNode" />
<item name="cs2" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="lab01-wikipedia" type="462c0819:PsiDirectoryNode" />
<item name="tests" type="462c0819:PsiDirectoryNode" />
<item name="edu" type="462c0819:PsiDirectoryNode" />
<item name="caltech" type="462c0819:PsiDirectoryNode" />
<item name="cs2" type="462c0819:PsiDirectoryNode" />
<item name="lab01" type="462c0819:PsiDirectoryNode" />
</path>
<path> <path>
<item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" /> <item name="lab01-wikipedia" type="b2602c69:ProjectViewProjectNode" />
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" /> <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
...@@ -335,7 +265,7 @@ ...@@ -335,7 +265,7 @@
<property name="SearchEverywhereHistoryKey" value="&#9;FILE&#9;file:///Users/blank/IdeaProjects/lab01-wikipedia/src/edu/caltech/cs2/lab01/Main.java" /> <property name="SearchEverywhereHistoryKey" value="&#9;FILE&#9;file:///Users/blank/IdeaProjects/lab01-wikipedia/src/edu/caltech/cs2/lab01/Main.java" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" /> <property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1543190300585" /> <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1543190479205" />
<property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit5" /> <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit5" />
<property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrarySuperClass.JUnit5" value="" /> <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrarySuperClass.JUnit5" value="" />
<property name="last_directory_selection" value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01" /> <property name="last_directory_selection" value="$PROJECT_DIR$/src/edu/caltech/cs2/lab01" />
...@@ -463,7 +393,7 @@ ...@@ -463,7 +393,7 @@
<workItem from="1542889792275" duration="2422000" /> <workItem from="1542889792275" duration="2422000" />
<workItem from="1542991053586" duration="342000" /> <workItem from="1542991053586" duration="342000" />
<workItem from="1543030246351" duration="3746000" /> <workItem from="1543030246351" duration="3746000" />
<workItem from="1543189512785" duration="399000" /> <workItem from="1543189512785" duration="725000" />
</task> </task>
<task id="LOCAL-00001" summary="Updates implementation and adds tests for most of the functionality"> <task id="LOCAL-00001" summary="Updates implementation and adds tests for most of the functionality">
<created>1542555427665</created> <created>1542555427665</created>
...@@ -563,7 +493,21 @@ ...@@ -563,7 +493,21 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1543097654258</updated> <updated>1543097654258</updated>
</task> </task>
<option name="localTasksCounter" value="15" /> <task id="LOCAL-00015" summary="Updates tests to be slightly better">
<created>1543190177379</created>
<option name="number" value="00015" />
<option name="presentableId" value="LOCAL-00015" />
<option name="project" value="LOCAL" />
<updated>1543190177380</updated>
</task>
<task id="LOCAL-00016" summary="Updates open files on clone">
<created>1543190309076</created>
<option name="number" value="00016" />
<option name="presentableId" value="LOCAL-00016" />
<option name="project" value="LOCAL" />
<updated>1543190309077</updated>
</task>
<option name="localTasksCounter" value="17" />
<servers /> <servers />
</component> </component>
<component name="TestHistory"> <component name="TestHistory">
...@@ -599,7 +543,7 @@ ...@@ -599,7 +543,7 @@
</history-entry> </history-entry>
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="54948000" /> <option name="totallyTimeSpent" value="55274000" />
</component> </component>
<component name="TodoView"> <component name="TodoView">
<todo-panel id="selected-file"> <todo-panel id="selected-file">
...@@ -631,7 +575,7 @@ ...@@ -631,7 +575,7 @@
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" weight="0.32884097" /> <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" weight="0.32884097" />
<window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" /> <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" order="9" /> <window_info anchor="bottom" id="Terminal" order="9" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" /> <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" visible="true" weight="0.32884097" />
<window_info anchor="bottom" id="Messages" order="11" weight="0.32884097" /> <window_info anchor="bottom" id="Messages" order="11" weight="0.32884097" />
<window_info anchor="bottom" id="CheckStyle" order="12" weight="0.32884097" /> <window_info anchor="bottom" id="CheckStyle" order="12" weight="0.32884097" />
<window_info anchor="bottom" id="Log Viewer" order="13" /> <window_info anchor="bottom" id="Log Viewer" order="13" />
...@@ -701,7 +645,9 @@ ...@@ -701,7 +645,9 @@
<MESSAGE value="(fixed tests for new WikipediaPage interface) + completed version of reference solution" /> <MESSAGE value="(fixed tests for new WikipediaPage interface) + completed version of reference solution" />
<MESSAGE value="Edits Wikipedia API to not output files" /> <MESSAGE value="Edits Wikipedia API to not output files" />
<MESSAGE value="Edits which files are displayed by default" /> <MESSAGE value="Edits which files are displayed by default" />
<option name="LAST_COMMIT_MESSAGE" value="Edits which files are displayed by default" /> <MESSAGE value="Updates tests to be slightly better" />
<MESSAGE value="Updates open files on clone" />
<option name="LAST_COMMIT_MESSAGE" value="Updates open files on clone" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="true" /> <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="true" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" /> <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
</component> </component>
...@@ -869,13 +815,6 @@ ...@@ -869,13 +815,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" column="22" selection-start-line="5" selection-start-column="22" selection-end-line="5" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/tests/data/links_for_rsa.txt"> <entry file="file://$PROJECT_DIR$/tests/data/links_for_rsa.txt">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15"> <state relative-caret-position="15">
...@@ -890,6 +829,17 @@ ...@@ -890,6 +829,17 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/edu/caltech/cs2/lab01/WikipediaPage.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="358">
<caret line="47" column="1" selection-start-line="47" selection-start-column="1" selection-end-line="47" selection-end-column="1" />
<folding>
<element signature="e#598#599#0" expanded="true" />
<element signature="e#625#626#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component> </component>
<component name="masterDetails"> <component name="masterDetails">
<states> <states>
......
package edu.caltech.cs2.lab01; package edu.caltech.cs2.lab01;
import edu.caltech.cs2.lab01.libraries.Wikipedia;
public class WikipediaPage { public class WikipediaPage {
private String title; public WikipediaPage(String title, boolean followRedirects) {
private String text; // Fill me in!
private String nextLink; }
private String linkText;
public WikipediaPage(String title) { public WikipediaPage(String title) {
this(title, true); this(title, true);
} }
// Add in a constructor and methods as given in the specification! public String getTitle() {
// Fill me in!
return null;
}
public String getText() {
// Fill me in!
return null;
}
public boolean isRedirect() {
// Fill me in!
return false;
}
public boolean isValid() {
// Fill me in!
return false;
}
public boolean isGalaxy() {
// Fill me in!
return false;
}
public boolean hasNextLink() {
// Fill me in!
return false;
}
public String nextLink() {
// Fill me in!
return null;
}
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment