GenerateTranslationTester<T> class

An abstract class that allows to test a TranslationFormat in a standarized test with diverse messages.

The implementation of this class should use testGenerateTemplate to compare the template files (eg. templateSimpleMessage) with the result of generating the template with the desired format from the expected translatedMessages

See alse MonolingualFormatTester, MultilingualGenerateTemplateTester

Implemented types
Implementers

Constructors

GenerateTranslationTester()

Properties

defaultLocale String
read-only, inherited
format TranslationFormat<FileData>
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
messages Map<String, MainMessage>
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
templateAllMessages → T
read-only
templateMessageWithMetadata → T
read-only
templatePluralMessage → T
read-only
templateSimpleMessage → T
Template file
read-only
templateVariableMessage → T
read-only
translatedMessages Map<String, MainMessage>
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
testGenerateTemplate() → dynamic
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited