@Test public void testOverlap() { command = new AddMemoryBlockCmd(".test", "A Test", "new block", getNotepadAddr(0x1001010), 100, true, true, true, false, (byte) 0xa, MemoryBlockType.DEFAULT, null, true); try { applyCmd(notepad, command); Assert.fail("Should have gotten exception"); } catch (RollbackException e) { } assertTrue(command.getStatusMsg().length() > 0); }
@Override public String getStatusMsg() { return message; }
AddMemoryBlockCmd implements Command { @Override public String getStatusMsg() { return message; } }
AddMemoryBlockCmd implements Command { @Override public String getStatusMsg() { return message; } AddMemoryBlockCmd(String name, String comment, String source, Address start, int length,
			boolean read, boolean write, boolean execute, boolean isVolatile, byte initialValue,
			MemoryBlockType blockType, Address baseAddr, boolean isInitialized); }
AddMemoryBlockCmd implements Command { @Override public String getStatusMsg() { return message; } AddMemoryBlockCmd(String name, String comment, String source, Address start, int length,
			boolean read, boolean write, boolean execute, boolean isVolatile, byte initialValue,
			MemoryBlockType blockType, Address baseAddr, boolean isInitialized); @Override boolean applyTo(DomainObject obj); @Override String getName(); @Override String getStatusMsg(); }
AddMemoryBlockCmd implements Command { @Override public String getStatusMsg() { return message; } AddMemoryBlockCmd(String name, String comment, String source, Address start, int length,
			boolean read, boolean write, boolean execute, boolean isVolatile, byte initialValue,
			MemoryBlockType blockType, Address baseAddr, boolean isInitialized); @Override boolean applyTo(DomainObject obj); @Override String getName(); @Override String getStatusMsg();  }