Skip to content

JamesTurnerGit/TTTTAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTTTAT

Setup

prequisites

  • get the TTTTA repo running locally using it's readme(link deliberately missing)
  • get maven
  • get intellij (until the tests work on Maven)
  • get Java SDK

TTTTAT

  • clone down this repo
  • run the TTTTA repo
  • type "MVN test"
  • open this project with IntelliJ
  • press ctrl-shift-f10

Fresh and revisited learnings

  • Java - Did some at university over a decade ago
  • IntelliJ - usually use VScode, but because java is such a unique beast used specialsed editor (it's very good)
  • Junit - Never used before
  • HTTP requests in Java - Done a lot in other languages, not in javascript
  • Serializing in Javascript - So much boilerplate
  • Maven - Never used before, NPMs lost cousin.

comments about development

Enviroment setup took a very long time to get right from scratch.Had to figure out a lot of different technology.

I'm unsure with how i've done the Exception handling- need to look into conventions surrounding this, gut instinct says that you should add it to the method signature if you can't recover the problem.

I didn't finish as much as i'd like due to the amount of boilerplate Java requires, Perhaps this is solved by using some extra technologies.

Tired and a little burntout from long and hard weekend at a hackathon.

Happy to learn because I have a ongoing personal project where Java is going to be very useful.

all problems with speed were due to enviroment or typing out boilerplate, actual coding was smooth.

Felt i had to type out all the models when it came to inserting fixtures or it was a false test. Went back and added custom constructors to the models to aid the creation of test data.

Test data should probably be extracted to some place other than directly in the test, but because the only place it was needed wasn't finished, it never came about.

seperate repo was made mostly to obscure target of this repo, normally tests would be located in the same repo.

If I had more time i'd try starting again from a fresh enviroment to document the required steps properly.

next steps

  1. validate using Postman that Fixture was actually entered correctly.

  2. need a method of restoring DB to known state after and before tests

  3. need to wait for database entry to appear - retry until getFixtureByID(newID) != null

  4. figure out why MVN test isn't working properly - was running via intelliJ directly so didn't notice until was done.

  5. More error handling in general- particularly retries on certain response codes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages