This file contains 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.example.integration_test; | |
import com.example.testAppli.TestAppliApplication; | |
import com.example.testAppli.infrastructure.database.repository.JdbcTemplateCustomerRepository; | |
import org.junit.jupiter.api.Test; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.test.web.servlet.MockMvc; | |
import org.springframework.test.web.servlet.MvcResult; |
This file contains 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.example.integration_test; | |
import com.zaxxer.hikari.HikariDataSource; | |
import org.junit.ClassRule; | |
import org.springframework.context.annotation.Bean; | |
import org.testcontainers.containers.PostgreSQLContainer; | |
import org.testcontainers.junit.jupiter.Container; | |
import org.testcontainers.junit.jupiter.Testcontainers; | |
import javax.sql.DataSource; |
This file contains 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
java.lang.IllegalStateException: Failed to load ApplicationContext | |
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132) | |
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:123) | |
at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) | |
at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) | |
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:244) | |
at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:137) | |
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$6(ClassBasedTestDescriptor.java:350) |
This file contains 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
/// twitch-videoad.js | |
const origFetch = window.fetch; | |
window.fetch = (url, init, ...args) => { | |
if (typeof url === "string") { | |
if (url.includes("/access_token")) { | |
url = url.replace("player_type=site", "player_type=dashboard"); | |
} else if ( | |
url.includes("/gql") && | |
init && | |
typeof init.body === "string" && |
This file contains 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
const add = (num1, num2) => { | |
const num1Array = splitNumberInDigitsReverseArray(num1); | |
const num2Array = splitNumberInDigitsReverseArray(num2); | |
let result = []; | |
for(let i=0;i < num1Array.length;i++) { | |
let addition = 0; | |
if (num1Array[i] === undefined) { |
This file contains 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
1 - Quelle est la société qui développe Symfony ? | |
SensioLabs | |
2 - Cite les autres produits développés par cette société ? | |
- Blackfire.IO | |
- Twig | |
3 - Parmi ces outils, lesquels sont des frameworks |
This file contains 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
/* hello-wilder.js */ | |
// Define some variables | |
const movieName = 'blow'; | |
const movieYear = 2001; | |
const movieRea = 'ted demme'; | |
const message = 'My favorite movie is ' + movieName + ' in ' + movieYear + ' by ' + movieRea; | |
// Display a popup | |
alert(message); |
This file contains 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
A\. | |
[0-9]{2}/[0-9]{2}/[0-9]{4} | |
[ ][0-9]?/[0-9]{2} | |
[a-zA-Z]{14} | |
[a-z]{5}:\/\/(www\.)?[a-z]{4}\.[a-z]{3}/[a-z]{5}/[a-z0-9]+ |
This file contains 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
<div class="container-fluid bg-light"> | |
<div class="container"> | |
<div class="row"> | |
<div class="row"> | |
<div class="col-8"> | |
<div class="row"> | |
<div class="col-6"> | |
<a href=""><img src="https://via.placeholder.com/350x200"></a> | |
</div> | |
<div class="col-6"> |
This file contains 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
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: quest | |
-- ------------------------------------------------------ | |
-- Server version 5.7.23-0ubuntu0.18.04.1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
NewerOlder