@@ -75,7 +75,7 @@ public static PropertyType createPropertyType(Types type, Cardinality card)
7575 return TypeMapping .createPropertyType (type , card );
7676 }
7777
78- public void testGetSetValue () throws Exception
78+ public void testGetSetValue () throws ReflectiveOperationException
7979 {
8080 if (type .type () == Types .Text && type .card () == Cardinality .Simple )
8181 {
@@ -119,11 +119,11 @@ else if (type.card() != Cardinality.Simple)
119119 }
120120 else
121121 {
122- throw new Exception ("Unknown type : " + type );
122+ throw new IllegalArgumentException ("Unknown type : " + type );
123123 }
124124 }
125125
126- public void testGetSetProperty () throws Exception
126+ public void testGetSetProperty () throws ReflectiveOperationException
127127 {
128128 if (type .type () == Types .Text && type .card () == Cardinality .Simple )
129129 {
@@ -187,7 +187,7 @@ else if (type.type() == Types.Thumbnail && type.card() == Cardinality.Alt)
187187 }
188188 else
189189 {
190- throw new Exception ("Unknown type : " + type );
190+ throw new IllegalArgumentException ("Unknown type : " + type );
191191 }
192192 Field [] fields = schemaClass .getFields ();
193193 for (Field field : fields )
@@ -323,7 +323,7 @@ protected String addToValueMethod(String prop)
323323
324324 }
325325
326- protected void testGetSetBooleanProperty () throws Exception
326+ protected void testGetSetBooleanProperty () throws ReflectiveOperationException
327327 {
328328 String setName = setMethod (property );
329329 String getName = getMethod (property );
@@ -338,7 +338,7 @@ protected void testGetSetBooleanProperty() throws Exception
338338
339339 }
340340
341- protected void testGetSetDateProperty () throws Exception
341+ protected void testGetSetDateProperty () throws ReflectiveOperationException
342342 {
343343 String setName = setMethod (property );
344344 String getName = getMethod (property );
@@ -352,7 +352,7 @@ protected void testGetSetDateProperty() throws Exception
352352 assertEquals (value , found );
353353 }
354354
355- protected void testGetSetIntegerProperty () throws Exception
355+ protected void testGetSetIntegerProperty () throws ReflectiveOperationException
356356 {
357357 String setName = setMethod (property );
358358 String getName = getMethod (property );
@@ -366,7 +366,7 @@ protected void testGetSetIntegerProperty() throws Exception
366366 assertEquals (value , found );
367367 }
368368
369- protected void testGetSetTextProperty () throws Exception
369+ protected void testGetSetTextProperty () throws ReflectiveOperationException
370370 {
371371 String setName = setMethod (property );
372372 String getName = getMethod (property );
@@ -381,7 +381,7 @@ protected void testGetSetTextProperty() throws Exception
381381
382382 }
383383
384- protected void testGetSetURIProperty () throws Exception
384+ protected void testGetSetURIProperty () throws ReflectiveOperationException
385385 {
386386 String setName = setMethod (property );
387387 String getName = getMethod (property );
@@ -396,7 +396,7 @@ protected void testGetSetURIProperty() throws Exception
396396
397397 }
398398
399- protected void testGetSetURLProperty () throws Exception
399+ protected void testGetSetURLProperty () throws ReflectiveOperationException
400400 {
401401 String setName = setMethod (property );
402402 String getName = getMethod (property );
@@ -411,7 +411,7 @@ protected void testGetSetURLProperty() throws Exception
411411
412412 }
413413
414- protected void testGetSetAgentNameProperty () throws Exception
414+ protected void testGetSetAgentNameProperty () throws ReflectiveOperationException
415415 {
416416 String setName = setMethod (property );
417417 String getName = getMethod (property );
@@ -427,7 +427,7 @@ protected void testGetSetAgentNameProperty() throws Exception
427427
428428 }
429429
430- protected void testGetSetTextListValue (String tp ) throws Exception
430+ protected void testGetSetTextListValue (String tp ) throws ReflectiveOperationException
431431 {
432432 String setName = addToValueMethod (property );
433433 String getName = getValueMethod (property );
@@ -448,7 +448,7 @@ protected void testGetSetTextListValue(String tp) throws Exception
448448 }
449449 }
450450
451- protected void testGetSetDateListValue (String tp ) throws Exception
451+ protected void testGetSetDateListValue (String tp ) throws ReflectiveOperationException
452452 {
453453 String setName = addToValueMethod (property );
454454 String getName = getValueMethod (property );
@@ -469,7 +469,7 @@ protected void testGetSetDateListValue(String tp) throws Exception
469469 }
470470 }
471471
472- protected void testGetSetThumbnail () throws Exception
472+ protected void testGetSetThumbnail () throws ReflectiveOperationException
473473 {
474474 String addName = addMethod (property );
475475 String getName = getMethod (property );
@@ -489,7 +489,7 @@ protected void testGetSetThumbnail() throws Exception
489489 assertEquals (img , t1 .getImage ());
490490 }
491491
492- protected void testGetSetLangAltValue () throws Exception
492+ protected void testGetSetLangAltValue () throws ReflectiveOperationException
493493 {
494494 String setName = addToValueMethod (property );
495495 String getName = getValueMethod (property );
@@ -513,7 +513,7 @@ protected void testGetSetLangAltValue() throws Exception
513513 }
514514 }
515515
516- protected void testGetSetURLValue () throws Exception
516+ protected void testGetSetURLValue () throws ReflectiveOperationException
517517 {
518518 String setName = addToValueMethod (property );
519519 String getName = getValueMethod (property );
@@ -534,7 +534,7 @@ protected void testGetSetURLValue() throws Exception
534534 }
535535 }
536536
537- protected void testGetSetTextValue () throws Exception
537+ protected void testGetSetTextValue () throws ReflectiveOperationException
538538 {
539539 String setName = setValueMethod (property );
540540 String getName = getValueMethod (property );
@@ -548,7 +548,7 @@ protected void testGetSetTextValue() throws Exception
548548 assertEquals (value , found );
549549 }
550550
551- protected void testGetSetBooleanValue () throws Exception
551+ protected void testGetSetBooleanValue () throws ReflectiveOperationException
552552 {
553553 String setName = setValueMethod (property );
554554 String getName = getValueMethod (property );
@@ -562,7 +562,7 @@ protected void testGetSetBooleanValue() throws Exception
562562 assertEquals (value , found );
563563 }
564564
565- protected void testGetSetDateValue () throws Exception
565+ protected void testGetSetDateValue () throws ReflectiveOperationException
566566 {
567567 String setName = setValueMethod (property );
568568 String getName = getValueMethod (property );
@@ -576,7 +576,7 @@ protected void testGetSetDateValue() throws Exception
576576 assertEquals (value , found );
577577 }
578578
579- protected void testGetSetIntegerValue () throws Exception
579+ protected void testGetSetIntegerValue () throws ReflectiveOperationException
580580 {
581581 String setName = setValueMethod (property );
582582 String getName = getValueMethod (property );
0 commit comments