()
| 104 | } |
| 105 | |
| 106 | public void testNegativeAlignment() { |
| 107 | final int SIZE = 128; |
| 108 | Memory base = new Memory(SIZE); |
| 109 | try { |
| 110 | base.align(-1); |
| 111 | fail("Negative alignments not allowed"); |
| 112 | } |
| 113 | catch(IllegalArgumentException e) { } |
| 114 | } |
| 115 | |
| 116 | public void testInvalidAlignment() { |
| 117 | final int SIZE = 128; |