Skip to content

evanbenjamin/evanbenjamin-Start

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab README

Welcome to your first lab. There are no changes needed in order to run the lab - it will serve as a guide to both Java code and navigating the IDE (your code editor) and test cases.

Java code

If you look within the src/main/java folder, you will find two informative Java classes, Guide.java and GuideMain.java. These files have some code with some informational comments about the general structure of Java. No changes need to be made to these files. It is OK to not understand all the information, as the concepts will all be involved in future labs.

Test cases

If you look within the src/test/java folder, you will find the Java class GuideTest, which is a test file. Even if you have prior experience with Java, the concept of testing and TDD (test-driven-development) is likely unfamiliar to you. Test cases will be instrumental in completing labs. Test cases are essentially scenarios built that ensure that code in a class such as Guide.java functions as one would expect in a particular scenario. You should never modify the test cases in the labs, as this is likely to break the lab entirely. Every lab has been thoroughly tested to not require any modifications to the tests.

Maven

You will also find that there is a file named pom.xml. This is a build file which allows the project to leverage open-source tools, such as the tools used to write test cases, inside of the project. The program used to do this is called Maven. You should never modify this file.

Labs

All future labs will involve modifying code in src/main/java such that all the test cases in src/test/java pass. No modifications need to be made here as the code has been written to pass all test cases from the start. You should, however, still run the test cases in GuideTest to familiarize yourself with the process of testing your code. You can run tests generally by clicking the 'run' button (usually drawn like a triangular 'play' button) inside a file containing test cases.

There is no need to change anything in this lab. The lab following this one should be rather simple, it will just involve modifying a bit of text in a method. Proceed when you feel ready!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 87.8%
  • Shell 12.2%