Author: tolusha
Date: 2009-11-10 02:53:00 -0500 (Tue, 10 Nov 2009)
New Revision: 532
Added:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterSystemDataContainerHolder.java
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspaceEntry.java
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspacePersistedDataManager.java
Modified:
jcr/branches/1.12.0-JBC/component/core/pom.xml
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/LockCacheLoaderTest.java
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterLockManagerImpl.java
Log:
EXOJCR-205: add dummy classes
Modified: jcr/branches/1.12.0-JBC/component/core/pom.xml
===================================================================
--- jcr/branches/1.12.0-JBC/component/core/pom.xml 2009-11-10 07:27:27 UTC (rev 531)
+++ jcr/branches/1.12.0-JBC/component/core/pom.xml 2009-11-10 07:53:00 UTC (rev 532)
@@ -569,8 +569,8 @@
</systemProperties>
<includes>
<include>**/**/JBossCacheServiceTest__.java</include>
- <include>**/**/TestItem__.java</include>
-
+ <include>**/**/TestItem__.java</include>
+ <include>**/**/LockCacheLoaderTest.java</include>
<include>**/**/JBossCacheStorageConnectionTest.java</include>
</includes>
</configuration>
Modified:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/LockCacheLoaderTest.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/LockCacheLoaderTest.java 2009-11-10
07:27:27 UTC (rev 531)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/LockCacheLoaderTest.java 2009-11-10
07:53:00 UTC (rev 532)
@@ -16,21 +16,10 @@
*/
package org.exoplatform.services.jcr.impl.storage.jbosscache;
-import com.sun.tools.corba.se.idl.toJavaPortable.ValueFactory;
-
-import com.thoughtworks.xstream.core.ReferenceByIdMarshaller.IDGenerator;
-
import org.exoplatform.services.jcr.datamodel.InternalQName;
-import org.exoplatform.services.jcr.datamodel.PropertyData;
import org.exoplatform.services.jcr.datamodel.QPath;
-import org.exoplatform.services.jcr.datamodel.ValueData;
import org.exoplatform.services.jcr.impl.Constants;
-import org.exoplatform.services.jcr.impl.core.LocationFactory;
-import org.exoplatform.services.jcr.impl.core.NamespaceRegistryImpl;
-import org.exoplatform.services.jcr.impl.core.lock.LockManager;
-import org.exoplatform.services.jcr.impl.core.lock.LockManagerImpl;
import org.exoplatform.services.jcr.impl.core.value.ValueFactoryImpl;
-import org.exoplatform.services.jcr.impl.dataflow.TransientNodeData;
import org.exoplatform.services.jcr.impl.dataflow.TransientPropertyData;
import org.exoplatform.services.jcr.impl.dataflow.TransientValueData;
import org.exoplatform.services.jcr.util.IdGenerator;
@@ -41,8 +30,6 @@
import javax.jcr.PropertyType;
-import junit.framework.TestCase;
-
/**
* Created by The eXo Platform SAS.
*
@@ -72,8 +59,8 @@
public void testLock() throws Exception
{
List<Modification> modifications = new ArrayList<Modification>();
- String nodeIdentifier = IdGenerator.generate();
- String sessionId = IdGenerator.generate();
+ String nodeIdentifier = "node1";
+ String sessionId = "session1";
TransientPropertyData lockIsDeepData =
new TransientPropertyData(QPath.makeChildPath(testRoot,
Constants.JCR_LOCKISDEEP), IdGenerator.generate(), 1,
@@ -99,8 +86,8 @@
public void testUnLock() throws Exception
{
List<Modification> modifications = new ArrayList<Modification>();
- String nodeIdentifier = IdGenerator.generate();
- String sessionId = IdGenerator.generate();
+ String nodeIdentifier = "node1";
+ String sessionId = "session1";
TransientPropertyData lockIsDeepData =
new TransientPropertyData(QPath.makeChildPath(testRoot,
Constants.JCR_LOCKISDEEP), IdGenerator.generate(), 1,
Modified:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterLockManagerImpl.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterLockManagerImpl.java 2009-11-10
07:27:27 UTC (rev 531)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterLockManagerImpl.java 2009-11-10
07:53:00 UTC (rev 532)
@@ -44,7 +44,7 @@
public TesterLockManagerImpl()
{
- this(null, null);
+ this(new TesterWorkspacePersistedDataManager(null, null), new
TesterWorkspaceEntry());
}
/**
Added:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterSystemDataContainerHolder.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterSystemDataContainerHolder.java
(rev 0)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterSystemDataContainerHolder.java 2009-11-10
07:53:00 UTC (rev 532)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2003-2009 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not,
see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.services.jcr.impl.storage.jbosscache;
+
+import org.exoplatform.services.jcr.impl.storage.SystemDataContainerHolder;
+import org.exoplatform.services.jcr.storage.WorkspaceDataContainer;
+
+/**
+ * Created by The eXo Platform SAS.
+ *
+ * <br/>Date: 2009
+ *
+ * @author <a href="mailto:anatoliy.bazko@exoplatform.com.ua">Anatoliy
Bazko</a>
+ * @version $Id$
+ */
+public class TesterSystemDataContainerHolder<DC> extends SystemDataContainerHolder
+{
+
+ /**
+ * TesterSystemDataContainerHolder constructor.
+ *
+ * @param dataContainer
+ */
+ public TesterSystemDataContainerHolder(WorkspaceDataContainer dataContainer)
+ {
+ super(dataContainer);
+ }
+
+}
Property changes on:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterSystemDataContainerHolder.java
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspaceEntry.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspaceEntry.java
(rev 0)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspaceEntry.java 2009-11-10
07:53:00 UTC (rev 532)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2003-2009 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not,
see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.services.jcr.impl.storage.jbosscache;
+
+import org.exoplatform.services.jcr.config.WorkspaceEntry;
+
+/**
+ * Created by The eXo Platform SAS.
+ *
+ * <br/>Date: 2009
+ *
+ * @author <a href="mailto:anatoliy.bazko@exoplatform.com.ua">Anatoliy
Bazko</a>
+ * @version $Id$
+ */
+public class TesterWorkspaceEntry extends WorkspaceEntry
+{
+
+}
Property changes on:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspaceEntry.java
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspacePersistedDataManager.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspacePersistedDataManager.java
(rev 0)
+++
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspacePersistedDataManager.java 2009-11-10
07:53:00 UTC (rev 532)
@@ -0,0 +1,53 @@
+/*
+ * Copyright (C) 2003-2009 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not,
see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.services.jcr.impl.storage.jbosscache;
+
+import org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener;
+import
org.exoplatform.services.jcr.impl.dataflow.persistent.WorkspacePersistentDataManager;
+import org.exoplatform.services.jcr.impl.storage.SystemDataContainerHolder;
+import org.exoplatform.services.jcr.storage.WorkspaceDataContainer;
+
+/**
+ * Created by The eXo Platform SAS.
+ *
+ * <br/>Date: 2009
+ *
+ * @author <a href="mailto:anatoliy.bazko@exoplatform.com.ua">Anatoliy
Bazko</a>
+ * @version $Id$
+ */
+public class TesterWorkspacePersistedDataManager extends WorkspacePersistentDataManager
+{
+
+ /**
+ * TesterWorkspacePersistedDataManager constructor.
+ *
+ * @param dataContainer
+ * @param systemDataContainerHolder
+ */
+ public TesterWorkspacePersistedDataManager(WorkspaceDataContainer dataContainer,
+ SystemDataContainerHolder<WorkspaceDataContainer> systemDataContainerHolder)
+ {
+ super(dataContainer, new
TesterSystemDataContainerHolder<WorkspaceDataContainer>(null));
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void addItemPersistenceListener(ItemsPersistenceListener listener)
+ {
+ }
+}
Property changes on:
jcr/branches/1.12.0-JBC/component/core/src/test/java/org/exoplatform/services/jcr/impl/storage/jbosscache/TesterWorkspacePersistedDataManager.java
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native