Source Code Cross Referenced for CompositeDateSpringUnitTest.java in  » Testing » springunit-0.6 » org » springunit » examples » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » springunit 0.6 » org.springunit.examples 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.springunit.examples;
002:
003:        import org.springunit.framework.SpringUnitContext;
004:        import org.springunit.framework.SpringUnitTest;
005:
006:        public class CompositeDateSpringUnitTest extends SpringUnitTest {
007:
008:            public SpringUnitContext getCompositeDateSpringUnitTest() {
009:                return this .compositeDateSpringUnitTest;
010:            }
011:
012:            public void setCompositeDateSpringUnitTest(
013:                    SpringUnitContext compositeDateSpringUnitTest) {
014:                this .compositeDateSpringUnitTest = compositeDateSpringUnitTest;
015:            }
016:
017:            public void testConstructor20060101() throws Exception {
018:                runConstructor();
019:            }
020:
021:            public void testConstructor20061231() throws Exception {
022:                runConstructor();
023:            }
024:
025:            public void testConstructor20000229() throws Exception {
026:                runConstructor();
027:            }
028:
029:            public void testConstructor20040229() throws Exception {
030:                runConstructor();
031:            }
032:
033:            public void testConstructor20060431() throws Exception {
034:                runConstructor();
035:            }
036:
037:            public void testConstructor20060631() throws Exception {
038:                runConstructor();
039:            }
040:
041:            public void testConstructor20060931() throws Exception {
042:                runConstructor();
043:            }
044:
045:            public void testConstructor20061131() throws Exception {
046:                runConstructor();
047:            }
048:
049:            public void testConstructor20060231() throws Exception {
050:                runConstructor();
051:            }
052:
053:            public void testConstructor20060230() throws Exception {
054:                runConstructor();
055:            }
056:
057:            public void testConstructor20060229() throws Exception {
058:                runConstructor();
059:            }
060:
061:            public void testConstructor19000229() throws Exception {
062:                runConstructor();
063:            }
064:
065:            public void testSetDay200601xx_01() throws Exception {
066:                runSetDay();
067:            }
068:
069:            public void testSetDay200612xx_01() throws Exception {
070:                runSetDay();
071:            }
072:
073:            public void testSetDay200604xx_31() throws Exception {
074:                runSetDay();
075:            }
076:
077:            public void testSetDay200606xx_31() throws Exception {
078:                runSetDay();
079:            }
080:
081:            public void testSetDay200609xx_31() throws Exception {
082:                runSetDay();
083:            }
084:
085:            public void testSetDay200611xx_31() throws Exception {
086:                runSetDay();
087:            }
088:
089:            public void testSetDay200602xx_31() throws Exception {
090:                runSetDay();
091:            }
092:
093:            public void testSetDay200602xx_30() throws Exception {
094:                runSetDay();
095:            }
096:
097:            public void testSetDay200602xx_29() throws Exception {
098:                runSetDay();
099:            }
100:
101:            public void testSetDay190002xx_29() throws Exception {
102:                runSetDay();
103:            }
104:
105:            public void testSetDay200002xx_29() throws Exception {
106:                runSetDay();
107:            }
108:
109:            public void testSetDay200402xx_29() throws Exception {
110:                runSetDay();
111:            }
112:
113:            public void testSetMonth2006xx01_01() throws Exception {
114:                runSetMonth();
115:            }
116:
117:            public void testSetMonth2006xx31_12() throws Exception {
118:                runSetMonth();
119:            }
120:
121:            public void testSetMonth2006xx31_04() throws Exception {
122:                runSetMonth();
123:            }
124:
125:            public void testSetMonth2006xx31_06() throws Exception {
126:                runSetMonth();
127:            }
128:
129:            public void testSetMonth2006xx31_09() throws Exception {
130:                runSetMonth();
131:            }
132:
133:            public void testSetMonth2006xx31_11() throws Exception {
134:                runSetMonth();
135:            }
136:
137:            public void testSetMonth2006xx31_02() throws Exception {
138:                runSetMonth();
139:            }
140:
141:            public void testSetMonth2006xx30_02() throws Exception {
142:                runSetMonth();
143:            }
144:
145:            public void testSetMonth2006xx29_02() throws Exception {
146:                runSetMonth();
147:            }
148:
149:            public void testSetMonth1900xx29_02() throws Exception {
150:                runSetMonth();
151:            }
152:
153:            public void testSetMonth2000xx29_02() throws Exception {
154:                runSetMonth();
155:            }
156:
157:            public void testSetMonth2004xx29_02() throws Exception {
158:                runSetMonth();
159:            }
160:
161:            public void testSetYear20060101_yyyy() throws Exception {
162:                runSetYear();
163:            }
164:
165:            public void testSetYear20061231_yyyy() throws Exception {
166:                runSetYear();
167:            }
168:
169:            public void testSetYear20040229_2003() throws Exception {
170:                runSetYear();
171:            }
172:
173:            public void testSetYear20040229_1900() throws Exception {
174:                runSetYear();
175:            }
176:
177:            public void testSetYear20040229_2000() throws Exception {
178:                runSetYear();
179:            }
180:
181:            public void testSetYear20040229_1996() throws Exception {
182:                runSetYear();
183:            }
184:
185:            public void testIncrementDay20060101() throws Exception {
186:                runIncrementDay();
187:            }
188:
189:            public void testIncrementDay20060131() throws Exception {
190:                runIncrementDay();
191:            }
192:
193:            public void testIncrementDay20060331() throws Exception {
194:                runIncrementDay();
195:            }
196:
197:            public void testIncrementDay20060430() throws Exception {
198:                runIncrementDay();
199:            }
200:
201:            public void testIncrementDay20060531() throws Exception {
202:                runIncrementDay();
203:            }
204:
205:            public void testIncrementDay20060630() throws Exception {
206:                runIncrementDay();
207:            }
208:
209:            public void testIncrementDay20060731() throws Exception {
210:                runIncrementDay();
211:            }
212:
213:            public void testIncrementDay20060831() throws Exception {
214:                runIncrementDay();
215:            }
216:
217:            public void testIncrementDay20060930() throws Exception {
218:                runIncrementDay();
219:            }
220:
221:            public void testIncrementDay20061031() throws Exception {
222:                runIncrementDay();
223:            }
224:
225:            public void testIncrementDay20061130() throws Exception {
226:                runIncrementDay();
227:            }
228:
229:            public void testIncrementDay20061231() throws Exception {
230:                runIncrementDay();
231:            }
232:
233:            public void testIncrementDay20040229() throws Exception {
234:                runIncrementDay();
235:            }
236:
237:            public void testIncrementDay20040228() throws Exception {
238:                runIncrementDay();
239:            }
240:
241:            public void testIncrementDay20030228() throws Exception {
242:                runIncrementDay();
243:            }
244:
245:            public void testIncrementDay20000228() throws Exception {
246:                runIncrementDay();
247:            }
248:
249:            public void testIncrementDay19000228() throws Exception {
250:                runIncrementDay();
251:            }
252:
253:            public void testIncrementDayMaxValue1231() throws Exception {
254:                runIncrementDay();
255:            }
256:
257:            public void testIncrementMonth20060101() throws Exception {
258:                runIncrementMonth();
259:            }
260:
261:            public void testIncrementMonth20060129() throws Exception {
262:                runIncrementMonth();
263:            }
264:
265:            public void testIncrementMonth20060130() throws Exception {
266:                runIncrementMonth();
267:            }
268:
269:            public void testIncrementMonth20060131() throws Exception {
270:                runIncrementMonth();
271:            }
272:
273:            public void testIncrementMonth20040228() throws Exception {
274:                runIncrementMonth();
275:            }
276:
277:            public void testIncrementMonth20040229() throws Exception {
278:                runIncrementMonth();
279:            }
280:
281:            public void testIncrementMonth20060331() throws Exception {
282:                runIncrementMonth();
283:            }
284:
285:            public void testIncrementMonth20060430() throws Exception {
286:                runIncrementMonth();
287:            }
288:
289:            public void testIncrementMonth20060531() throws Exception {
290:                runIncrementMonth();
291:            }
292:
293:            public void testIncrementMonth20060630() throws Exception {
294:                runIncrementMonth();
295:            }
296:
297:            public void testIncrementMonth20060731() throws Exception {
298:                runIncrementMonth();
299:            }
300:
301:            public void testIncrementMonth20060831() throws Exception {
302:                runIncrementMonth();
303:            }
304:
305:            public void testIncrementMonth20060930() throws Exception {
306:                runIncrementMonth();
307:            }
308:
309:            public void testIncrementMonth20061031() throws Exception {
310:                runIncrementMonth();
311:            }
312:
313:            public void testIncrementMonth20061130() throws Exception {
314:                runIncrementMonth();
315:            }
316:
317:            public void testIncrementMonth20061231() throws Exception {
318:                runIncrementMonth();
319:            }
320:
321:            public void testIncrementMonthMaxValue1201() throws Exception {
322:                runIncrementMonth();
323:            }
324:
325:            public void testIncrementYear20060101() throws Exception {
326:                runIncrementYear();
327:            }
328:
329:            public void testIncrementYear20061231() throws Exception {
330:                runIncrementYear();
331:            }
332:
333:            public void testIncrementYear20040229() throws Exception {
334:                runIncrementYear();
335:            }
336:
337:            public void testIncrementYearMaxValue0101() throws Exception {
338:                runIncrementYear();
339:            }
340:
341:            public void testDecrementDay20060101() throws Exception {
342:                runDecrementDay();
343:            }
344:
345:            public void testDecrementDay20061231() throws Exception {
346:                runDecrementDay();
347:            }
348:
349:            public void testDecrementDay20060401() throws Exception {
350:                runDecrementDay();
351:            }
352:
353:            public void testDecrementDay20060501() throws Exception {
354:                runDecrementDay();
355:            }
356:
357:            public void testDecrementDay20060601() throws Exception {
358:                runDecrementDay();
359:            }
360:
361:            public void testDecrementDay20060701() throws Exception {
362:                runDecrementDay();
363:            }
364:
365:            public void testDecrementDay20060801() throws Exception {
366:                runDecrementDay();
367:            }
368:
369:            public void testDecrementDay20060901() throws Exception {
370:                runDecrementDay();
371:            }
372:
373:            public void testDecrementDay20061001() throws Exception {
374:                runDecrementDay();
375:            }
376:
377:            public void testDecrementDay20061101() throws Exception {
378:                runDecrementDay();
379:            }
380:
381:            public void testDecrementDay20061201() throws Exception {
382:                runDecrementDay();
383:            }
384:
385:            public void testDecrementDay20040229() throws Exception {
386:                runDecrementDay();
387:            }
388:
389:            public void testDecrementDay20040301() throws Exception {
390:                runDecrementDay();
391:            }
392:
393:            public void testDecrementDay20030301() throws Exception {
394:                runDecrementDay();
395:            }
396:
397:            public void testDecrementDay20000301() throws Exception {
398:                runDecrementDay();
399:            }
400:
401:            public void testDecrementDay19000301() throws Exception {
402:                runDecrementDay();
403:            }
404:
405:            public void testDecrementDayMinValue0101() throws Exception {
406:                runDecrementDay();
407:            }
408:
409:            public void testDecrementMonth20060101() throws Exception {
410:                runDecrementMonth();
411:            }
412:
413:            public void testDecrementMonth20060131() throws Exception {
414:                runDecrementMonth();
415:            }
416:
417:            public void testDecrementMonth20040229() throws Exception {
418:                runDecrementMonth();
419:            }
420:
421:            public void testDecrementMonth20040228() throws Exception {
422:                runDecrementMonth();
423:            }
424:
425:            public void testDecrementMonth20060331() throws Exception {
426:                runDecrementMonth();
427:            }
428:
429:            public void testDecrementMonth20060330() throws Exception {
430:                runDecrementMonth();
431:            }
432:
433:            public void testDecrementMonth20060329() throws Exception {
434:                runDecrementMonth();
435:            }
436:
437:            public void testDecrementMonth20060430() throws Exception {
438:                runDecrementMonth();
439:            }
440:
441:            public void testDecrementMonth20060531() throws Exception {
442:                runDecrementMonth();
443:            }
444:
445:            public void testDecrementMonth20060630() throws Exception {
446:                runDecrementMonth();
447:            }
448:
449:            public void testDecrementMonth20060731() throws Exception {
450:                runDecrementMonth();
451:            }
452:
453:            public void testDecrementMonth20060831() throws Exception {
454:                runDecrementMonth();
455:            }
456:
457:            public void testDecrementMonth20060930() throws Exception {
458:                runDecrementMonth();
459:            }
460:
461:            public void testDecrementMonth20061031() throws Exception {
462:                runDecrementMonth();
463:            }
464:
465:            public void testDecrementMonth20061130() throws Exception {
466:                runDecrementMonth();
467:            }
468:
469:            public void testDecrementMonth20061231() throws Exception {
470:                runDecrementMonth();
471:            }
472:
473:            public void testDecrementMonthMinValue0131() throws Exception {
474:                runDecrementMonth();
475:            }
476:
477:            public void testDecrementYear20060101() throws Exception {
478:                runDecrementYear();
479:            }
480:
481:            public void testDecrementYear20061231() throws Exception {
482:                runDecrementYear();
483:            }
484:
485:            public void testDecrementYear20040229() throws Exception {
486:                runDecrementYear();
487:            }
488:
489:            public void testDecrementYearMinValue1231() throws Exception {
490:                runDecrementYear();
491:            }
492:
493:            protected void runConstructor() throws Exception {
494:                int day = getObject("day");
495:                int month = getObject("month");
496:                int year = getObject("year");
497:                Exception expectedException = getObject("expectedException");
498:                try {
499:                    CompositeDate subject = new CompositeDate(year, month, day);
500:                    if (expectedException != null) {
501:                        fail("Exception not thrown");
502:                    }
503:                    int expectedDay = getObject("expectedDay");
504:                    int expectedMonth = getObject("expectedMonth");
505:                    int expectedYear = getObject("expectedYear");
506:                    assertEquals(expectedDay, subject.getDay());
507:                    assertEquals(expectedMonth, subject.getMonth());
508:                    assertEquals(expectedYear, subject.getYear());
509:                } catch (Exception ex) {
510:                    if (expectedException == null) {
511:                        throw ex;
512:                    } else {
513:                        assertTrue(expectedException.getClass()
514:                                .isAssignableFrom(ex.getClass()));
515:                    }
516:                }
517:            }
518:
519:            protected void runSetDay() throws Exception {
520:                CompositeDate subject = getObject("subject");
521:                CompositeDate expected = getObject("expected");
522:                int day = getObject("day");
523:                Exception expectedException = getObject("expectedException");
524:                try {
525:                    subject.setDay(day);
526:                    if (expectedException != null) {
527:                        fail("Exception not thrown");
528:                    }
529:                    assertEquals(expected, subject);
530:                } catch (Exception ex) {
531:                    if (expectedException == null) {
532:                        throw ex;
533:                    } else {
534:                        assertTrue(expectedException.getClass()
535:                                .isAssignableFrom(ex.getClass()));
536:                    }
537:                }
538:            }
539:
540:            protected void runSetMonth() throws Exception {
541:                CompositeDate subject = getObject("subject");
542:                CompositeDate expected = getObject("expected");
543:                int month = getObject("month");
544:                Exception expectedException = getObject("expectedException");
545:                try {
546:                    subject.setMonth(month);
547:                    if (expectedException != null) {
548:                        fail("Exception not thrown");
549:                    }
550:                    assertEquals(expected, subject);
551:                } catch (Exception ex) {
552:                    if (expectedException == null) {
553:                        throw ex;
554:                    } else {
555:                        assertTrue(expectedException.getClass()
556:                                .isAssignableFrom(ex.getClass()));
557:                    }
558:                }
559:            }
560:
561:            protected void runSetYear() throws Exception {
562:                CompositeDate subject = getObject("subject");
563:                CompositeDate expected = getObject("expected");
564:                int year = getObject("year");
565:                Exception expectedException = getObject("expectedException");
566:                try {
567:                    subject.setYear(year);
568:                    if (expectedException != null) {
569:                        fail("Exception not thrown");
570:                    }
571:                    assertEquals(expected, subject);
572:                } catch (Exception ex) {
573:                    if (expectedException == null) {
574:                        throw ex;
575:                    } else {
576:                        assertTrue(expectedException.getClass()
577:                                .isAssignableFrom(ex.getClass()));
578:                    }
579:                }
580:            }
581:
582:            protected void runIncrementDay() throws Exception {
583:                CompositeDate subject = getObject("subject");
584:                CompositeDate expected = getObject("expected");
585:                Exception expectedException = getObject("expectedException");
586:                try {
587:                    subject.incrementDay();
588:                    if (expectedException != null) {
589:                        fail("Exception not thrown");
590:                    }
591:                    assertEquals(expected, subject);
592:                } catch (Exception ex) {
593:                    if (expectedException == null) {
594:                        throw ex;
595:                    } else {
596:                        assertTrue(expectedException.getClass()
597:                                .isAssignableFrom(ex.getClass()));
598:                    }
599:                }
600:            }
601:
602:            protected void runIncrementMonth() throws Exception {
603:                CompositeDate subject = getObject("subject");
604:                CompositeDate expected = getObject("expected");
605:                Exception expectedException = getObject("expectedException");
606:                try {
607:                    subject.incrementMonth();
608:                    if (expectedException != null) {
609:                        fail("Exception not thrown");
610:                    }
611:                    assertEquals(expected, subject);
612:                } catch (Exception ex) {
613:                    if (expectedException == null) {
614:                        throw ex;
615:                    } else {
616:                        assertTrue(expectedException.getClass()
617:                                .isAssignableFrom(ex.getClass()));
618:                    }
619:                }
620:            }
621:
622:            protected void runIncrementYear() throws Exception {
623:                CompositeDate subject = getObject("subject");
624:                CompositeDate expected = getObject("expected");
625:                Exception expectedException = getObject("expectedException");
626:                try {
627:                    subject.incrementYear();
628:                    if (expectedException != null) {
629:                        fail("Exception not thrown");
630:                    }
631:                    assertEquals(expected, subject);
632:                } catch (Exception ex) {
633:                    if (expectedException == null) {
634:                        throw ex;
635:                    } else {
636:                        assertTrue(expectedException.getClass()
637:                                .isAssignableFrom(ex.getClass()));
638:                    }
639:                }
640:            }
641:
642:            protected void runDecrementDay() throws Exception {
643:                CompositeDate subject = getObject("subject");
644:                CompositeDate expected = getObject("expected");
645:                Exception expectedException = getObject("expectedException");
646:                try {
647:                    subject.decrementDay();
648:                    if (expectedException != null) {
649:                        fail("Exception not thrown");
650:                    }
651:                    assertEquals(expected, subject);
652:                } catch (Exception ex) {
653:                    if (expectedException == null) {
654:                        throw ex;
655:                    } else {
656:                        assertTrue(expectedException.getClass()
657:                                .isAssignableFrom(ex.getClass()));
658:                    }
659:                }
660:            }
661:
662:            protected void runDecrementMonth() throws Exception {
663:                CompositeDate subject = getObject("subject");
664:                CompositeDate expected = getObject("expected");
665:                Exception expectedException = getObject("expectedException");
666:                try {
667:                    subject.decrementMonth();
668:                    if (expectedException != null) {
669:                        fail("Exception not thrown");
670:                    }
671:                    assertEquals(expected, subject);
672:                } catch (Exception ex) {
673:                    if (expectedException == null) {
674:                        throw ex;
675:                    } else {
676:                        assertTrue(expectedException.getClass()
677:                                .isAssignableFrom(ex.getClass()));
678:                    }
679:                }
680:            }
681:
682:            protected void runDecrementYear() throws Exception {
683:                CompositeDate subject = getObject("subject");
684:                CompositeDate expected = getObject("expected");
685:                Exception expectedException = getObject("expectedException");
686:                try {
687:                    subject.decrementYear();
688:                    if (expectedException != null) {
689:                        fail("Exception not thrown");
690:                    }
691:                    assertEquals(expected, subject);
692:                } catch (Exception ex) {
693:                    if (expectedException == null) {
694:                        throw ex;
695:                    } else {
696:                        assertTrue(expectedException.getClass()
697:                                .isAssignableFrom(ex.getClass()));
698:                    }
699:                }
700:            }
701:
702:            private SpringUnitContext compositeDateSpringUnitTest;
703:
704:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.