Class ServicelayerTest

    • Constructor Detail

      • ServicelayerTest

        protected ServicelayerTest()
    • Method Detail

      • createCoreData

        public static void createCoreData()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createDefaultCatalog

        public static void createDefaultCatalog()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createHardwareCatalog

        public static void createHardwareCatalog()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createDefaultUsers

        public static void createDefaultUsers()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • importData

        public void importData​(java.lang.String resource,
                               java.lang.String encoding)
                        throws ImpExException
        Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(java.lang.String, java.lang.String, de.hybris.platform.servicelayer.impex.ImportService)
        Parameters:
        resource - location of classpath resource that will be imported
        encoding - encoding of classpath resource
        Throws:
        ImpExException
      • importData

        public void importData​(ImpExResource resource)
                        throws ImpExException
        Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(de.hybris.platform.servicelayer.impex.ImpExResource, de.hybris.platform.servicelayer.impex.ImportService)
        Parameters:
        resource - impex resource to load
        Throws:
        ImpExException
      • importData

        public ImportResult importData​(ImportConfig config)
                                throws ImpExException
        Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importData(de.hybris.platform.servicelayer.impex.ImportConfig, de.hybris.platform.servicelayer.impex.ImportService)
        Parameters:
        config - with import details.
        Returns:
        import result
        Throws:
        ImpExException
      • importCsv

        protected static void importCsv​(java.lang.String csvFile,
                                        java.lang.String encoding)
                                 throws ImpExException
        Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#importCsv(java.lang.String, java.lang.String)
        Parameters:
        csvFile - name of file to import from classpath
        encoding - encoding to use
        Throws:
        ImpExException
      • importStream

        protected static void importStream​(java.io.InputStream is,
                                           java.lang.String encoding,
                                           java.lang.String resourceName)
                                    throws ImpExException
        Throws:
        ImpExException
      • importStream

        protected static void importStream​(java.io.InputStream is,
                                           java.lang.String encoding,
                                           java.lang.String resourceName,
                                           boolean hijackExceptions)
                                    throws ImpExException
        Throws:
        ImpExException
      • isPrefetchModeNone

        protected boolean isPrefetchModeNone()
        Delegates to de.hybris.platform.servicelayer.ServicelayerTestLogic#isPrefetchModeNone()