Skip to content

Commit 33159b3

Browse files
committed
Test RefreshCoursesAction.
1 parent 4aea6b5 commit 33159b3

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/actions/RefreshCoursesAction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public void onSuccess(final List<Course> courses) {
7171
Course currentCourse = CourseListUtils.getCourseByName(courses, courseDb.getCurrentCourseName());
7272
if (currentCourse != null) {
7373
try {
74-
System.out.println("DETAILS URL: " + currentCourse.getDetailsUrl());
7574
ListenableFuture<Course> courseFuture = tmcCore.getCourse(tmcSettings, currentCourse.getDetailsUrl());
7675
Futures.addCallback(courseFuture, new FutureCallback<Course>() {
7776
@Override
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package fi.helsinki.cs.tmc.actions;
2+
3+
import org.junit.Test;
4+
import static org.junit.Assert.*;
5+
6+
/**
7+
*
8+
* @author samutamm
9+
*/
10+
public class RefreshCoursesActionTest {
11+
12+
public RefreshCoursesActionTest() {
13+
}
14+
15+
/**
16+
* Test of addDefaultListener method, of class RefreshCoursesAction.
17+
*/
18+
@Test
19+
public void testAddDefaultListener() {
20+
}
21+
22+
/**
23+
* Test of addListener method, of class RefreshCoursesAction.
24+
*/
25+
@Test
26+
public void testAddListener() {
27+
}
28+
29+
/**
30+
* Test of run method, of class RefreshCoursesAction.
31+
*/
32+
@Test
33+
public void testRun() {
34+
}
35+
36+
}

0 commit comments

Comments
 (0)