Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 12edf5c

Browse files
committed
Merge pull request #213 from tmc-cli/version-update-aleksi
Fix the default server address.
2 parents d0c5198 + e16926b commit 12edf5c

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

src/main/java/fi/helsinki/cs/tmc/cli/command/LoginCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private String getServerAddress(CommandLine line) {
8181
String serverAddress = line.getOptionValue("s");
8282
if (serverAddress == null) {
8383
// todo: don't hardcode the default value, get it from somewhere
84-
serverAddress = "https://tmc.mooc.fi/staging";
84+
serverAddress = "https://tmc.mooc.fi/mooc";
8585
}
8686
return serverAddress;
8787
}

src/test/java/fi/helsinki/cs/tmc/cli/command/LoginCommandTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,4 @@ public void loginAsksPasswordFromUser() {
7979
app.run(args);
8080
verify(mockIo).readPassword(eq("password: "));
8181
}
82-
83-
@Test
84-
public void loginGetsRightServerAddressIfNotGiven() {
85-
String[] args = {"login", "-u", username, "-p", password};
86-
app.run(args);
87-
verify(mockIo).println(eq("Login succesful."));
88-
}
8982
}

src/test/java/fi/helsinki/cs/tmc/cli/tmcstuff/SettingsTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ public void localeIsSetToEn() {
8080
assertTrue(new Locale("EN").equals(settings.getLocale()));
8181
}
8282

83-
@Test
84-
public void configRootIsSetCorrectly() {
85-
/*assertTrue("/tmp/tmc-cli".equals(
86-
settings.getConfigRoot().toString()));*/
87-
}
88-
8983
@Test
9084
public void noCourseIsSetByDefault() {
9185
assertTrue(!settings.getCurrentCourse().isPresent());

0 commit comments

Comments
 (0)