updated to JUnit 5
This commit is contained in:
		
							parent
							
								
									88df75c6dc
								
							
						
					
					
						commit
						91ae7d9d0d
					
				
					 2 changed files with 13 additions and 6 deletions
				
			
		
							
								
								
									
										11
									
								
								pom.xml
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								pom.xml
									
										
									
									
									
								
							|  | @ -312,9 +312,14 @@ | |||
| 
 | ||||
|     <!-- Testing --> | ||||
|     <dependency> | ||||
|       <groupId>junit</groupId> | ||||
|       <artifactId>junit</artifactId> | ||||
|       <scope>test</scope> | ||||
|         <groupId>org.junit.jupiter</groupId> | ||||
|         <artifactId>junit-jupiter-api</artifactId> | ||||
|         <scope>test</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|         <groupId>org.junit.jupiter</groupId> | ||||
|         <artifactId>junit-jupiter-engine</artifactId> | ||||
|         <scope>test</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.springframework.boot</groupId> | ||||
|  |  | |||
|  | @ -11,6 +11,7 @@ package ch.ethz.seb.sebserver.gui.integration; | |||
| import static org.junit.Assert.*; | ||||
| 
 | ||||
| import org.junit.Test; | ||||
| import org.springframework.core.annotation.Order; | ||||
| import org.springframework.test.context.jdbc.Sql; | ||||
| 
 | ||||
| import ch.ethz.seb.sebserver.gbl.api.API; | ||||
|  | @ -27,10 +28,12 @@ import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.institution.NewIn | |||
| public class UseCasesIntegrationTest extends GuiIntegrationTest { | ||||
| 
 | ||||
|     @Test | ||||
|     @Order(1) | ||||
|     public void bigUseCasesTest() { | ||||
| 
 | ||||
|         // ************************************* | ||||
|         // Use Case 1: SEB Administrator creates a new institution and activate this new institution | ||||
| 
 | ||||
|         final RestServiceImpl restService = createRestServiceForUser( | ||||
|                 "admin", | ||||
|                 "admin", | ||||
|  | @ -64,13 +67,12 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest { | |||
|         institution = resultGet.get(); | ||||
|         assertEquals("Test Institution", institution.name); | ||||
|         assertTrue(institution.active); | ||||
|          | ||||
| 
 | ||||
|         // ************************************* | ||||
|         // Use Case 2: SEB Administrator creates a new Institutional Administrator user for the | ||||
|         // newly created institution and activate this user | ||||
|          | ||||
| 
 | ||||
|         // TODO do as much use cases as possible within this integration test | ||||
|          | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti