Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Arkkila committed Dec 2, 2013
1 parent 32c0109 commit de6a2a4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Due to Twitter API restrictions, Flavour of the "Month" will rather be "Now" in
To run the app, simply clone the source and run the following in jlab/:
```shell
$ mvn clean package
$ java -jar target/dependency/jetty-runner.jar <--port number> /target/<war package>.war
$ java -jar target/dependency/jetty-runner.jar <--port {number}> target/<war package>.war
```

By default, the app runs at port 8080, so use localhost:8080. By specifying --port before the .war package, you can run it at any available port. Maven Jetty plugin is also included, so you can use mvn jetty:run as well.
Expand Down
2 changes: 1 addition & 1 deletion doc/HOURS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
23.11.2013 - 19-13 Twitter API research, coding
25.11.2013 - Servlet configuring
27.11.2013 - 16-20 Coding, UI setup

2.11.2013 - 20-24 Coding
6 changes: 3 additions & 3 deletions src/main/java/wad/jlab/logic/TwitterEvaluator.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public class TwitterEvaluator implements EvaluatorService {


public TwitterEvaluator() {
AccessToken at = new AccessToken("2194448208-lzULWRL1NWyXNGhgeaavhSJsIBUV7FktT9YX8R6","KNjfhWuTnuZmc1AjXmOWicOV9suBltkPMa7cn5fvbTpkq",0L);
AccessToken at = new AccessToken("key","key",0L);

api.setOAuthConsumer("DIuRo8AabG0MnyisgHEDQ", "hVjPptg21qsrf1d5TCcxEyWZHtxkuanoXWQ7WUICV4");
api.setOAuthConsumer("key", "key");
api.setOAuthAccessToken(at);
}

Expand Down Expand Up @@ -103,7 +103,7 @@ public void evaluate() {

} catch (TwitterException ex) {
// consider placing empty cache to avoid crashes
this.cache = new TwitterCache("nothing found :I", new ArrayList<Status>());
this.cache = new TwitterCache("nothing found :I", null);
Logger.getLogger(TwitterEvaluator.class.getName()).log(Level.SEVERE, null, ex); //review
}

Expand Down
13 changes: 13 additions & 0 deletions src/test/java/wad/TwitterApiTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wad;

/**
*
* @author narck
*/
public class TwitterApiTest {

}

0 comments on commit de6a2a4

Please sign in to comment.