http-service: add beginning of xp tracker

This commit is contained in:
Adam
2018-01-20 19:48:07 -05:00
parent 4d2c02e81c
commit 7d5e0ff389
13 changed files with 709 additions and 4 deletions

View File

@@ -28,7 +28,6 @@ import java.time.Instant;
import java.util.HashMap;
import java.util.Map;
import javax.naming.NamingException;
import net.runelite.http.service.util.InstantConverter;
import org.junit.Ignore;
import org.junit.Test;
@@ -47,7 +46,7 @@ public class SpringBootWebApplicationTest
{
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o("jdbc:mysql://localhost/runelite", "root", "", new NoQuirks(converters));
return new Sql2o("jdbc:mysql://192.168.1.2/runelite", "runelite", "runelite", new NoQuirks(converters));
}
@Bean("Runelite Cache SQL2O")
@@ -55,7 +54,15 @@ public class SpringBootWebApplicationTest
{
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o("jdbc:mysql://localhost/cache", "root", "", new NoQuirks(converters));
return new Sql2o("jdbc:mysql://192.168.1.2/cache", "runelite", "runelite", new NoQuirks(converters));
}
@Bean("Runelite XP Tracker SQL2O")
Sql2o xpSql2o() throws NamingException
{
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o("jdbc:mysql://192.168.1.2/xptracker", "runelite", "runelite", new NoQuirks(converters));
}
@Test