testGetProperties: Not yet implemented
testReset: Not yet implemented
testCancel: Not yet implemented
testGetServletContext: Not yet implemented
testIsChecked: Not yet implemented
testHasErrors: Not yet implemented
testGetRealPath: Not yet implemented
Clover Coverage Report - SmartWeb
Coverage timestamp: Sun Jun 8 2008 21:20:12 CEST
175   797   126   1,41
4   523   0,72   41,33
124     1,02  
3    
 
  ActionTest       Line # 44 61 16 68,8% 0.6883117
  ActionTest.Form       Line # 64 57 55 96,5% 0.96460176
  ActionTest.Bean       Line # 349 57 55 96,5% 0.96460176
 
  (13)
 
1    /*
2    * The SmartWeb Framework
3    * Copyright (C) 2004-2006
4    *
5    * This library is free software; you can redistribute it and/or
6    * modify it under the terms of the GNU Lesser General Public
7    * License as published by the Free Software Foundation; either
8    * version 2.1 of the License, or (at your option) any later version.
9    *
10    * This library is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this library; if not, write to the Free Software
17    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18    *
19    * For further informations on the SmartWeb Framework please visit
20    *
21    * http://smartweb.sourceforge.net
22    */
23    package net.smartlab.web;
24   
25    import java.math.BigDecimal;
26    import java.math.BigInteger;
27    import java.util.Locale;
28    import javax.servlet.http.HttpServletRequest;
29    import javax.servlet.http.HttpServletResponse;
30    import junit.framework.TestCase;
31    import org.apache.commons.beanutils.locale.LocaleBeanUtilsBean;
32    import org.apache.commons.beanutils.locale.LocaleConvertUtilsBean;
33    import org.apache.commons.lang.builder.EqualsBuilder;
34    import org.apache.commons.lang.builder.HashCodeBuilder;
35    import org.apache.commons.lang.builder.ToStringBuilder;
36    import org.apache.struts.action.ActionForm;
37    import org.apache.struts.action.ActionForward;
38    import org.apache.struts.action.ActionMapping;
39   
40    /**
41    * @TODO documentation
42    * @author rlogiacco
43    */
 
