File tree Expand file tree Collapse file tree 6 files changed +26
-11
lines changed 
main/java/dev/coms4156/project/individualproject 
test/java/dev/coms4156/project/individualproject Expand file tree Collapse file tree 6 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 11package  dev .coms4156 .project .individualproject ;
22
3- import  java .io .*;
3+ import  java .io .Serial ;
4+ import  java .io .Serializable ;
45
56/** 
67 * Represents a course within a department. 
Original file line number Diff line number Diff line change 11package  dev .coms4156 .project .individualproject ;
22
3- import  java .io .*;
4- import  java .util .*;
3+ import  java .io .Serial ;
4+ import  java .io .Serializable ;
5+ import  java .util .HashMap ;
6+ import  java .util .Map ;
57
68
79/** 
Original file line number Diff line number Diff line change 11package  dev .coms4156 .project .individualproject ;
22
33import  jakarta .annotation .PreDestroy ;
4- import  java .util .*;
5- import  org .springframework .boot .*;
4+ import  java .util .HashMap ;
5+ import  org .springframework .boot .CommandLineRunner ;
6+ import  org .springframework .boot .SpringApplication ;
67import  org .springframework .boot .autoconfigure .SpringBootApplication ;
78
89/** 
Original file line number Diff line number Diff line change 11package  dev .coms4156 .project .individualproject ;
22
3- import  java .io .*;
4- import  java .util .*;
3+ import  java .io .FileInputStream ;
4+ import  java .io .FileOutputStream ;
5+ import  java .io .IOException ;
6+ import  java .io .ObjectInputStream ;
7+ import  java .io .ObjectOutputStream ;
8+ import  java .util .HashMap ;
9+ import  java .util .Map ;
510
611/** 
712 * This class represents a file-based database containing department mappings. 
Original file line number Diff line number Diff line change 11package  dev .coms4156 .project .individualproject ;
22
33import  java .util .HashMap ;
4- import  org .springframework .http .*;
5- import  org .springframework .web .bind .annotation .*;
4+ import  org .springframework .http .HttpStatus ;
5+ import  org .springframework .http .MediaType ;
6+ import  org .springframework .http .ResponseEntity ;
7+ import  org .springframework .web .bind .annotation .GetMapping ;
8+ import  org .springframework .web .bind .annotation .PatchMapping ;
9+ import  org .springframework .web .bind .annotation .RequestParam ;
10+ import  org .springframework .web .bind .annotation .RestController ;
611
712/** 
813 * This class contains all the API routes for the system. 
Original file line number Diff line number Diff line change 11package  dev .coms4156 .project .individualproject ;
22
3- import  static  org .junit .jupiter .api .Assertions .* ;
3+ import  static  org .junit .jupiter .api .Assertions .assertEquals ;
44
5- import  org .junit .jupiter .api .*;
5+ import  org .junit .jupiter .api .BeforeAll ;
6+ import  org .junit .jupiter .api .Test ;
67import  org .springframework .boot .test .context .SpringBootTest ;
78import  org .springframework .test .context .ContextConfiguration ;
89
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments