[hibernate-commits] Hibernate SVN: r11451 - trunk/HibernateExt/shards/src/test/org/hibernate/shards/defaultmock.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Wed May 2 02:07:43 EDT 2007
Author: max.ross
Date: 2007-05-02 02:07:43 -0400 (Wed, 02 May 2007)
New Revision: 11451
Added:
trunk/HibernateExt/shards/src/test/org/hibernate/shards/defaultmock/ShardConfigurationDefaultMock.java
Log:
default mock impl of the ShardConfiguration interface.
Added: trunk/HibernateExt/shards/src/test/org/hibernate/shards/defaultmock/ShardConfigurationDefaultMock.java
===================================================================
--- trunk/HibernateExt/shards/src/test/org/hibernate/shards/defaultmock/ShardConfigurationDefaultMock.java (rev 0)
+++ trunk/HibernateExt/shards/src/test/org/hibernate/shards/defaultmock/ShardConfigurationDefaultMock.java 2007-05-02 06:07:43 UTC (rev 11451)
@@ -0,0 +1,47 @@
+/**
+ * Copyright (C) 2007 Google Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library 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
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+package org.hibernate.shards.defaultmock;
+
+import org.hibernate.shards.cfg.ShardConfiguration;
+
+/**
+ * @author maxr at google.com (Max Ross)
+ */
+public class ShardConfigurationDefaultMock implements ShardConfiguration {
+
+ public String getShardUrl() {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getShardUser() {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getShardPassword() {
+ throw new UnsupportedOperationException();
+ }
+
+ public String getShardSessionFactoryName() {
+ throw new UnsupportedOperationException();
+ }
+
+ public Integer getShardId() {
+ throw new UnsupportedOperationException();
+ }
+}
+
More information about the hibernate-commits
mailing list