Skip to content

Commit

Permalink
VoiceData.Exception: use AssertionError instead of Exception to get t…
Browse files Browse the repository at this point in the history
…he language in the JUnit results.
  • Loading branch information
rhdunn committed Dec 17, 2012
1 parent 87ccc3a commit 32efff8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -154,7 +154,7 @@ public void testAvailableVoices()
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);
}
Expand Down
Expand Up @@ -137,7 +137,7 @@ public void testLanguages()
assertThat(mEngine.getLanguage().getCountry(), is(""));
assertThat(mEngine.getLanguage().getVariant(), is(""));
}
catch (Exception e)
catch (AssertionError e)
{
throw new VoiceData.Exception(data, e);
}
Expand Down
Expand Up @@ -58,7 +58,7 @@ public static class Exception extends AssertionError
{
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);
}
Expand Down

0 comments on commit 32efff8

Please sign in to comment.