I saw code like this in another question:
mockStatic(DockerRestClient.class);
ObjectMapper obj=EasyMock.createMock(ObjectMapper.class);
expect(DockerRestClient.doGet(EasyMock.isA(String.class))).andReturn(containerData);
expect(obj.readValue(EasyMock.isA(String.class),EasyMock.same(Container.class))).andReturn(container);
//EasyMock.replay(obj);
Thing is: I wanted to further indent these lines with two spaces, to differentiate them from the method name. But it seems that somehow those lines with expect
are messed up - when I put the cursor on "e" in expect and start typing spaces, the line starts moving down.
If the answer is in how do i format my code blocks ... then I couldn't spot it there. In any case it would be nice to understand what exactly is going on here.