44    public class ActionTest extends TestCase {
45   
46    Action mock = new Action() {
47   
 
48  0 toggle protected ActionForward execute(ActionForm form, HttpServletRequest request, HttpServletResponse response,
49    ActionMapping mapping) throws Exception {
50    // TODO Auto-generated method stub
51  0 return null;
52    }
53    };
54   
55    private Bean beanEmpty;
56   
57    private Bean beanFull;
58   
59    private Form formEmpty;
60   
61    private Form formFull;
62   
63   
 
64    public class Form extends ActionForm {
65   
66    private String bool;
67   
68    private String[] bools;
69   
70    private String b;
71   
72    private String[] bs;
73   
74    private String s;
75   
76    private String[] ss;
77   
78    private String i;
79   
80    private String[] is;
81   
82    private String l;
83   
84    private String[] ls;
85   
86    private String f;
87   
88    private String[] fs;
89   
90    private String d;
91   
92    private String[] ds;
93   
94    private String ud;
95   
96    private String[] uds;
97   
98    private String sd;
99   
100    private String[] sds;
101   
102    private String st;
103   
104    private String[] sts;
105   
106    private String ts;
107   
108    private String[] tss;
109   
110    private String bi;
111   
112    private String[] bis;
113   
114    private String bd;
115   
116    private String[] bds;
117   
118   
 
119  1 toggle public String getB() {
120  1 return b;
121    }
122   
 
123  1 toggle public void setB(String b) {
124  1 this.b = b;
125    }
126   
 
127  1 toggle public String getBool() {
128  1 return bool;
129    }
130   
 
131  1 toggle public void setBool(String bool) {
132  1 this.bool = bool;
133    }
134   
 
135  1 toggle public String[] getBools() {
136  1 return bools;
137    }
138   
 
139  1 toggle public void setBools(String[] bools) {
140  1 this.bools = bools;
141    }
142   
 
143  1 toggle public String[] getBs() {
144  1 return bs;
145    }
146   
 
147  1 toggle public void setBs(String[] bs) {
148  1 this.bs = bs;
149    }
150   
 
151  1 toggle public String getD() {
152  1 return d;
153    }
154   
 
155  1 toggle public void setD(String d) {
156  1 this.d = d;
157    }
158   
 
159  1 toggle public String[] getDs() {
160  1 return ds;
161    }
162   
 
163  1 toggle public void setDs(String[] ds) {
164  1 this.ds = ds;
165    }
166   
 
167  1 toggle public String getF() {
168  1 return f;
169    }
170   
 
171  1 toggle public void setF(String f) {
172  1 this.f = f;
173    }
174   
 
175  1 toggle public String[] getFs() {
176  1 return fs;
177    }
178   
 
179  1 toggle public void setFs(String[] fs) {
180  1 this.fs = fs;
181    }
182   
 
183  1 toggle public String getI() {
184  1 return i;
185    }
186   
 
187  1 toggle public void setI(String i) {
188  1 this.i = i;
189    }
190   
 
191  1 toggle public String[] getIs() {
192  1 return is;
193    }
194   
 
195  1 toggle public void setIs(String[] is) {
196  1 this.is = is;
197    }
198   
 
199  1 toggle public String getL() {
200  1 return l;
201    }
202   
 
203  1 toggle public void setL(String l) {
204  1 this.l = l;
205    }
206   
 
207  1 toggle public String[] getLs() {
208  1 return ls;
209    }
210   
 
211  1 toggle public void setLs(String[] ls) {
212  1 this.ls = ls;
213    }
214   
 
215  1 toggle public String getS() {
216  1 return s;
217    }
218   
 
219  1 toggle public void setS(String s) {
220  1 this.s = s;
221    }
222   
 
223  1 toggle public String[] getSs() {
224  1 return ss;
225    }
226   
 
227  1 toggle public void setSs(String[] ss) {
228  1 this.ss = ss;
229    }
230   
 
231  1 toggle public String getBd() {
232  1 return bd;
233    }
234   
 
235  1 toggle public void setBd(String bd) {
236  1 this.bd = bd;
237    }
238   
 
239  1 toggle public String[] getBds() {
240  1 return bds;
241    }
242   
 
243  1 toggle public void setBds(String[] bds) {
244  1 this.bds = bds;
245    }
246   
 
247  1 toggle public String getBi() {
248  1 return bi;
249    }
250   
 
251  1 toggle public void setBi(String bi) {
252  1 this.bi = bi;
253    }
254   
 
255  1 toggle public String[] getBis() {
256  1 return bis;
257    }
258   
 
259  1 toggle public void setBis(String[] bis) {
260  1 this.bis = bis;
261    }
262   
 
263  1 toggle public String getSd() {
264  1 return sd;
265    }
266   
 
267  1 toggle public void setSd(String sd) {
268  1 this.sd = sd;
269    }
270   
 
271  1 toggle public String[] getSds() {
272  1 return sds;
273    }
274   
 
275  1 toggle public void setSds(String[] sds) {
276  1 this.sds = sds;
277    }
278   
 
279  1 toggle public String getSt() {
280  1 return st;
281    }
282   
 
283  1 toggle public void setSt(String st) {
284  1 this.st = st;
285    }
286   
 
287  1 toggle public String[] getSts() {
288  1 return sts;
289    }
290   
 
291  1 toggle public void setSts(String[] sts) {
292  1 this.sts = sts;
293    }
294   
 
295  1 toggle public String getTs() {
296  1 return ts;
297    }
298   
 
299  1 toggle public void setTs(String ts) {
300  1 this.ts = ts;
301    }
302   
 
303  1 toggle public String[] getTss() {
304  1 return tss;
305    }
306   
 
307  1 toggle public void setTss(String[] tss) {
308  1 this.tss = tss;
309    }
310   
 
311  1 toggle public String getUd() {
312  1 return ud;
313    }
314   
 
315  1 toggle public void setUd(String ud) {
316  1 this.ud = ud;
317    }
318   
 
319  1 toggle public String[] getUds() {
320  1 return uds;
321    }
322   
 
323  1 toggle public void setUds(String[] uds) {
324  1 this.uds = uds;
325    }
326   
 
327  1 toggle public boolean equals(final Object other) {
328  1 if (!(other instanceof Form))
329  0 return false;
330  1 Form castOther = (Form)other;
331  1 return new EqualsBuilder().append(bool, castOther.bool).append(bools, castOther.bools).append(b,
332    castOther.b).append(bs, castOther.bs).append(s, castOther.s).append(ss, castOther.ss).append(i,
333    castOther.i).append(is, castOther.is).append(l, castOther.l).append(ls, castOther.ls).append(f,
334    castOther.f).append(fs, castOther.fs).append(d, castOther.d).append(ds, castOther.ds).append(ud,
335    castOther.ud).append(uds, castOther.uds).append(sd, castOther.sd).append(sds, castOther.sds)
336    .append(st, castOther.st).append(sts, castOther.sts).append(ts, castOther.ts).append(tss,
337    castOther.tss).append(bi, castOther.bi).append(bis, castOther.bis).append(bd, castOther.bd)
338    .append(bds, castOther.bds).isEquals();
339    }
340   
 
341  0 toggle public int hashCode() {
342  0 return new HashCodeBuilder().append(bool).append(bools).append(b).append(bs).append(s).append(ss).append(i)
343    .append(is).append(l).append(ls).append(f).append(fs).append(d).append(ds).append(ud).append(uds)
344    .append(sd).append(sds).append(st).append(sts).append(ts).append(tss).append(bi).append(bis)
345    .append(bd).append(bds).toHashCode();
346    }
347    }
348   
 
349    public class Bean {
350   
351    private boolean bool;
352   
353    private boolean[] bools;
354   
355    private byte b;
356   
357    private byte[] bs;
358   
359    private short s;
360   
361    private short[] ss;
362   
363    private int i;
364   
365    private int[] is;
366   
367    private long l;
368   
369    private long[] ls;
370   
371    private float f;
372   
373    private float[] fs;
374   
375    private double d;
376   
377    private double[] ds;
378   
379    private java.util.Date ud;
380   
381    private java.util.Date[] uds;
382   
383    private java.sql.Date sd;
384   
385    private java.sql.Date[] sds;
386   
387    private java.sql.Time st;
388   
389    private java.sql.Time[] sts;
390   
391    private java.sql.Timestamp ts;
392   
393    private java.sql.Timestamp[] tss;
394   
395    private BigInteger bi;
396   
397    private BigInteger[] bis;
398   
399    private BigDecimal bd;
400   
401    private BigDecimal[] bds;
402   
403   
 
404  1 toggle public byte getB() {
405  1 return b;
406    }
407   
 
408  1 toggle public void setB(byte b) {
409  1 this.b = b;
410    }
411   
 
412  1 toggle public boolean isBool() {
413  1 return bool;
414    }
415   
 
416  1 toggle public void setBool(boolean bool) {
417  1 this.bool = bool;
418    }
419   
 
420  1 toggle public boolean[] getBools() {
421  1 return bools;
422    }
423   
 
424  1 toggle public void setBools(boolean[] bools) {
425  1 this.bools = bools;
426    }
427   
 
428  1 toggle public byte[] getBs() {
429  1 return bs;
430    }
431   
 
432  1 toggle public void setBs(byte[] bs) {
433  1 this.bs = bs;
434    }
435   
 
436  1 toggle public double getD() {
437  1 return d;
438    }
439   
 
440  1 toggle public void setD(double d) {
441  1 this.d = d;
442    }
443   
 
444  1 toggle public double[] getDs() {
445  1 return ds;
446    }
447   
 
448  1 toggle public void setDs(double[] ds) {
449  1 this.ds = ds;
450    }
451   
 
452  1 toggle public float getF() {
453  1 return f;
454    }
455   
 
456  1 toggle public void setF(float f) {
457  1 this.f = f;
458    }
459   
 
460  1 toggle public float[] getFs() {
461  1 return fs;
462    }
463   
 
464  1 toggle public void setFs(float[] fs) {
465  1 this.fs = fs;
466    }
467   
 
468  1 toggle public int getI() {
469  1 return i;
470    }
471   
 
472  1 toggle public void setI(int i) {
473  1 this.i = i;
474    }
475   
 
476  1 toggle public int[] getIs() {
477  1 return is;
478    }
479   
 
480  1 toggle public void setIs(int[] is) {
481  1 this.is = is;
482    }
483   
 
484  1 toggle public long getL() {
485  1 return l;
486    }
487   
 
488  1 toggle public void setL(long l) {
489  1 this.l = l;
490    }
491   
 
492  1 toggle public long[] getLs() {
493  1 return ls;
494    }
495   
 
496  1 toggle public void setLs(long[] ls) {
497  1 this.ls = ls;
498    }
499   
 
500  1 toggle public short getS() {
501  1 return s;
502    }
503   
 
504  1 toggle public void setS(short s) {
505  1 this.s = s;
506    }
507   
 
508  1 toggle public short[] getSs() {
509  1 return ss;
510    }
511   
 
512  1 toggle public void setSs(short[] ss) {
513  1 this.ss = ss;
514    }
515   
 
516  1 toggle public BigDecimal getBd() {
517  1 return bd;
518    }
519   
 
520  1 toggle public void setBd(BigDecimal bd) {
521  1 this.bd = bd;
522    }
523   
 
524  1 toggle public BigDecimal[] getBds() {
525  1 return bds;
526    }
527   
 
528  1 toggle public void setBds(BigDecimal[] bds) {
529  1 this.bds = bds;
530    }
531   
 
532  1 toggle public BigInteger getBi() {
533  1 return bi;
534    }
535   
 
536  1 toggle public void setBi(BigInteger bi) {
537  1 this.bi = bi;
538    }
539   
 
540  1 toggle public BigInteger[] getBis() {
541  1 return bis;
542    }
543   
 
544  1 toggle public void setBis(BigInteger[] bis) {
545  1 this.bis = bis;
546    }
547   
 
548  1 toggle public java.sql.Date getSd() {
549  1 return sd;
550    }
551   
 
552  1 toggle public void setSd(java.sql.Date sd) {
553  1 this.sd = sd;
554    }
555   
 
556  1 toggle public java.sql.Date[] getSds() {
557  1 return sds;
558    }
559   
 
560  1 toggle public void setSds(java.sql.Date[] sds) {
561  1 this.sds = sds;
562    }
563   
 
564  1 toggle public java.sql.Time getSt() {
565  1 return st;
566    }
567   
 
568  1 toggle public void setSt(java.sql.Time st) {
569  1 this.st = st;
570    }
571   
 
572  1 toggle public java.sql.Time[] getSts() {
573  1 return sts;
574    }
575   
 
576  1 toggle public void setSts(java.sql.Time[] sts) {
577  1 this.sts = sts;
578    }
579   
 
580  1 toggle public java.sql.Timestamp getTs() {
581  1 return ts;
582    }
583   
 
584  1 toggle public void setTs(java.sql.Timestamp ts) {
585  1 this.ts = ts;
586    }
587   
 
588  1 toggle public java.sql.Timestamp[] getTss() {
589  1 return tss;
590    }
591   
 
592  1 toggle public void setTss(java.sql.Timestamp[] tss) {
593  1 this.tss = tss;
594    }
595   
 
596  1 toggle public java.util.Date getUd() {
597  1 return ud;
598    }
599   
 
600  1 toggle public void setUd(java.util.Date ud) {
601  1 this.ud = ud;
602    }
603   
 
604  1 toggle public java.util.Date[] getUds() {
605  1 return uds;
606    }
607   
 
608  1 toggle public void setUds(java.util.Date[] uds) {
609  1 this.uds = uds;
610    }
611   
 
612  1 toggle public boolean equals(final Object other) {
613  1 if (!(other instanceof Bean))
614  0 return false;
615  1 Bean castOther = (Bean)other;
616  1 return new EqualsBuilder().append(bool, castOther.bool).append(bools, castOther.bools).append(b,
617    castOther.b).append(bs, castOther.bs).append(s, castOther.s).append(ss, castOther.ss).append(i,
618    castOther.i).append(is, castOther.is).append(l, castOther.l).append(ls, castOther.ls).append(f,
619    castOther.f).append(fs, castOther.fs).append(d, castOther.d).append(ds, castOther.ds).append(ud,
620    castOther.ud).append(uds, castOther.uds).append(sd, castOther.sd).append(sds, castOther.sds)
621    .append(st, castOther.st).append(sts, castOther.sts).append(ts, castOther.ts).append(tss,
622    castOther.tss).append(bi, castOther.bi).append(bis, castOther.bis).append(bd, castOther.bd)
623    .append(bds, castOther.bds).isEquals();
624    }
625   
 
626  0 toggle public int hashCode() {
627  0 return new HashCodeBuilder().append(bool).append(bools).append(b).append(bs).append(s).append(ss).append(i)
628    .append(is).append(l).append(ls).append(f).append(fs).append(d).append(ds).append(ud).append(uds)
629    .append(sd).append(sds).append(st).append(sts).append(ts).append(tss).append(bi).append(bis)
630    .append(bd).append(bds).toHashCode();
631    }
632    };
633   
634   
635    /**
636    * @see junit.framework.TestCase#setUp()
637    */
 
638  13 toggle protected void setUp() throws Exception {
639  13 super.setUp();
640  13 beanEmpty = new Bean();
641  13 beanFull = new Bean();
642  13 beanFull.bool = true;
643  13 beanFull.bools = new boolean[] {true, false, true};
644  13 beanFull.b = 5;
645  13 beanFull.bs = new byte[] {Byte.MAX_VALUE, Byte.MIN_VALUE, 0};
646  13 beanFull.s = 6;
647  13 beanFull.ss = new short[] {Short.MAX_VALUE, Short.MIN_VALUE, 8, 9};
648  13 beanFull.i = 100;
649  13 beanFull.is = new int[] {Integer.MAX_VALUE, Integer.MIN_VALUE, 103};
650  13 beanFull.l = 5000;
651  13 beanFull.ls = new long[] {Long.MAX_VALUE, Long.MIN_VALUE, 7000};
652  13 beanFull.f = 300.345f;
653  13 beanFull.fs = new float[] {Float.MAX_VALUE, Float.MIN_VALUE, 300.345f};
654  13 beanFull.d = 345.3004;
655  13 beanFull.ds = new double[] {Double.MAX_VALUE, Double.MIN_VALUE, 300.345};
656  13 formEmpty = new Form();
657  13 formFull = new Form();
658  13 formFull.bool = "true";
659  13 formFull.bools = new String[] {"true", "false", "true"};
660  13 formFull.b = "5";
661  13 formFull.bs = new String[] {"127", "-128", "0"};
662  13 formFull.s = "6";
663  13 formFull.ss = new String[] {"32767", "-32768", "8", "9"};
664  13 formFull.i = "100";
665  13 formFull.is = new String[] {"2147483647", "-2147483648", "103"};
666  13 formFull.l = "5000";
667  13 formFull.ls = new String[] {"9223372036854775807", "-9223372036854775808", "7000"};
668  13 formFull.f = "300.345";
669  13 formFull.fs = new String[] {"3.4028235E38", "1.4E-45", "300.345"};
670  13 formFull.d = "345.3004";
671  13 formFull.ds = new String[] {"1.7976931348623157E308", "4.9E-324", "300.345"};
672    }
673   
674    /**
675    * @see junit.framework.TestCase#tearDown()
676    */
 
677  13 toggle protected void tearDown() throws Exception {
678  13 super.tearDown();
679    }
680   
681    /**
682    * Test method for
683    * {@link net.smartlab.web.Action#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)}.
684    */
 
685  1 toggle public void testExecuteActionMappingActionFormHttpServletRequestHttpServletResponse() {
686  1 Test failure here fail("Not yet implemented");
687    }
688   
689    /**
690    * Test method for
691    * {@link net.smartlab.web.Action#execute(org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping)}.
692    */
 
693  1 toggle public void testExecuteActionFormHttpServletRequestHttpServletResponseActionMapping() {
694  1 Test failure here fail("Not yet implemented");
695    }
696   
697    /**
698    * Test method for
699    * {@link net.smartlab.web.Action#cancel(org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping)}.
700    */
 
701  1 toggle public void testCancel() {
702  1 Test failure here fail("Not yet implemented");
703    }
704   
705    /**
706    * Test method for
707    * {@link net.smartlab.web.Action#valorize(org.apache.struts.action.ActionForm, java.lang.Object, java.util.Locale)}.
708    */
 
709  1 toggle public void testValorize() throws Exception {
710    // Test cuncurrency
711  1 LocaleConvertUtilsBean converterItaly = new LocaleConvertUtilsBean();
712  1 converterItaly.setDefaultLocale(Locale.ITALY);
713  1 LocaleConvertUtilsBean converterCanada = new LocaleConvertUtilsBean();
714  1 converterCanada.setDefaultLocale(Locale.CANADA);
715  1 LocaleBeanUtilsBean utilItaly = new LocaleBeanUtilsBean(converterItaly);
716  1 LocaleBeanUtilsBean utilCanada = new LocaleBeanUtilsBean(converterCanada);
717  1 super.assertEquals(utilItaly.getDefaultLocale(), Locale.ITALY);
718  1 super.assertEquals(utilCanada.getDefaultLocale(), Locale.CANADA);
719    //
720  1 Locale locale = Locale.ITALY;
721  1 formFull.bools = new String[] {"yes","no","y"};
722  1 mock.valorize(formFull, beanEmpty, locale);
723  1 super.assertEquals(beanFull, beanEmpty);
724    }
725   
726    /**
727    * Test method for
728    * {@link net.smartlab.web.Action#populate(org.apache.struts.action.ActionForm, java.lang.Object, java.util.Locale)}.
729    */
 
730  1 toggle public void testPopulate() throws Exception {
731  1 Locale locale = Locale.ITALY;
732  1 mock.populate(formEmpty, beanFull, locale);
733  1 super.assertEquals(formFull, formEmpty);
734    }
735   
736    /**
737    * Test method for
738    * {@link net.smartlab.web.Action#reset(org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionMapping)}.
739    */
 
740  1 toggle public void testReset() {
741  1 Test failure here fail("Not yet implemented");
742    }
743   
744    /**
745    * Test method for
746    * {@link net.smartlab.web.Action#hasErrors(javax.servlet.http.HttpServletRequest)}.
747    */
 
748  1 toggle public void testHasErrors() {
749  1 Test failure here fail("Not yet implemented");
750    }
751   
752    /**
753    * Test method for
754    * {@link net.smartlab.web.Action#addError(org.apache.struts.action.ActionMessage, javax.servlet.http.HttpServletRequest)}.
755    */
 
756  1 toggle public void testAddErrorActionMessageHttpServletRequest() {
757  1 Test failure here fail("Not yet implemented");
758    }
759   
760    /**
761    * Test method for
762    * {@link net.smartlab.web.Action#addError(java.lang.String, org.apache.struts.action.ActionMessage, javax.servlet.http.HttpServletRequest)}.
763    */
 
764  1 toggle public void testAddErrorStringActionMessageHttpServletRequest() {
765  1 Test failure here fail("Not yet implemented");
766    }
767   
768    /**
769    * Test method for
770    * {@link net.smartlab.web.Action#isChecked(java.lang.String, javax.servlet.http.HttpServletRequest)}.
771    */
 
772  1 toggle public void testIsChecked() {
773  1 Test failure here fail("Not yet implemented");
774    }
775   
776    /**
777    * Test method for {@link net.smartlab.web.Action#getServletContext()}.
778    */
 
779  1 toggle public void testGetServletContext() {
780  1 Test failure here fail("Not yet implemented");
781    }
782   
783    /**
784    * Test method for
785    * {@link net.smartlab.web.Action#getRealPath(java.lang.String)}.
786    */
 
787  1 toggle public void testGetRealPath() {
788  1 Test failure here fail("Not yet implemented");
789    }
790   
791    /**
792    * Test method for {@link net.smartlab.web.Action#getProperties()}.
793    */
 
794  1 toggle public void testGetProperties() {
795  1 Test failure here fail("Not yet implemented");
796    }
797    }