invariant:intro
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
invariant:intro [2007/02/25 17:24] – bdefrain | invariant:intro [2021/02/05 13:53] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Invariants: Intro ====== | + | [[invariant: |
+ | [[invariant: | ||
+ | [[invariant: | ||
+ | [[invariant: | ||
+ | [[invariant: | ||
+ | [[invariant: | ||
In the following exercises, we will demonstrate the use of AspectJ to check both static and dynamic invariants in the context of a graphical figure editor. | In the following exercises, we will demonstrate the use of AspectJ to check both static and dynamic invariants in the context of a graphical figure editor. | ||
Line 6: | Line 11: | ||
- Create a **new AspectJ Project** in Eclipse | - Create a **new AspectJ Project** in Eclipse | ||
- | - Download the source of the figure editor. | + | - Download the source of the figure editor: {{invariant: |
- In Eclipse, select **File** -> **Import...**. Choose to import files from an **Archive File** and point to the file you just downloaded. | - In Eclipse, select **File** -> **Import...**. Choose to import files from an **Archive File** and point to the file you just downloaded. | ||
- | - To resolve the build errors for the included tests, right-click your new project, select **Build Path** -> **Add Libraries...**. Click **JUnit** and select version **3.8.1**. | + | - To resolve the build errors for the included tests, right-click your new project, select **Build Path** -> **Add Libraries...**. Click **JUnit** and select version **3.x**. |
===== Running the Figure Editor ===== | ===== Running the Figure Editor ===== | ||
Line 15: | Line 20: | ||
{{invariant: | {{invariant: | ||
+ | |||
+ | ===== Running the Tests ===== | ||
+ | |||
+ | The source archive you downloaded contains a number of test suites. The tests of the suite '' | ||
+ | |||
+ | The other test suites can be used to verify your answers to the following exercises. | ||
---- | ---- | ||
Start the Invariants track at [[invariant: | Start the Invariants track at [[invariant: |
invariant/intro.1172420682.txt.gz · Last modified: 2007/02/25 17:24 by bdefrain