From d1279aeda2331e527dcd9e915398bbead3cd4cdd Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 2 Aug 2010 19:51:24 +0100 Subject: [PATCH] Logging adjustments for gae sample. --- samples/gae/src/main/webapp/WEB-INF/logging.properties | 5 +++-- .../src/test/java/samples/gae/security/AppRoleTests.java | 9 +++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/samples/gae/src/main/webapp/WEB-INF/logging.properties b/samples/gae/src/main/webapp/WEB-INF/logging.properties index daa51fde33..204b09d9c2 100644 --- a/samples/gae/src/main/webapp/WEB-INF/logging.properties +++ b/samples/gae/src/main/webapp/WEB-INF/logging.properties @@ -1,4 +1,5 @@ .level = INFO -org.springframework.level = FINE -org.springframework.security.level = FINER \ No newline at end of file +samples.gae.level = FINER +org.springframework.level = INFO +org.springframework.security.level = FINER diff --git a/samples/gae/src/test/java/samples/gae/security/AppRoleTests.java b/samples/gae/src/test/java/samples/gae/security/AppRoleTests.java index 3615bd7ec3..0e4d37fa00 100644 --- a/samples/gae/src/test/java/samples/gae/security/AppRoleTests.java +++ b/samples/gae/src/test/java/samples/gae/security/AppRoleTests.java @@ -18,6 +18,11 @@ public class AppRoleTests { assertEquals("ADMIN", admin.getAuthority()); } - - + @Test + public void bitsAreCorrect() throws Exception { + // If this fails, someone has modified the Enum and the Datastore is probably corrupt! + assertEquals(0, ADMIN.getBit()); + assertEquals(1, NEW_USER.getBit()); + assertEquals(2, USER.getBit()); + } }