private ConsumerAdminOperations consumerAdmin_;
public void setUpTest() throws Exception
{
QoSPropertySet _qosSettings = new QoSPropertySet(getConfiguration(),
QoSPropertySet.ADMIN_QOS);
getPicoContainer().registerComponentImplementation(OfferManager.class);
getPicoContainer().registerComponentImplementation(SubscriptionManager.class);
IEventChannel channel = new IEventChannel()
{
public MutablePicoContainer getContainer()
{
return getPicoContainer();
}
public EventChannel getEventChannel()
{
return null;
}
public int getAdminID()
{
return 20;
}
public int getChannelID()
{
return 10;
}
public void destroy()
{
// nothing to do
}
public String getChannelMBean()
{
return null;
}
};
objectUnderTest_ = new ConsumerAdminImpl(channel, getORB(), getPOA(),
getConfiguration(), getMessageFactory(), (OfferManager) getPicoContainer()
.getComponentInstance(OfferManager.class), (SubscriptionManager) getPicoContainer()
.getComponentInstance(SubscriptionManager.class));
objectUnderTest_.setInterFilterGroupOperator(InterFilterGroupOperator.AND_OP);
objectUnderTest_.set_qos(_qosSettings.get_qos());
consumerAdmin_ = objectUnderTest_;
}