001 package com.mockrunner.mock.connector.cci;
002
003 import javax.resource.ResourceException;
004 import javax.resource.cci.ConnectionMetaData;
005
006 /**
007 * Mock implementation of <code>ConnectionMetaData</code>.
008 */
009 public class MockConnectionMetaData implements ConnectionMetaData
010 {
011 private String eisProductName = "Mockrunner";
012 private String eisProductVersion = "";
013 private String userName = "";
014
015 public String getEISProductName() throws ResourceException
016 {
017 return eisProductName;
018 }
019
020 public String getEISProductVersion() throws ResourceException
021 {
022 return eisProductVersion;
023 }
024
025 public String getUserName() throws ResourceException
026 {
027 return userName;
028 }
029
030 public void setEisProductVersion(String eisProductVersion)
031 {
032 this.eisProductVersion = eisProductVersion;
033 }
034
035 public void setUserName(String userName)
036 {
037 this.userName = userName;
038 }
039 }