| 1 | /* |
| 2 | * JTiger Unit Testing Framework for J2SE 1.5 |
| 3 | * Copyright (C) 2005 Tony Morris |
| 4 | * |
| 5 | * This software is licenced under the |
| 6 | * Common Public Licence version 1.0 |
| 7 | * http://www.opensource.org/licenses/cpl1.0.php |
| 8 | * |
| 9 | * You received a copy of this licence with this software. |
| 10 | */ |
| 11 | package org.jtiger.ant; |
| 12 | |
| 13 | import java.text.MessageFormat; |
| 14 | import java.util.ResourceBundle; |
| 15 | |
| 16 | final class BuildExceptionMessages |
| 17 | { |
| 18 | public static final String BUNDLE = "org/jtiger/ant/BuildExceptionMessages"; |
| 19 | |
| 20 | private BuildExceptionMessages() |
| 21 | { |
| 22 | |
| 23 | } |
| 24 | |
| 25 | public static String missingJavaElement() |
| 26 | { |
| 27 | return ResourceBundle.getBundle(BuildExceptionMessages.BUNDLE).getString("missing.java.element"); |
| 28 | } |
| 29 | |
| 30 | public static String missingFixturesElement() |
| 31 | { |
| 32 | return ResourceBundle.getBundle(BuildExceptionMessages.BUNDLE).getString("missing.fixtures.element"); |
| 33 | } |
| 34 | |
| 35 | public static String missingFixturesClasses() |
| 36 | { |
| 37 | return ResourceBundle.getBundle(BuildExceptionMessages.BUNDLE).getString("missing.fixtures.classes"); |
| 38 | } |
| 39 | |
| 40 | public static String missingClassnameAttributeFixtureElement() |
| 41 | { |
| 42 | return ResourceBundle.getBundle(BuildExceptionMessages.BUNDLE).getString("missing.classname.attribute.fixture.element"); |
| 43 | } |
| 44 | |
| 45 | public static String missingRegexAttributeCategoryElement() |
| 46 | { |
| 47 | return ResourceBundle.getBundle(BuildExceptionMessages.BUNDLE).getString("missing.regex.attribute.category.element"); |
| 48 | } |
| 49 | |
| 50 | public static String missingNameAttributeResultElement() |
| 51 | { |
| 52 | return ResourceBundle.getBundle(BuildExceptionMessages.BUNDLE).getString("missing.name.attribute.result.element"); |
| 53 | } |
| 54 | |
| 55 | public static String badResultName(final String name) |
| 56 | { |
| 57 | return MessageFormat.format( |
| 58 | ResourceBundle.getBundle(BuildExceptionMessages.BUNDLE).getString("bad.result.name"), |
| 59 | name); |
| 60 | } |
| 61 | } |
| 62 | |