Skip to content

Instantly share code, notes, and snippets.

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;
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;
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)
/// 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" &&
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) {
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
/* 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);
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]+
<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">
-- 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 */;