mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:53:41 -05:00
Removed slow tests.
This commit is contained in:
parent
50f01e1cf5
commit
86d5843ff4
3 changed files with 30 additions and 33 deletions
|
@ -1,9 +1,6 @@
|
||||||
package uk.ac.ic.wlgitbridge.writelatex.api.request.base;
|
package uk.ac.ic.wlgitbridge.writelatex.api.request.base;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import uk.ac.ic.wlgitbridge.writelatex.api.request.getdoc.SnapshotGetDocRequest;
|
|
||||||
import uk.ac.ic.wlgitbridge.writelatex.api.request.getforversion.SnapshotGetForVersionRequest;
|
|
||||||
import uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers.SnapshotGetSavedVersRequest;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by Winston on 06/11/14.
|
* Created by Winston on 06/11/14.
|
||||||
|
@ -12,22 +9,22 @@ public class RequestTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nothingToTest() {
|
public void nothingToTest() {
|
||||||
String projectName = "1826rqgsdb";
|
// String projectName = "1826rqgsdb";
|
||||||
Request getDoc = new SnapshotGetDocRequest(projectName);
|
// Request getDoc = new SnapshotGetDocRequest(projectName);
|
||||||
Request getSavedVers = new SnapshotGetSavedVersRequest(projectName);
|
// Request getSavedVers = new SnapshotGetSavedVersRequest(projectName);
|
||||||
Request getForVersion = new SnapshotGetForVersionRequest(projectName, 76);
|
// Request getForVersion = new SnapshotGetForVersionRequest(projectName, 76);
|
||||||
|
//
|
||||||
getDoc.request();
|
// getDoc.request();
|
||||||
getSavedVers.request();
|
// getSavedVers.request();
|
||||||
getForVersion.request();
|
// getForVersion.request();
|
||||||
|
//
|
||||||
try {
|
// try {
|
||||||
System.out.println(getDoc.getResult());
|
// System.out.println(getDoc.getResult());
|
||||||
System.out.println(getSavedVers.getResult());
|
// System.out.println(getSavedVers.getResult());
|
||||||
System.out.println(getForVersion.getResult());
|
// System.out.println(getForVersion.getResult());
|
||||||
} catch (Throwable e) {
|
// } catch (Throwable e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,13 +9,13 @@ public class SnapshotGetForVersionRequestTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nothingToTest() {
|
public void nothingToTest() {
|
||||||
SnapshotGetForVersionRequest request = new SnapshotGetForVersionRequest("1826rqgsdb", 76);
|
// SnapshotGetForVersionRequest request = new SnapshotGetForVersionRequest("1826rqgsdb", 76);
|
||||||
request.request();
|
// request.request();
|
||||||
try {
|
// try {
|
||||||
SnapshotGetForVersionResult result = request.getResult();
|
// SnapshotGetForVersionResult result = request.getResult();
|
||||||
} catch (Throwable throwable) {
|
// } catch (Throwable throwable) {
|
||||||
throwable.printStackTrace();
|
// throwable.printStackTrace();
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,13 +9,13 @@ public class SnapshotGetSavedVersRequestTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void nothingToTest() {
|
public void nothingToTest() {
|
||||||
SnapshotGetSavedVersRequest request = new SnapshotGetSavedVersRequest("1826rqgsdb");
|
// SnapshotGetSavedVersRequest request = new SnapshotGetSavedVersRequest("1826rqgsdb");
|
||||||
request.request();
|
// request.request();
|
||||||
try {
|
// try {
|
||||||
System.out.println(request.getResult());
|
// System.out.println(request.getResult());
|
||||||
} catch (Throwable throwable) {
|
// } catch (Throwable throwable) {
|
||||||
throwable.printStackTrace();
|
// throwable.printStackTrace();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue