- Frederik Johnsen, [email protected]
- Jean-Poul Leth-Møller, [email protected]
- Mathias Parking, [email protected]
- Magdalena Wawrzak [email protected]
- Tobias Zimmermann [email protected]
If you want to learn about rust or interested in it, take a look at Frederik's solutions
A woman fired a shot at a man with her gun, but the man did not die. List the possible reasons for the man not dying.
- The woman missed her target.
- The man was not fatally injured.
- The gun had no more bullets.
- The bullet was not harmful.
- The man was able to dodge the bullet.
An alien meets you and it asks you to teach it how to brush its teeth. Assume that the alien has teeth exactly like yours, and is as smart as you, but it needs a clear step-by-step instruction. List the steps. Be as detailed as you can. (Example: Hold the toothpaste with your left hand; turn the cap anti-clockwise)
- Find the toothpaste and hold it with your left hand.
- Turn the toothpaste cap anti-clockwise until it comes of.
- Place the toothpaste cap and put on the counter.
- Put the now opened toothpaste in your right hand.
- Find the toothbrush and hold it with your left hand.
- Put the head of your toothpaste at the top of your toothbrush where the hair is sticking out.
- Gently squish the middle of the toothpaste onto the top part of the hair portion of your toothbrush, until it fills up about 50 percent of the toothbrush hair. The toothpaste height should only be about 10 millimeters.
- Put the toothpaste on the counter, so that you are now holding only the toothbrush.
- Put the toothbrush in whatever hand feels most natural.
- Put the toothbrush into your mouth, starting on the left side of your mouth.
- Put the toothbrush on the furthest back tooth at the bottom of your mouth.
- Brush the top of that tooth turning the toothbrush so that the hair portion touches your tooth. Make sure you are brushing it on all sides.
- Follow the row of teeth to your right, until the end tooth on right side of your mouth.
- Turn the toothbrush 180 degrees, so that the hair is pointing towards the top of your mouth.
- Put the toothbrush onto the tooth furthest to the right in the top portion of your mouth.
- Repeat the steps used to brush the bottom portion, this time just going from the right to left.
Three endpoints are exposed through the ConverterController
GET /convert/fahrenheit-to-celsius?fahrenheit=100
GET /convert/celsius-to-fahrenheit?celsius=30
GET /convert/arabic-to-roman?arabic=10000
Setting up cucumber with spring boot to allow autowiring of things such as MockMvc and others was a bit of a hassle
because they can't all have the @CucumberContextConfiguration
annotation. So to allow multiple files
the cucumberconfig package was created. It makes
it so that all cucumber step classes in the acceptance
package will be run using the annotations from
the CucumberSpringContextConfig
class. (yes it's weird)
Implementation is done through these classes:
- What was positive and good about using BDD?
Using BDD helped a lot in understanding the actual problems we were facing. It pretty much just forces a developer to think before acting.
It also makes sure you have an idea about the whole flow of the current scenario you're working on. For instance, it forced us to think about how the outside would communicate with the feature. In this case through a rest endpoint.
- What was annoying or difficult?
Initially getting Cucumber to work as expected was a bit of a struggle.
There is generally a lot of code that has to be written for each scenario. Albeit we could definitely set up some reusable code for the places that are almost doing the same thing.
- What surprised you?
Ones we got everything working correctly it was a rather smooth workflow, as well as usually an error free one, if the features were correctly set up.