This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dumiduh; | |
import java.sql.Statement; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
public class DatabaseUser { | |
private Connection connectionObj; | |
private Statement statementObj; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('bobdeniro', 1, '[email protected]', 1); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('eliseB', 2, '[email protected]', 1); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('arthurH', 3, '[email protected]', 1); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('wandaL', 4, '[email protected]', 2); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('paulsimon', 5, '[email protected]', 2); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('jessicaA', 6, '[email protected]', 2); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('steveM', 7, '[email protected]', 2); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('evaM', 8, '[email protected]', 2); | |
INSERT INTO my_activities.users (username, id, email, status_id) VALUES ('alpacino', 9, '[email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
import Bowling | |
class TestBowlingWithUnittest(unittest.TestCase): | |
def setUp(self): | |
self.strike = (10, 0) | |
self.spare_0_10 = (0, 10) | |
self.spare_5_5 = (5, 5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Bowling import * | |
# Ce fichier contient les fonctions permettant de tester les fonctions que vous devez écrire dans le fichier "Bowling.py" | |
# Ces fonctions de tests spécifient d'une part les structures de données que vous devez utiliser mais aussi les fonctions | |
# que vous devez implanter. | |
# | |
# Fonction lançant l'ensemble des fonctions de tests implantées dans la suite du fichier | |
# | |
def run_tests(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ourbusinessproject; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.test.context.junit4.SpringRunner; | |
import javax.transaction.Transactional; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ourbusinessproject; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.boot.test.web.client.TestRestTemplate; | |
import org.springframework.test.context.junit4.SpringRunner; | |
import org.springframework.util.LinkedMultiValueMap; | |
import org.springframework.util.MultiValueMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ourbusinessproject; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.boot.test.mock.mockito.MockBean; | |
import org.springframework.test.context.junit4.SpringRunner; | |
import static org.mockito.ArgumentMatchers.isNull; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ourbusinessproject; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.test.context.junit4.SpringRunner; | |
import javax.transaction.Transactional; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ourbusinessproject; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import static org.mockito.BDDMockito.*; | |
import org.springframework.boot.test.mock.mockito.MockBean; | |
import org.springframework.test.context.junit4.SpringRunner; | |
import static org.hamcrest.core.Is.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ourbusinessproject; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.test.context.junit4.SpringRunner; | |
import javax.transaction.Transactional; |