mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
VoiceData.Exception: use AssertionError instead of Exception to get the language in the JUnit results.
This commit is contained in:
@@ -154,7 +154,7 @@ public class SpeechSynthesisTest extends AndroidTestCase
|
||||
assertThat(voice.locale.getVariant(), is(data.variant));
|
||||
assertThat(voice.toString(), is(data.name));
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (AssertionError e)
|
||||
{
|
||||
throw new VoiceData.Exception(data, e);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ public class TextToSpeechTest extends AndroidTestCase
|
||||
assertThat(mEngine.getLanguage().getCountry(), is(""));
|
||||
assertThat(mEngine.getLanguage().getVariant(), is(""));
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (AssertionError e)
|
||||
{
|
||||
throw new VoiceData.Exception(data, e);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class VoiceData
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Exception(Voice voice, java.lang.Exception context)
|
||||
public Exception(Voice voice, AssertionError context)
|
||||
{
|
||||
super("Voice \"" + voice.name + "\" -- " + context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user