@ Before public void setUp ( ) { defineApplicationLocales ( ) ; clearKeys ( ) ; List < Key > keys = new ArrayList <> ( ) ; keys . add ( createKey ( KEY_DEFAULT , false , false , false ) ) ; Key outdatedKey = createKey ( KEY_OUTDATED , false , false , false ) ; outdatedKey . setOutdated ( ) ; keys . add ( outdatedKey ) ; keys . add ( createKey ( KEY_TLN_APPROX , true , false , false ) ) ; keys . add ( createKey ( KEY_TLN_OUTDATED , false , true , false ) ) ; keys . add ( createKey ( KEY_TLN_MISSING , false , false , true ) ) ; Key key = keyFactory . createKey ( KEY_WITH_MISSING_TRANSLATION ) ; key . addTranslation ( FR , TRANSLATION_FR ) ; keys . add ( key ) ; for ( Key keyToPersist : keys ) { keyRepository . add ( keyToPersist ) ; } }
Initializes the test .