Skip to content

Instantly share code, notes, and snippets.

@gohilronak
Created December 14, 2018 12:58
Show Gist options
  • Save gohilronak/8d85663a836b3b56d893d5621e81fd96 to your computer and use it in GitHub Desktop.
Save gohilronak/8d85663a836b3b56d893d5621e81fd96 to your computer and use it in GitHub Desktop.
Test Driven Development with Spring Boot CarController.java file
package com.example.tdd.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class CarController {
@GetMapping("cars/{name}")
public void getCar(@PathVariable("name") String name) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment