@IntegrationTest public class LocalizationFilesTest extends HybrisJUnit4Test
jaloSession| Constructor and Description |
|---|
LocalizationFilesTest() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValidUTF8(byte[] bytes)
Checks if given byte array is correctly UTF-8 encoded.
|
static void |
setUp() |
static void |
tearDown() |
void |
testCorrectXmlUTF8Tag()
Tests if the XML-specific UTF-8 Tag is present.
|
void |
testEncodedInUTF8()
Checks if the file was formatted correctly in UTF-8.
|
void |
testIfWithoutByteOrderMark()
Tests if the property-files are Byte-Order-Mark-less because this could cause problems.
|
void |
testLocalizationFilesHaveCharsetByteOrderMark()
Test to determine if files have a Byte-Order-Mark and fails if they don't.
|
void |
testXmlNotUIConfigFile()
Tests if there are XML-files present.
|
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic static void setUp()
public static void tearDown()
public void testEncodedInUTF8()
public void testCorrectXmlUTF8Tag()
public void testXmlNotUIConfigFile()
public void testIfWithoutByteOrderMark()
public void testLocalizationFilesHaveCharsetByteOrderMark()
public static boolean isValidUTF8(byte[] bytes)
bytes - That have been read from somewhere.Copyright © 2018 SAP SE. All Rights Reserved.