Skip to content

Commit f13048b

Browse files
author
Ahmed Tawila
committed
Merge branch 'master' of https://github.com/eugenp/tutorials
2 parents 960d8e0 + ae6daf5 commit f13048b

190 files changed

Lines changed: 3719 additions & 302 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎algorithms/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
- [Bubble Sort in Java](http://www.baeldung.com/java-bubble-sort)
1515
- [Introduction to JGraphT](http://www.baeldung.com/jgrapht)
1616
- [Introduction to Minimax Algorithm](http://www.baeldung.com/java-minimax-algorithm)
17+
- [How to Calculate Levenshtein Distance in Java?](http://www.baeldung.com/java-levenshtein-distance)

‎apache-spark/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Relevant articles
2+
3+
- [Introduction to Apache Spark](http://www.baeldung.com/apache-spark)

‎cas/cas-secured-app/pom.xml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@
6565
<groupId>org.springframework.boot</groupId>
6666
<artifactId>spring-boot-maven-plugin</artifactId>
6767
</plugin>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-surefire-plugin</artifactId>
71+
<version>${maven-surefire-plugin.version}</version>
72+
<configuration>
73+
<forkCount>3</forkCount>
74+
<reuseForks>true</reuseForks>
75+
<excludes>
76+
<exclude>**/*IntegrationTest.java</exclude>
77+
<exclude>**/*LongRunningUnitTest.java</exclude>
78+
<exclude>**/*ManualTest.java</exclude>
79+
<exclude>**/JdbcTest.java</exclude>
80+
<exclude>**/*LiveTest.java</exclude>
81+
</excludes>
82+
83+
</configuration>
84+
</plugin>
85+
6886
</plugins>
6987
</build>
7088

@@ -107,4 +125,5 @@
107125
</pluginRepositories>
108126

109127

128+
110129
</project>

cas/cas-secured-app/src/test/java/com/baeldung/cassecuredapp/CasSecuredAppApplicationTests.java renamed to cas/cas-secured-app/src/test/java/com/baeldung/cassecuredapp/CasSecuredAppApplicationIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@RunWith(SpringRunner.class)
99
@SpringBootTest
10-
public class CasSecuredAppApplicationTests {
10+
public class CasSecuredAppApplicationIntegrationTest {
1111

1212
@Test
1313
public void contextLoads() {

‎cas/cas-server/src/main/resources/application.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ cas.authn.jdbc.query[0].sql=SELECT * FROM users WHERE email = ?
109109
cas.authn.jdbc.query[0].url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
110110
cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.MySQLDialect
111111
cas.authn.jdbc.query[0].user=root
112-
cas.authn.jdbc.query[0].password=
112+
cas.authn.jdbc.query[0].password=root
113113
cas.authn.jdbc.query[0].ddlAuto=none
114114
#cas.authn.jdbc.query[0].driverClass=com.mysql.jdbc.Driver
115115
cas.authn.jdbc.query[0].driverClass=com.mysql.cj.jdbc.Driver
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-- Dumping database structure for test
2+
CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
3+
USE `test`;
4+
5+
-- Dumping structure for table test.users
6+
CREATE TABLE IF NOT EXISTS `users` (
7+
`id` int(11) NOT NULL AUTO_INCREMENT,
8+
`email` varchar(50) DEFAULT NULL,
9+
`password` text DEFAULT NULL,
10+
PRIMARY KEY (`id`)
11+
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
12+
13+
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
14+
INSERT INTO `users` (`id`, `email`, `password`) VALUES
15+
(1, 'test@test.com', 'Mellon');
16+
/*!40000 ALTER TABLE `users` ENABLE KEYS */;

‎core-java-8/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@
3030
- [The Difference Between map() and flatMap()](http://www.baeldung.com/java-difference-map-and-flatmap)
3131
- [Merging Streams in Java](http://www.baeldung.com/java-merge-streams)
3232
- [“Stream has already been operated upon or closed” Exception in Java](http://www.baeldung.com/java-stream-operated-upon-or-closed-exception)
33+
- [Display All Time Zones With GMT And UTC in Java](http://www.baeldung.com/java-time-zones)
34+
- [Copy a File with Java](http://www.baeldung.com/java-copy-file)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.annotations;
2+
3+
@Deprecated
4+
class ClassWithAnnotation {
5+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.baeldung.annotations;
2+
3+
class ClassWithDeprecatedMethod {
4+
5+
@Deprecated
6+
static void deprecatedMethod() {
7+
8+
}
9+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.baeldung.annotations;
2+
3+
class ClassWithSafeVarargs<T> {
4+
5+
@SafeVarargs
6+
final void iterateOverVarargs(T... args) {
7+
for (T x : args) {
8+
// do stuff with x
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)