Skip to content

Restructure examples and add basic tests#12

Open
ipavlopoulos wants to merge 1 commit into
mainfrom
restructure-examples-and-tests
Open

Restructure examples and add basic tests#12
ipavlopoulos wants to merge 1 commit into
mainfrom
restructure-examples-and-tests

Conversation

@ipavlopoulos

Copy link
Copy Markdown
Owner

Summary

  • Move lecture examples under gr.aueb.cs.examples while keeping larger projects under gr.aueb.cs.projects.
  • Refresh the root README with the new structure and run/test commands.
  • Add JUnit 5 calculator tests and sample files for file I/O examples.
  • Fix small runtime issues found during verification.

Verification

  • Compiled plain Java examples/projects with OpenJDK.
  • Ran 48 runnable main classes: 48 passed, 0 failed.
  • Started the Spring Boot JavagotchiWeb JAR successfully with local port binding allowed.

@ipavlopoulos ipavlopoulos requested a review from dimits-ts May 27, 2026 07:32
@ipavlopoulos

Copy link
Copy Markdown
Owner Author

@dimits-ts this is light restructuring applying to many files, adding unit tests and some fixes.

@dimits-ts dimits-ts left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems fine!

@@ -41,7 +41,7 @@ public static long readWithFileInputStreamAndDIYBuffer(String filename) throws I
int bytesRead = in.read(buffer, 0, buffer.length);

while (bytesRead != -1) {
// διαβάζουμε byte-προς-byte

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidental deletion?

package gr.aueb.cs.inheritance;
package gr.aueb.cs.examples.inheritance;

class Sup {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed some classes have default visibility while other stay public. Is there a reason for that? Just afraid it might confuse some students.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants