Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

2023 State Farm Coding Competition - Java Version

Welcome

This is the skeleton project for the 2023 State Farm Coding Competition in Java. This will be the same project you'll use once Round 1 begins.

Once Round 1 begins, we'll add the problem statement and the actual JSON files and unit tests you'll be using.

Setup

Pre-Req

  • Java JDK - version 17 or higher
  • Maven - version 3.8.6 or higher

Java

We recommend one of the following JDKs and versions. Other ones may also work, but have not been tested.

Maven

Git and VSCode

For setting up Git and VSCode, please see the overall README.md.

VSCode Extensions

When you open this folder up in VSCode, you should see a dialog box open in the bottom-right hand corner of your screen. We've added several extensions that should help you spend less time on your environment, syntax, and manual work and more time on working on the problem statement.

You can view this file in .vscode/extensions.json.

Run

To build and test this project:

mvn clean install

In VSCode, you can also run the unit tests either per file or per method. See the screenshot below for examples.

Example JUnit buttons in VSCode

You should see the circles on the left-hand side. They are checkmarks in this case, because we've already run the unit tests, but they can also come up as a red circle for failures or a green play button.

For more information, see Microsoft's official guide - Testing Java with Visual Studio Code - Features Section.

Note: Use this functionality for quick and easy testing, but, before you turn your submission in, please attempt to run the maven command at least once to determine how many unit tests have been passed.

Installing Additional Packages

To install additional packages, follow this guide. You can also search around the Internet for more guidance.