Add implementation from Assignment 1

This commit is contained in:
2020-12-23 11:56:50 +01:00
parent 2ae01910cd
commit acfe3a0b12
64 changed files with 2723 additions and 1726 deletions
@@ -41,7 +41,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">3.003s</div>
<div class="counter">4.025s</div>
<p>duration</p>
</div>
</td>
@@ -66,6 +66,9 @@
<li>
<a href="#tab1">Tests</a>
</li>
<li>
<a href="#tab2">Standard error</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Failed tests</h2>
@@ -73,12 +76,18 @@
<a name="sendStartsecure"></a>
<h3 class="failures">sendStartsecure</h3>
<span class="code">
<pre>java.lang.NumberFormatException: For input string: &quot;port_range+3&quot;
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:652)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at dslab.util.Config.getInt(Config.java:52)
at dslab.mailbox.MailboxStartsecureTest.setUp(MailboxStartsecureTest.java:31)
<pre>java.lang.AssertionError:
Expected: a string containing &quot;ok DMAP2.0&quot;
but: was &quot;ok DMAP&quot;
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.rules.ErrorCollector$1.call(ErrorCollector.java:65)
at org.junit.rules.ErrorCollector.checkSucceeds(ErrorCollector.java:78)
at org.junit.rules.ErrorCollector.checkThat(ErrorCollector.java:63)
at org.junit.rules.ErrorCollector.checkThat(ErrorCollector.java:54)
at dslab.JunitSocketClient.assertThat(JunitSocketClient.java:120)
at dslab.JunitSocketClient.verify(JunitSocketClient.java:92)
at dslab.mailbox.MailboxStartsecureTest.sendStartsecure(MailboxStartsecureTest.java:58)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
@@ -86,9 +95,58 @@
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.Verifier$1.evaluate(Verifier.java:35)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:834)
</pre>
</span>
<span class="code">
<pre>java.lang.AssertionError:
Expected: a string containing &quot;ok mailbox-earth-planet&quot;
but: was &quot;error not logged in&quot;
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.rules.ErrorCollector$1.call(ErrorCollector.java:65)
at org.junit.rules.ErrorCollector.checkSucceeds(ErrorCollector.java:78)
at org.junit.rules.ErrorCollector.checkThat(ErrorCollector.java:63)
at org.junit.rules.ErrorCollector.checkThat(ErrorCollector.java:54)
at dslab.JunitSocketClient.assertThat(JunitSocketClient.java:120)
at dslab.JunitSocketClient.sendAndVerify(JunitSocketClient.java:103)
at dslab.mailbox.MailboxStartsecureTest.sendStartsecure(MailboxStartsecureTest.java:61)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:834)
</pre>
</span>
<span class="code">
<pre>java.lang.AssertionError: Expected server response to be Base64 encoded
Expected: a string matching &quot;^(?:[a-zA-Z0-9+/]{4})*(?:[a-zA-Z0-9+/]{2}==|[a-zA-Z0-9+/]{3}=)?$&quot;
but: was &quot;error not logged in&quot;
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.rules.ErrorCollector$1.call(ErrorCollector.java:65)
at org.junit.rules.ErrorCollector.checkSucceeds(ErrorCollector.java:78)
at org.junit.rules.ErrorCollector.checkThat(ErrorCollector.java:63)
at dslab.mailbox.MailboxStartsecureTest.sendStartsecure(MailboxStartsecureTest.java:68)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
@@ -109,11 +167,29 @@
</thead>
<tr>
<td class="failures">sendStartsecure</td>
<td class="failures">3.003s</td>
<td class="failures">4.025s</td>
<td class="failures">failed</td>
</tr>
</table>
</div>
<div id="tab2" class="tab">
<h2>Standard error</h2>
<span class="code">
<pre>Dec 23, 2020 11:54:10 AM dslab.mailbox.MailboxServerProtocolTest setUp
INFO: Waiting for server sockets to appear
Dec 23, 2020 11:54:10 AM dslab.mailbox.MailboxServer run
INFO: Creating DMTP and DMAP serverSockets for MailboxServer + dslab.mailbox.MailboxServer@3fe01346
Dec 23, 2020 11:54:10 AM dslab.mailbox.DMTPConnection shutdown
INFO: Shutting down client connection dslab.mailbox.DMTPConnection@3df07a72
Dec 23, 2020 11:54:11 AM dslab.mailbox.DMTPConnection shutdown
INFO: Shutting down client connection dslab.mailbox.DMTPConnection@3df07a72
Dec 23, 2020 11:54:11 AM dslab.mailbox.DMAPConnection shutdown
INFO: Shutting down client connection dslab.mailbox.DMAPConnection@773ef65c
Dec 23, 2020 11:54:11 AM dslab.mailbox.DMAPConnection shutdown
INFO: Shutting down client connection dslab.mailbox.DMAPConnection@139c58dc
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
@@ -122,7 +198,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.6.1</a> at Nov 26, 2020, 10:42:20 AM</p>
<a href="http://www.gradle.org">Gradle 6.6.1</a> at Dec 23, 2020, 11:55:51 AM</p>
</div>
</div>
</body>