diff --git a/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.pdf b/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.pdf index 398042b0..4ba2e6e6 100644 Binary files a/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.pdf and b/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.pdf differ diff --git a/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.tex b/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.tex index 3fa9c3d3..c9b87d5e 100644 --- a/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.tex +++ b/year4/semester2/CT414/assignments/assignment1/latex/CT414-Assignment-01.tex @@ -71,6 +71,31 @@ Assignment 1: Java RMI \end{center} \hrule +\medskip + +To run and test the code, I wrote a short shell script based off those provided in RMI Compute Server Example code provided on Canvas which compiles the code and launches three terminals: one running the \mintinline{shell}{rmiregistry}, one running the \mintinline{java}{ApplicationServer}, and one running the \mintinline{java}{ApplicationClient}. + +\begin{code} +\inputminted[texcl, mathescape, linenos, breaklines, frame=single]{shell}{../code/src/run.sh} +\caption{\mintinline{shell}{run.sh}} +\end{code} + +\begin{figure}[H] + \centering + \includegraphics[width=\textwidth]{./images/screenshot.png} + \caption{Screenshot of all four terminal windows. From left to right, top to bottom: the window running \mintinline{shell}{run.sh}, the window running the \mintinline{shell}{rmiregistry}, the window running the \mintinline{java}{ApplicationServer}, \& the window running the \mintinline{java}{ApplicationClient}} +\end{figure} + +As can be seen in the \mintinline{java}{ApplicationClient} terminal window above, I tested the application by logging in with username \& password \verb|admin|, and filling in application details. +The details entered were saved into a file called \verb|Michael_D_Higgins.txt|, with the name of the file being the applicant's name with all whitespace replaced with underscores (to avoid any spaces-in-filename headaches). + +\begin{figure}[H] + \centering + \includegraphics[width=\textwidth]{./images/michaeld.png} + \caption{Contents of the saved application form file} +\end{figure} + +The output file contained all the questions and answers from the application form, as expected. \end{document} diff --git a/year4/semester2/CT414/assignments/assignment1/latex/images/michaeld.png b/year4/semester2/CT414/assignments/assignment1/latex/images/michaeld.png new file mode 100644 index 00000000..46ef5d44 Binary files /dev/null and b/year4/semester2/CT414/assignments/assignment1/latex/images/michaeld.png differ diff --git a/year4/semester2/CT414/assignments/assignment1/latex/images/screenshot.png b/year4/semester2/CT414/assignments/assignment1/latex/images/screenshot.png new file mode 100644 index 00000000..8487bed4 Binary files /dev/null and b/year4/semester2/CT414/assignments/assignment1/latex/images/screenshot.png differ