Revision 19356 trunk/libraries/libUIComponent/src-test-ui/org/gvsig/gui/beans/panelGroup/Test1ExceptionsUsingTabbedPanel.java

View differences:

Test1ExceptionsUsingTabbedPanel.java
22 22
import junit.framework.TestCase;
23 23

  
24 24
import org.gvsig.exceptions.BaseException;
25
import org.gvsig.gui.beans.Messages;
25 26
import org.gvsig.gui.beans.panelGroup.loaders.PanelGroupLoaderFromList;
26 27
import org.gvsig.gui.beans.panelGroup.samples.Samples_Data;
27 28
import org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel;
......
66 67
	 * <p>Test the 'PanelGroup' exceptions </p>
67 68
	 */
68 69
	public void test1() {
69
		validationText = "Couldn\'t add some panels to the panel-group component:\n  Couldn\'t load some panels from a list of classes:\n  Error loading a_panel: / by zero.";
70
		validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n  " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n  Error cargando un panel: / by zero.";
70 71
		
71 72
		try {
72 73
			System.out.println("----- Test 1 -----");
......
96 97
	 * <p>Test the 'PanelGroup' exceptions </p>
97 98
	 */
98 99
	public void test2() {
99
		validationText = "Couldn\'t add some panels to the panel-group component:\n  Panel with label \"Information_LABEL\" without preferred size defined.";
100
		validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n  Panel de etiqueta Information_LABEL sin tama?o inicial definido.";
100 101
		
101 102
		try {
102 103
			System.out.println("----- Test 2 -----");
......
126 127
	 * <p>Test the 'PanelGroup' exceptions </p>
127 128
	 */
128 129
	public void test3() {
129
		validationText = "No panel loaded.";
130
		validationText = Messages.getText("empty_panel_group_exception");
130 131

  
131 132
		try {
132 133
			System.out.println("----- Test 3 -----");
......
156 157
	 * <p>Test the 'PanelGroup' exceptions </p>
157 158
	 */
158 159
	public void test4() {
159
		validationText = "No panel in the graphical user interface.";
160
		validationText = Messages.getText("empty_panel_group_gui_exception");
160 161

  
161 162
		try {
162 163
			System.out.println("----- Test 4 -----");
......
186 187
	 * <p>Test the 'PanelGroup' exceptions </p>
187 188
	 */
188 189
	public void test5() {
189
		validationText = "Couldn\'t add some panels to the panel-group component:\n  Couldn\'t load some panels from a list of classes:\n  Error loading a_panel: / by zero.\n  Panel with label \"Information_LABEL\" without preferred size defined.\n  No panel loaded.";
190
		validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n  " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n  Error cargando un panel: / by zero.\n  Panel de etiqueta Information_LABEL sin tama?o inicial definido.\n  " + Messages.getText("empty_panel_group_exception");
190 191

  
191 192
		try {
192 193
			System.out.println("----- Test 5 -----");
......
216 217
	 * <p>Test the 'PanelGroup' exceptions </p>
217 218
	 */
218 219
	public void test6() {
219
		validationText = "Couldn\'t add some panels to the panel-group component:\n  Couldn\'t load some panels from a list of classes:\n  Error loading a_panel: / by zero.\n  Panel with label \"Information_LABEL\" without preferred size defined.\n  No panel in the graphical user interface.";
220
		validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n  " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n  Error cargando un panel: / by zero.\n  Panel de etiqueta Information_LABEL sin tama?o inicial definido.\n  " + Messages.getText("empty_panel_group_gui_exception");
220 221

  
221 222
		try {
222 223
			System.out.println("----- Test 6 -----");
......
246 247
	 * <p>Test the 'PanelGroup' exceptions </p>
247 248
	 */
248 249
	public void test7() {
249
		validationText = "Couldn\'t add some panels to the panel-group component:\n  Couldn\'t load some panels from a list of classes:\n  Error loading a_panel: / by zero.\n  Panel with label \"Information_LABEL\" without preferred size defined.";
250
		validationText = Messages.getText("couldnt_add_some_panel_exception") + "\n  " + Messages.getText("couldnt_load_panels_from_list_exception") + "\n  Error cargando un panel: / by zero.\n  Panel de etiqueta Information_LABEL sin tama?o inicial definido.";
250 251

  
251 252
		try {
252 253
			System.out.println("----- Test 7 -----");

Also available in: Unified diff