org.javaswift.joss.command.mock.core
Class CommandMock<T>

java.lang.Object
  extended by org.javaswift.joss.command.mock.core.CommandMock<T>
Direct Known Subclasses:
AccountInformationCommandMock, AccountMetadataCommandMock, AuthenticationCommandMock, ContainerInformationCommandMock, ContainerMetadataCommandMock, ContainerRightsCommandMock, CopyObjectCommandMock, CreateContainerCommandMock, DeleteContainerCommandMock, DeleteObjectCommandMock, DownloadObjectAsByteArrayCommandMock, DownloadObjectAsInputStreamCommandMock, DownloadObjectToFileCommandMock, HashPasswordCommandMock, ListContainersCommandMock, ListObjectsCommandMock, ObjectInformationCommandMock, ObjectMetadataCommandMock, TenantCommandMock, UploadObjectCommandMock

public abstract class CommandMock<T>
extends Object


Field Summary
protected  Account account
           
protected  boolean allowErrorLog
           
protected  Container container
           
static org.slf4j.Logger LOG
           
protected  StoredObject object
           
protected  Swift swift
           
 
Constructor Summary
CommandMock(Swift swift, Account account)
           
CommandMock(Swift swift, Account account, Container container)
           
CommandMock(Swift swift, Account account, Container container, StoredObject object)
           
 
Method Summary
protected  void applyDelay()
           
 T call()
           
abstract  SwiftResult<T> callSwift()
           
abstract  HttpStatusChecker[] getStatusCheckers()
           
 void setAllowErrorLog(boolean allowErrorLog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG

account

protected Account account

container

protected Container container

object

protected StoredObject object

allowErrorLog

protected boolean allowErrorLog

swift

protected Swift swift
Constructor Detail

CommandMock

public CommandMock(Swift swift,
                   Account account)

CommandMock

public CommandMock(Swift swift,
                   Account account,
                   Container container)

CommandMock

public CommandMock(Swift swift,
                   Account account,
                   Container container,
                   StoredObject object)
Method Detail

setAllowErrorLog

public void setAllowErrorLog(boolean allowErrorLog)

applyDelay

protected void applyDelay()

call

public T call()

callSwift

public abstract SwiftResult<T> callSwift()

getStatusCheckers

public abstract HttpStatusChecker[] getStatusCheckers()


Copyright © 2012-2014 42 BV. All Rights Reserved.