1 package org.tigris.scarab.test.mocks; 2 3 48 49 import org.apache.commons.configuration.Configuration; 50 import org.apache.fulcrum.InitializationException; 51 import org.apache.fulcrum.InstantiationException; 52 import org.apache.fulcrum.Service; 53 import org.apache.fulcrum.ServiceBroker; 54 import org.apache.log4j.Category; 55 56 60 public class MockServiceBroker implements ServiceBroker { 61 62 public MockServiceBroker() { 63 super(); 64 } 66 67 public boolean isRegistered(String serviceName) { 68 return false; 70 } 71 72 public void initService(String name) throws InitializationException { 73 75 } 76 77 public void shutdownService(String name) { 78 80 } 81 82 public void shutdownServices() { 83 85 } 86 87 public Service getService(String name) throws InstantiationException { 88 return null; 90 } 91 92 public Configuration getConfiguration(String name) { 93 return null; 95 } 96 97 public void setServiceObject(String key, Object value) { 98 100 } 101 102 public Object getServiceObject(String key) { 103 return null; 105 } 106 107 public String getRealPath(String path) { 108 return null; 110 } 111 112 public String getApplicationRoot() { 113 return null; 115 } 116 117 public Category getCategory() { 118 return null; 120 } 121 122 } 123 | Popular Tags |