package net.apnic.rpki.server.messages;

/**
 * @author bje
 */
public class HandshakeMessageTest {
}

@@ -38,65 +38,677 @@
 s;%0A%0A
-/**%0A * @author bje%0A */%0Apublic class HandshakeMessageTest %7B
+import org.junit.Test;%0A%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * @author bje%0A */%0Apublic class HandshakeMessageTest %7B%0A    @Test%0A    public void parseHandshakes() throws Exception %7B%0A        HandshakeMessage message = HandshakeMessage.parseHandshake(%22@RSYNCD: 30.0%22);%0A        assertThat(%22Version is major 30%22, message.getMajor(), is(equalTo(30)));%0A%0A        message = HandshakeMessage.parseHandshake(%22@RSYNCD: 29%22);%0A        assertThat(%22Version is major 29%22, message.getMajor(), is(equalTo(29)));%0A        assertThat(%22Version is minor 0%22, message.getMinor(), is(equalTo(0)));%0A    %7D
 %0A%7D%0A

Test parsing both old and new style version lines for #1