]> source.dussan.org Git - jgit.git/commitdiff
Implement new abstract MappedLoginService methods added in Jetty 9.3 03/77003/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 10 Jul 2016 22:27:56 +0000 (00:27 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 10 Jul 2016 22:36:50 +0000 (00:36 +0200)
Eclipse Neon comes with Jetty 9.3 which is causing unimplemented
abstract method errors in test class AppServer when using the JGit or
EGit Neon target platform. Fix this by adding dummy implementations.

Change-Id: Ie49107d814a846997de95f149e91fe1ec2fbe4d8
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AppServer.java

index c36c29762308966af981a489ef7663832221fdbc..c8857409cfa998061ac7a60d461d551b6b4fdd82 100644 (file)
@@ -181,6 +181,14 @@ public class AppServer {
                        protected void loadUsers() throws IOException {
                                putUser(username, new Password(password), new String[] { role });
                        }
+
+                       protected String[] loadRoleInfo(KnownUser user) {
+                               return null;
+                       }
+
+                       protected KnownUser loadUserInfo(String usrname) {
+                               return null;
+                       }
                };
 
                ConstraintMapping cm = new ConstraintMapping();