1 22 package org.jboss.test.jca.adapter; 24 import javax.resource.spi.ConnectionRequestInfo ; 25 26 35 36 public class TestConnectionRequestInfo implements ConnectionRequestInfo 37 { 38 public String failure = "nowhere"; 39 40 public TestConnectionRequestInfo() 41 { 42 43 } 44 45 public TestConnectionRequestInfo(String failure) 46 { 47 this.failure = failure; 48 } 49 50 52 56 public int hashCode() 57 { 58 return failure.hashCode(); 59 } 60 61 66 public boolean equals(Object param1) 67 { 68 if (param1 == this) 69 return true; 70 if (param1 == null || (param1 instanceof TestConnectionRequestInfo) == false) 71 return false; 72 TestConnectionRequestInfo other = (TestConnectionRequestInfo) param1; 73 return failure.equals(other.failure); 74 } 75 76 } 77 | Popular Tags |