Package de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping
Class BackendMessageMapperTest
- java.lang.Object
-
- de.hybris.platform.sap.core.test.SapcoretestSpringJUnitTest
-
- de.hybris.platform.sap.core.test.SapcoreSpringJUnitTest
-
- de.hybris.platform.sap.core.jco.test.SapcoreJCoJUnitTest
-
- de.hybris.platform.sap.core.jco.rec.SapcoreJCoRecJUnitTest
-
- de.hybris.platform.sap.core.bol.test.SapcorebolSpringJUnitTest
-
- de.hybris.platform.sap.sapordermgmtbol.unittests.base.SapordermanagmentBolSpringJunitTest
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.messagemapping.BackendMessageMapperTest
-
@UnitTest public class BackendMessageMapperTest extends SapordermanagmentBolSpringJunitTest
-
-
Field Summary
Fields Modifier and Type Field Description protected org.easymock.IMocksControlmc-
Fields inherited from class de.hybris.platform.sap.core.jco.rec.SapcoreJCoRecJUnitTest
DEFAULT_RELATIVE_RECORDING_DIRECTORY, name, watcher
-
Fields inherited from class de.hybris.platform.sap.core.test.SapcoreSpringJUnitTest
genericFactory, sapHybrisSessionProvider
-
-
Constructor Summary
Constructors Constructor Description BackendMessageMapperTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.sap.core.jco.rec.SapcoreJCoRecJUnitTest
getRecordingAnnotation, getRecordingExtensionName, getRecordingMode, getRelativeRecordingDirectory, testFailed, testSucceeded
-
Methods inherited from class de.hybris.platform.sap.core.test.SapcoreSpringJUnitTest
getGenericFactory, tearDown
-
Methods inherited from class de.hybris.platform.sap.core.test.SapcoretestSpringJUnitTest
getApplicationContext
-
-
-
-
Method Detail
-
setUp
public void setUp()
Description copied from class:SapcoretestSpringJUnitTestStandard test setUp method.- Overrides:
setUpin classSapcoreJCoRecJUnitTest
-
cutForRules
protected BackendMessageMapperImpl cutForRules(java.lang.String xmlFileContent)
-
testSeverityScale
public void testSeverityScale()
-
testTypeConverionABAP2Java
public void testTypeConverionABAP2Java()
-
mockedRecordForKey
protected com.sap.conn.jco.JCoRecord mockedRecordForKey(TechKey key)
-
testCreateBackendMessage
public void testCreateBackendMessage() throws BackendException- Throws:
BackendException
-
testPassMessage
public void testPassMessage() throws BackendException- Throws:
BackendException
-
testTransformBeMessageByRule_ReplaceSeverity
public void testTransformBeMessageByRule_ReplaceSeverity() throws BackendException, org.xml.sax.SAXException, java.io.IOException, SAPHybrisCacheException- Throws:
BackendExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionSAPHybrisCacheException
-
testTransformBeMessageByRule_ReplaceKey
public void testTransformBeMessageByRule_ReplaceKey() throws BackendException- Throws:
BackendException
-
testTransformBeMessageByRule_ReplaceSeverityAndKey
public void testTransformBeMessageByRule_ReplaceSeverityAndKey() throws BackendException- Throws:
BackendException
-
createSalesDocWith3Items
protected void createSalesDocWith3Items()
-
testFindReferencedBO_messageWithoutKey
public void testFindReferencedBO_messageWithoutKey() throws BackendException- Throws:
BackendException
-
testFindReferencedBO_notFound
public void testFindReferencedBO_notFound() throws BackendException- Throws:
BackendException
-
testFindReferencedBO_foundRoot
public void testFindReferencedBO_foundRoot() throws BackendException- Throws:
BackendException
-
testFindReferencedBO_foundChild
public void testFindReferencedBO_foundChild() throws BackendException- Throws:
BackendException
-
testMap_RuledBeMsgSeverityA
public void testMap_RuledBeMsgSeverityA() throws CommunicationException, BackendException
-
testTransformBeMessageByRule_Hide
public void testTransformBeMessageByRule_Hide() throws BackendException- Throws:
BackendException
-
testMap_RuledTransformedWarning
public void testMap_RuledTransformedWarning() throws CommunicationException, BackendException
-
testMap_NotRuledPassedError
public void testMap_NotRuledPassedError() throws CommunicationException, BackendException
-
testMap_NoRuleFoundAndRemoveWarning
public void testMap_NoRuleFoundAndRemoveWarning() throws CommunicationException, BackendException
-
testMap_EmptyBeMessage
public void testMap_EmptyBeMessage() throws CommunicationException, BackendException
-
testMap_null_null
public void testMap_null_null() throws CommunicationException, BackendException
-
testBeanInitialization
public void testBeanInitialization() throws CommunicationException- Throws:
CommunicationException
-
-