roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1508834 - in /roller/trunk/app/src: main/resources/sql/junit-cleartables-mysql.sql test/java/org/apache/roller/weblogger/business/ test/resources/junit-cleartables-mysql.sql
Date Wed, 31 Jul 2013 12:48:43 GMT
Author: ghuber
Date: Wed Jul 31 12:48:43 2013
New Revision: 1508834

Log: (empty)


Added: roller/trunk/app/src/main/resources/sql/junit-cleartables-mysql.sql
--- roller/trunk/app/src/main/resources/sql/junit-cleartables-mysql.sql (added)
+++ roller/trunk/app/src/main/resources/sql/junit-cleartables-mysql.sql Wed Jul 31 12:48:43
@@ -0,0 +1,36 @@
+-- Licensed to the Apache Software Foundation (ASF) under one or more
+--  contributor license agreements.  The ASF licenses this file to You
+-- under the Apache License, Version 2.0 (the "License"); you may not
+-- use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.  For additional information regarding
+-- copyright in this work, please see the NOTICE file in the top level
+-- directory of this distribution.
+-- Script is used to clear old data prior to running local tests
+delete mt from website w, roller_mediafile mf, roller_mediafiletag mt where = mf.weblogid
and mt.mediafile_id = and w.creator like 'junit_%';
+delete mf from website w, roller_mediafile mf where = mf.weblogid and w.creator like
+delete md from website w, roller_mediafiledir md where = md.websiteid and w.creator
like 'junit_%';
+delete r from website w, referer r WHERE = r.websiteid and w.creator like 'junit_%';
+delete from website WHERE creator like 'junit_%';
+delete b from website w, folder f, bookmark b where = b.folderid and = f.websiteid
and w.creator like 'junit_%';
+delete from folder WHERE websiteid like 'junit_%';
+delete from userrole WHERE username like 'junit_%';
+delete from roller_permission WHERE username like 'junit_%';
+delete from rolleruser WHERE username like 'junit_%';
+delete from roller_userattribute WHERE username like 'junit_%';
+delete from roller_oauthconsumer WHERE username like 'junit_%';
+delete from roller_oauthaccessor WHERE username like 'junit_%';

Modified: roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/
--- roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/
+++ roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/
Wed Jul 31 12:48:43 2013
@@ -72,7 +72,7 @@ public class UserAttributeTest extends T
         assertNull(umgr.getUserByAttribute("testattname", "testattvalue"));
-        TestUtils.teardownUser("auser");
+        TestUtils.teardownUser(user.getUserName());
         assertEquals(0, umgr.getUserAttributes("auser").size());

View raw message