~ubuntu-branches/ubuntu/natty/aspectj/natty

« back to all changes in this revision

Viewing changes to org.aspectj/modules/docs/teaching/exercises/tests/Test3d.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2009-10-04 16:37:23 UTC
  • mfrom: (1.1.3 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091004163723-ck4y7j7fhjxskkie
Tags: 1.6.6+dfsg-1
* New upstream release.
  - Update 02_use_gjdoc.diff patch
* Update my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* *******************************************************************
2
 
 * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
3
 
 * All rights reserved.
4
 
 * This program and the accompanying materials are made available
5
 
 * under the terms of the Eclipse Public License v1.0
6
 
 * which accompanies this distribution and is available at
7
 
 * http://www.eclipse.org/legal/epl-v10.html
8
 
 *
9
 
 * Contributors:
10
 
 *     PARC     initial implementation
11
 
 * ******************************************************************/
12
 
 
13
 
package tests;
14
 
 
15
 
import figures.*;
16
 
import support.Log;
17
 
import junit.framework.*;
18
 
import java.util.List;
19
 
import java.util.Arrays;
20
 
 
21
 
public class Test3d extends CoreTest {
22
 
 
23
 
    public static void main(String[] args) {
24
 
        junit.textui.TestRunner.run(Test3d.class);
25
 
    }
26
 
 
27
 
    public void testDuplicateAdd() {
28
 
        Log.clear();
29
 
        Point p1 = new Point(10, 100);
30
 
        Group g1  = new Group(p1);
31
 
        try {
32
 
            Group g2  = new Group(p1);
33
 
            fail("should have thrown IllegalStateException");
34
 
        } catch (IllegalStateException ea) {
35
 
        }
36
 
    }
37
 
}
38