Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
388 commits
Select commit Hold shift + click to select a range
b6c32db
BAEL-718 Quick intro to javatuplesMaster (#1389)
yasin3061 Mar 13, 2017
788e261
Update .travis.yml (#1387)
pivovarit Mar 13, 2017
15f5037
Feature/bael 75 (#1383)
wimdeblauwe Mar 13, 2017
46b1f93
BAEL-482 (#1379)
jokorie95 Mar 13, 2017
f2f8839
BAEL-707 Add the changes as per review comment (#1397)
baljeet20 Mar 14, 2017
52ef5b3
remove constructors (#1398)
lor6 Mar 14, 2017
61660f5
add update to rest api (#1401)
Doha2012 Mar 15, 2017
5cd552a
BAEL-634 javassist (#1349)
tomekl007 Mar 15, 2017
f6e570c
adding following modules with updated testcase : DB, Filter, Json (#1…
AbhinabKanrar Mar 15, 2017
21aa127
add entry points (#1413)
lor6 Mar 15, 2017
d1233d0
spring boot custom banner (#1412)
AbhinabKanrar Mar 15, 2017
de29f6a
BALE-707 Refactoring changes (#1418)
baljeet20 Mar 16, 2017
26b5ab8
BAEL-696 - Implement OR in the REST API Query Language (#1404)
ahamedm Mar 16, 2017
c2bcb63
changing banner format in plain text (#1417)
AbhinabKanrar Mar 16, 2017
6aefd62
Update .travis.yml (#1419)
pivovarit Mar 16, 2017
dbc2c49
BAEL-578: Add spring-kafka module (#1407)
vivekkr12 Mar 16, 2017
a794db3
internationalization app (#1394)
lor6 Mar 17, 2017
fbd5d1d
code for Introduction to Project Jigsaw BAEL-603 (#1421)
sanaulla123 Mar 17, 2017
ac50687
README files for BAEL-393 and BAEL-541 (#1409)
KevinGilmore Mar 17, 2017
e7e6326
Spring MVC Custom Validator
jboadas Mar 17, 2017
99bebe8
Refactor flattening lists example (#1372)
pivovarit Mar 18, 2017
dc90aac
incorporate few review comments for bael-603 (#1429)
sanaulla123 Mar 18, 2017
f8bd663
Merge branch 'master' into sla-pr/1423-jesus-custom-validator
slavisa-baeldung Mar 18, 2017
42f1ef0
BAEL-112 - custom validator - format fixes
slavisa-baeldung Mar 18, 2017
6300112
README files update (#1435)
mariiakulik Mar 18, 2017
8981008
Update README.md (#1432)
mariiakulik Mar 18, 2017
1153618
Update README.MD (#1433)
mariiakulik Mar 19, 2017
ae6514b
BAEL-347 Fixes (#1361)
mujahid Mar 19, 2017
22b5c49
Create README.md (#1434)
mariiakulik Mar 19, 2017
9d0cb1e
BAEL-722 Intro to JSONassert (#1437)
yasin3061 Mar 19, 2017
202a19a
Automata indentation and link (#1425)
amihaiemil Mar 19, 2017
d35f7d0
BAEL-388 (#1360)
dcassiani Mar 19, 2017
04d8fed
validation with mvc and angular (#1378)
lor6 Mar 19, 2017
32147b4
BAEL-702 Intro to Vert.x Initial commit
dhruba619 Mar 19, 2017
a652b55
resolved conflicts
dhruba619 Mar 19, 2017
81741d8
Merge branch 'eugenp-master'
dhruba619 Mar 19, 2017
32c21f2
BAEL-731: Updated README (#1452)
KevinGilmore Mar 19, 2017
debde5a
Update README.md (#1439)
pivovarit Mar 19, 2017
7d670d2
Update README.md (#1442)
pivovarit Mar 19, 2017
e693c47
Delete README.md (#1440)
pivovarit Mar 19, 2017
365d9b7
Update README.md (#1441)
pivovarit Mar 19, 2017
e71367b
Assembly plugin fix (#1449)
pivovarit Mar 19, 2017
6bd430c
Update .travis.yml
pivovarit Mar 19, 2017
6c3f4d8
Update .travis.yml
pivovarit Mar 19, 2017
0b78cc9
Custom aop (#1451)
mogronalol Mar 19, 2017
3accbf8
UserController refactor (#1450)
pivovarit Mar 19, 2017
ed70f6b
Finite Automata refactor (#1445)
pivovarit Mar 20, 2017
64c2ef1
Guava 21 (#1411)
daveRanjan Mar 20, 2017
52c1e6a
Update README.md
pivovarit Mar 20, 2017
29645fc
BAEL-724 (#1422) Property testing with Javaslang
tomekl007 Mar 20, 2017
c071c59
Merge branch 'master' into sla-pr/1381-vert.x-dhrubayotti
slavisa-baeldung Mar 20, 2017
5294e7d
BAEL-702 - Intro to Vert.x formatting changes
slavisa-baeldung Mar 20, 2017
b4b2ad3
Merge pull request #1430 from eugenp/sla-pr/1423-jesus-custom-validator
slavisa-baeldung Mar 20, 2017
b95a014
BAEL-738 (#1456) PUT and PATCH
tomekl007 Mar 20, 2017
9c755ee
BAEL-722 Intro to JSONassert (#1460)
yasin3061 Mar 20, 2017
b5ef48a
Turn off spring-5 module
pivovarit Mar 21, 2017
07c0e84
Initial commit for merging modules spring-mvc-forms into (#1222)
joshiparthin Mar 21, 2017
78f8710
BAEL-137 Intro do JHipster (#1427)
felipe-gdr Mar 21, 2017
60bbd6d
Merge pull request #1458 from eugenp/sla-pr/1381-vert.x-dhrubayotti
slavisa-baeldung Mar 21, 2017
faea5eb
Refactor Javaslang samples (#1469)
pivovarit Mar 21, 2017
eab4a5f
Move custom filter examples (#1465)
pivovarit Mar 21, 2017
bd237b2
master (#1455)
XealRedan Mar 21, 2017
d66703b
BAEL-680: rename test methods (#1470)
KevinGilmore Mar 21, 2017
e71358a
BAEL-503: initial commit of a simple Spring AMQL example application …
Mar 22, 2017
a055ab5
BAEL-714: Updated README.md (#1475)
KevinGilmore Mar 23, 2017
6def745
BAEL-679. Java 9 Reactive Streams. Second draft.
shankarps Mar 23, 2017
b01c2c5
Bael 361 jackson streaming (#1459)
tomekl007 Mar 23, 2017
e884e3f
update spring-kafka project with support for multiple partitions and …
vivekkr12 Mar 23, 2017
2d556cd
Bael 738 (#1478)
tomekl007 Mar 24, 2017
94e1fc2
Remove unused tests
pivovarit Mar 24, 2017
ae52b82
mvn test
pivovarit Mar 24, 2017
cd08737
add testing profile
pivovarit Mar 24, 2017
d0b0deb
Exclude integration tests
pivovarit Mar 24, 2017
f673acb
Update .travis.yml
pivovarit Mar 24, 2017
319dd26
Spring State Machine (#1424)
dkornishev Mar 24, 2017
3140ea1
Bs santosh spring mybatis (#1479)
bs-santosh Mar 24, 2017
44f5742
(BAEL-746) How to Copy an Array in Java (#1474)
azrairshad Mar 24, 2017
11cdf67
Merge modules (#1471)
pivovarit Mar 24, 2017
092d883
Revert "Spring State Machine" (#1485)
pivovarit Mar 24, 2017
a6ac119
Merge branch 'master' into BAEL_679_reactive_streams
pivovarit Mar 24, 2017
2aca6e0
BAEL-745 Quick Math.pow example (#1482)
yasin3061 Mar 24, 2017
c3764e3
CORS in JAX-RS (#1484)
AbhinabKanrar Mar 24, 2017
9472f0d
BAEL-347 - change solr-fulltext-search to solr (#1462)
mujahid Mar 25, 2017
b6e271f
spring-custom-aop -> spring-aop (#1489)
pivovarit Mar 25, 2017
efc2043
KafkaProducerConfig refactor (#1488)
pivovarit Mar 25, 2017
669f4d6
Further build improvements (#1486)
pivovarit Mar 25, 2017
21f9df6
Bael 518 protobuffer (#1400)
tomekl007 Mar 25, 2017
9b48f77
ContactNumberValidator refactor (#1491)
pivovarit Mar 25, 2017
e62f8fa
Add javaEE annotation sample project (#1481)
buddhini81 Mar 25, 2017
de29cd5
BAEL-750 Added Java configuration (#1494)
baljeet20 Mar 25, 2017
052c149
in memory test (#1476)
lor6 Mar 25, 2017
52eb7c2
Bael 738 (#1504)
tomekl007 Mar 26, 2017
d3e57d3
#BAEL-636 (#1468)
aietcn Mar 26, 2017
e913702
Update pom.xml (#1507)
pivovarit Mar 26, 2017
6322aa3
Bael 737 v2 (#1509)
lor6 Mar 26, 2017
e6836c0
sample for BAEL-747 Check if a number is prime in Java (#1508)
sanaulla123 Mar 26, 2017
427077e
Jackson Map Serialize/Deserialize (#1511)
nbosecker Mar 27, 2017
c5806d4
BAEL-737 README (#1514)
KevinGilmore Mar 27, 2017
365d75a
Jackson version updated (#1516)
nbosecker Mar 27, 2017
1c1c557
Spring State Machine (#1493)
dkornishev Mar 27, 2017
6a0e142
BAEL-431 Exploring the Spring Boot TestRestTemplate (#1444)
TSobala Mar 27, 2017
0c8aa7e
Added an example for array copy via stream (#1510)
azrairshad Mar 27, 2017
85969c6
State machine refactor (#1520)
pivovarit Mar 28, 2017
a18d779
BAEL-636: add standalone deployment (#1521)
aietcn Mar 28, 2017
0bc9bfb
BAEL-636: register servlet using java config (#1525)
aietcn Mar 28, 2017
70d8fec
Comparator comparing (#1515)
joshiparthin Mar 28, 2017
ef91c37
BAEL-696 Implement OR in the REST API Query Language (#1518)
ahamedm Mar 28, 2017
17042f0
BAEL-732: String to enum (#1526)
cvadan Mar 28, 2017
6e2dcfc
Refactor PizzaUnitTest (#1527)
pivovarit Mar 28, 2017
6fe7789
Guide to Guava | common.util.concurrent (#1528)
daveRanjan Mar 28, 2017
361df07
Added KeyDeserializer class and test code (#1523)
nbosecker Mar 29, 2017
1a7ccb8
Bael 756 (#1513)
tomekl007 Mar 29, 2017
e6d9dde
add a main-class variable on maven building and exclude IntegrationTe…
aietcn Mar 29, 2017
6f75ad8
Bael 756 (#1531)
tomekl007 Mar 29, 2017
b63ef44
removed explicit types from map instantiation (#1532)
nbosecker Mar 29, 2017
ea345fa
Integrate forEach and stream changes to test, removing non-test class…
gitterjim-I Mar 29, 2017
47dfe6b
Introduction to JAX-WS[http://jira.baeldung.com/browse/BAEL-611] (#1224)
Euniceadu Mar 30, 2017
ec089be
BAEL-611: Minor formatting changes (#1534)
sunilmogadati Mar 30, 2017
e28dfe6
modify ratings controller (#1536)
Doha2012 Mar 30, 2017
ce589cc
Corrected Indentation using formatter. (#1541)
daveRanjan Mar 30, 2017
99688e9
Spring State Machine x3 (#1538)
dkornishev Mar 30, 2017
d3590de
ratpack with google guice (#1542)
AbhinabKanrar Mar 30, 2017
626db73
Corrected Indentation using formatter. (#1541) (#1544)
pivovarit Mar 31, 2017
c73c252
BAEL-680 and BAEL-756 README files (#1539)
KevinGilmore Mar 31, 2017
4daef51
BAEL-711 Guide_to_Microservices_using_lagom_framework Changes (#1495)
khatwaniNikhil Mar 31, 2017
0975123
Exploring the Spring Boot TestRestTemplate (#1550)
TSobala Mar 31, 2017
4c84fab
Updated ArrayCopy assert statements. (#1540)
azrairshad Mar 31, 2017
3c334e6
Spring State Machine x4 (#1547)
dkornishev Mar 31, 2017
aaf5a3e
Latest review changes: more concise code and suggested refactoring. (…
gitterjim-I Mar 31, 2017
cc0c7d5
Enable hbase (#1545)
pivovarit Apr 1, 2017
4b98413
Moved AOP module and removed Spring Boot starter (#1506)
mogronalol Apr 1, 2017
760692b
Build time optimization (#1553)
pivovarit Apr 1, 2017
09d4c6f
Refactor Vertx samples (#1554)
pivovarit Apr 1, 2017
2c50b4f
SS refactor (#1555)
pivovarit Apr 1, 2017
87be4ed
Moved objectmapper to class level, one per class (#1558)
nbosecker Apr 1, 2017
15a4a23
adding factory instance example (#1552)
AbhinabKanrar Apr 1, 2017
0b17547
code for BAEL-747 after incorporating review comments (#1560)
sanaulla123 Apr 1, 2017
4b9aa54
BAEL-431 A CLI with Spring Shell (#1562)
juarezjaramillo Apr 1, 2017
077d745
BAEL-75 - Spring Boot Audit Support (#1561)
wimdeblauwe Apr 1, 2017
8fc5195
Bael 112 validator upgrade (#1567)
slavisa-baeldung Apr 2, 2017
b4b5f79
BAEL-666: README (#1563)
KevinGilmore Apr 2, 2017
ccd76fa
Merge pull request #4 from eugenp/master
dhruba619 Apr 2, 2017
d85f164
BAEL-716 Junit vs testng improvement
dhruba619 Apr 2, 2017
8e060b9
Bael 711 guide to microservices using lagom framework v2 (#1573)
khatwaniNikhil Apr 2, 2017
c3b73c5
Bael 627 (#1431)
mogronalol Apr 2, 2017
c817aec
BAEL-716 Junit vs testng improvement updated formatting
dhruba619 Apr 2, 2017
d361c91
BAEL-696 Implement OR in the REST API Query Language - Alternate Impl…
ahamedm Apr 2, 2017
54615dd
BAEL-640: Guide to Mathematical Operations with Guava (#1390)
Apr 2, 2017
0932951
Modifications to the JavaEEAnnotationsSample application (#1522)
buddhini81 Apr 2, 2017
44e63c6
Bael 769 javers (#1543)
tomekl007 Apr 2, 2017
77d270a
in memory dbs config (#1551)
lor6 Apr 3, 2017
1a05305
custom failureAnalyzer (#1559)
lor6 Apr 3, 2017
0f67389
Merge pull request #1572 from dhruba619/master
slavisa-baeldung Apr 3, 2017
4d08f3d
Refactor Analyzer examples (#1579)
pivovarit Apr 3, 2017
e7cc456
Optimize build (#1582)
pivovarit Apr 3, 2017
2a76b9c
change test names, bael-667 (#1581)
gitterjim-I Apr 3, 2017
8da820b
BAEL-87 - @JsonComponent in Spring Boot (#1519)
wimdeblauwe Apr 3, 2017
975ee3b
BAEL-679 second draft
Apr 4, 2017
a4f4301
BAEL-729 Adding custom info to actuator's /info endpoint (#1584)
yasin3061 Apr 4, 2017
50ff1d1
quick-guide-to-the-java-stringtokenizer (#1587)
AbhinabKanrar Apr 4, 2017
eb26f83
Bael 770 jetty (#1548)
tomekl007 Apr 4, 2017
cb9c16a
Optimize build (#1592)
pivovarit Apr 5, 2017
bbcafe2
Feature/bael 87 (#1590)
wimdeblauwe Apr 5, 2017
806d2d8
BAEL-415: Custom Scope in Spring (#1578)
KevinGilmore Apr 5, 2017
57fe1fc
Change test names once more (#1596)
gitterjim-I Apr 5, 2017
2dfd789
Update README files and cleanup (#1597)
KevinGilmore Apr 5, 2017
ad0cd72
BAEL-434 Spring Roo (#1589)
iaforek Apr 6, 2017
fd8e872
[BAEL-752] Cucumber with Scenario Outline (#1583)
him-bhar Apr 6, 2017
22dda8c
Fix/readme update (#1602)
Apr 7, 2017
69965db
Spring Cloud Zookeeper (#1399)
TehreemNisa Apr 7, 2017
d87e066
incorporate review comments for BAEL-747 (#1603)
sanaulla123 Apr 7, 2017
7ab1e37
cusstom token (#1588)
AbhinabKanrar Apr 7, 2017
e7d81e6
Optimize build (#1604)
pivovarit Apr 7, 2017
196ea6b
Refactor Tokenizer (#1605)
pivovarit Apr 7, 2017
a3926e4
separate test datasource (#1575)
lor6 Apr 7, 2017
6bf3659
Introduction to JAX-WS[http://jira.baeldung.com/browse/BAEL-611] (#1566)
Euniceadu Apr 7, 2017
f5437fe
Fix integration test (#1607)
Doha2012 Apr 7, 2017
190ce77
Merge pull request #1477 from shankarps/BAEL_679_reactive_streams
slavisa-baeldung Apr 8, 2017
13a42ea
Intro to JasperReports with Spring (#1608)
juarezjaramillo Apr 8, 2017
60c2eda
StringTokenizerTest refactor (#1611)
pivovarit Apr 8, 2017
c0509dd
minor fix (#1612)
Doha2012 Apr 8, 2017
1e8bcdc
Update README.md (#1606)
MMonik Apr 9, 2017
60332bb
BAEL-451 (#1610)
aietcn Apr 9, 2017
a5de78c
Bael 766 flink (#1533)
tomekl007 Apr 9, 2017
cc27658
fix integration test (#1615)
Doha2012 Apr 9, 2017
a826e70
Jenetics library (#1601)
maibin Apr 10, 2017
a78a4dc
Update on README (#1619)
Apr 10, 2017
4e56009
minor cleanup (#1618)
Doha2012 Apr 10, 2017
1a288b5
Code for Avoiding ConcurrentModificationException when iterating and …
jmelo-lyncode Apr 10, 2017
34aa697
remove unused module (#1628)
pivovarit Apr 10, 2017
3fd20f6
Bael 770 jetty (#1629)
tomekl007 Apr 10, 2017
b5e4c4e
Converters, Listeners and Validators in Java EE 7 (#1630)
jboadas Apr 10, 2017
0acc76d
BAEL-735 README update (#1623)
KevinGilmore Apr 11, 2017
c75daff
Refactor Mockito snippets (#1616)
pivovarit Apr 11, 2017
3fb4e03
BAEL-640: Guide to Mathematical Operations with Guava (BDD naming) (#…
Apr 11, 2017
6cafa3d
Spring Cloud Zookeeper Updated (#1626)
TehreemNisa Apr 11, 2017
3286018
Bael 766 flink (#1632)
tomekl007 Apr 11, 2017
e32c6e5
BAEL-635 Overview of Spring 5 (#1633)
Thangtq211 Apr 11, 2017
d21d7a1
BAEL-567: updated README (#1640)
KevinGilmore Apr 12, 2017
0b98f0d
Code changes related to modifications in section 7 of the article (#1…
buddhini81 Apr 12, 2017
2f34e89
dynamic validation (#1621)
lor6 Apr 12, 2017
e3a45f5
BAEL-788 A guid to mybatis (#1637)
baljeet20 Apr 12, 2017
9108267
Converters, Listeners and Validators (#1634)
jboadas Apr 12, 2017
891f0ba
Assertj refactor (#1635)
pivovarit Apr 13, 2017
f5991d1
readme (#1631)
tomekl007 Apr 13, 2017
782c556
jvm log forging (#1643)
AbhinabKanrar Apr 13, 2017
2ac22b3
Bael 766 flink (#1644)
tomekl007 Apr 13, 2017
a5879bf
Bael 822 thread local (#1625)
tomekl007 Apr 14, 2017
2b8ba17
Bael 736 (#1646)
lor6 Apr 14, 2017
14909f6
Refactor ContactInfoValidator (#1647)
pivovarit Apr 14, 2017
389927d
BAEL-748 quick guide to @Value (#1577)
retroq Apr 15, 2017
2dbca95
BAEL-736 Update README (#1651)
KevinGilmore Apr 15, 2017
5e0d1e8
BAEL-814 unsafe (#1645)
tomekl007 Apr 15, 2017
b7d6487
BAEL-88 Testing in Spring Boot (#1653)
yasin3061 Apr 15, 2017
99a0b6e
Update UnsafeTest.java (#1655)
pedja4 Apr 15, 2017
c313256
log forging (#1659)
AbhinabKanrar Apr 16, 2017
76409e6
BAEL-788 Added java config (#1660)
baljeet20 Apr 16, 2017
64ce09d
remove log4j properties (#1662)
Doha2012 Apr 16, 2017
cdab6ac
Update README.md (#1657)
yetanotherallisonf Apr 16, 2017
7525544
use standard logback.xml (#1666)
Doha2012 Apr 17, 2017
576298d
Bael 779 kotlin generics (#1614)
tomekl007 Apr 17, 2017
a1e7463
Spring Cloud Zookeeper Updated (#1665)
TehreemNisa Apr 17, 2017
874f3a0
BAEL-766 README.md update (#1668)
KevinGilmore Apr 18, 2017
7d6bf29
sample code for update to BAEL-743 (#1669)
sanaulla123 Apr 18, 2017
1aff8ca
BAEL 767 - Introduction to Apache Commons Math (update) (#1670)
XealRedan Apr 18, 2017
6c181db
minor formatting cleanuop
Apr 18, 2017
f204b61
Bael 779 kotlin generics (#1671)
tomekl007 Apr 18, 2017
63c8423
update security config (#1674)
lor6 Apr 18, 2017
33fef60
BAEL-434 Moved project from roo to spring-roo folder. (#1673)
iaforek Apr 18, 2017
dc56154
BAEL-788 Added the review comment changes (#1672)
baljeet20 Apr 18, 2017
553c368
BAEL-88 Testing in Spring Boot (#1679)
yasin3061 Apr 18, 2017
a5f4ae9
Readme files update (#1680)
mariiakulik Apr 18, 2017
74688cf
remove log4j dependencies (#1675)
Doha2012 Apr 18, 2017
f674f12
BAEL-748 updated Quick Guide to @Value (#1663)
retroq Apr 19, 2017
709857b
BAEL-427 Examples for topic and fanout exchanges. (#1648)
mateuszmrozewski Apr 19, 2017
54d2452
add modules for spring boot custom starter BAEL-762 (#1661)
vivekkr12 Apr 19, 2017
699cf9d
Bael 736 (#1685)
lor6 Apr 19, 2017
5e1e320
exclude commons-logging dependency (#1686)
Doha2012 Apr 19, 2017
bc6bcc3
Mark integration tests (#1690)
pivovarit Apr 19, 2017
2d1379a
fix dependency issues (#1691)
Doha2012 Apr 19, 2017
4c6b529
Bael 736 ver2 (#1693)
lor6 Apr 19, 2017
87bc04a
minor fix (#1694)
Doha2012 Apr 19, 2017
aa08d12
spring boot mysql autoconfiguration (#1639)
lor6 Apr 19, 2017
e37ab29
BAEL-845 transfer queue (#1676)
tomekl007 Apr 20, 2017
4b19cb6
Charge a credit card with Stripe (#1556)
lsoares Apr 20, 2017
76673a3
Hibernate 5 Multitenancy tutorial (#1150)
joshiparthin Apr 20, 2017
2648a4e
Bael 845 transfer queue (#1697)
tomekl007 Apr 20, 2017
c70ee03
BAEL-846 code for a syncrhonous queue article (#1699)
tomekl007 Apr 20, 2017
bac494c
Update README.md for BAEL-748
yetanotherallisonf Apr 21, 2017
2a3030d
BAEL 767 - Moving module apache-commons-math to module libraries (#1701)
XealRedan Apr 21, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*/bin/*

*.class

# Package Files #
Expand Down
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
language: java

install: travis_wait 40 mvn -q clean install -Dgib.enabled=true
install: travis_wait 60 mvn -q test

before_script:
- echo "MAVEN_OPTS='-Xmx2048M -Xss128M -XX:MaxPermSize=2048M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:-UseGCOverheadLimit'" > ~/.mavenrc

jdk:
- oraclejdk8

sudo: false
addons:
apt:
packages:
Expand All @@ -14,4 +16,6 @@ addons:
cache:
directories:
- .autoconf
- $HOME/.m2
- $HOME/.m2


3 changes: 3 additions & 0 deletions Twitter4J/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Relevant articles

- [Introduction to Twitter4J](http://www.baeldung.com/twitter4j)
53 changes: 53 additions & 0 deletions Twitter4J/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mabsisa</groupId>
<artifactId>Twitter4J</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Twitter4J</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-stream</artifactId>
<version>4.0.6</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
</dependencies>

<build>
<finalName>${project.artifactId}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<excludes>
<exclude>**/ApplicationTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

</project>
116 changes: 116 additions & 0 deletions Twitter4J/src/main/java/com/baeldung/Application.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
/**
*
*/
package com.baeldung;

import java.util.List;
import java.util.stream.Collectors;

import twitter4j.DirectMessage;
import twitter4j.Query;
import twitter4j.QueryResult;
import twitter4j.StallWarning;
import twitter4j.Status;
import twitter4j.StatusDeletionNotice;
import twitter4j.StatusListener;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.TwitterStream;
import twitter4j.TwitterStreamFactory;
import twitter4j.conf.ConfigurationBuilder;

public class Application {

public static Twitter getTwitterinstance() {
/**
* if not using properties file, we can set access token by following way
*/
// ConfigurationBuilder cb = new ConfigurationBuilder();
// cb.setDebugEnabled(true)
// .setOAuthConsumerKey("//TODO")
// .setOAuthConsumerSecret("//TODO")
// .setOAuthAccessToken("//TODO")
// .setOAuthAccessTokenSecret("//TODO");
// TwitterFactory tf = new TwitterFactory(cb.build());
// Twitter twitter = tf.getSingleton();

Twitter twitter = TwitterFactory.getSingleton();
return twitter;

}

public static String createTweet(String tweet) throws TwitterException {
Twitter twitter = getTwitterinstance();
Status status = twitter.updateStatus("creating baeldung API");
return status.getText();
}

public static List<String> getTimeLine() throws TwitterException {
Twitter twitter = getTwitterinstance();
List<Status> statuses = twitter.getHomeTimeline();
return statuses.stream().map(
item -> item.getText()).collect(
Collectors.toList());
}

public static String sendDirectMessage(String recipientName, String msg) throws TwitterException {
Twitter twitter = getTwitterinstance();
DirectMessage message = twitter.sendDirectMessage(recipientName, msg);
return message.getText();
}

public static List<String> searchtweets() throws TwitterException {
Twitter twitter = getTwitterinstance();
Query query = new Query("source:twitter4j baeldung");
QueryResult result = twitter.search(query);
List<Status> statuses = result.getTweets();
return statuses.stream().map(
item -> item.getText()).collect(
Collectors.toList());
}

public static void streamFeed() {

StatusListener listener = new StatusListener(){

@Override
public void onException(Exception e) {
e.printStackTrace();
}

@Override
public void onDeletionNotice(StatusDeletionNotice arg) {
System.out.println("Got a status deletion notice id:" + arg.getStatusId());
}

@Override
public void onScrubGeo(long userId, long upToStatusId) {
System.out.println("Got scrub_geo event userId:" + userId + " upToStatusId:" + upToStatusId);
}

@Override
public void onStallWarning(StallWarning warning) {
System.out.println("Got stall warning:" + warning);
}

@Override
public void onStatus(Status status) {
System.out.println(status.getUser().getName() + " : " + status.getText());
}

@Override
public void onTrackLimitationNotice(int numberOfLimitedStatuses) {
System.out.println("Got track limitation notice:" + numberOfLimitedStatuses);
}
};

TwitterStream twitterStream = new TwitterStreamFactory().getInstance();

twitterStream.addListener(listener);

twitterStream.sample();

}

}
4 changes: 4 additions & 0 deletions Twitter4J/src/main/resources/twitter4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
oauth.consumerKey=//TODO
oauth.consumerSecret=//TODO
oauth.accessToken=//TODO
oauth.accessTokenSecret=//TODO
40 changes: 40 additions & 0 deletions Twitter4J/src/test/java/com/baeldung/ApplicationTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.baeldung;

import static org.junit.Assert.assertEquals;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

import twitter4j.TwitterException;

public class ApplicationTest {

/**
* In order run this jUnit test you need to configure your API details in the twitter4j.properties
*/

String tweet = "baeldung is awsome";

@Test
public void givenText_updateStatus() throws TwitterException {
String text = Application.createTweet(tweet);
assertEquals(tweet, text);
}

@Test
public void givenCredential_fetchStatus() throws TwitterException {
List<String> statuses = Application.getTimeLine();
List<String> expectedStatuses = new ArrayList<String>();
expectedStatuses.add(tweet);
assertEquals(expectedStatuses, statuses);
}

@Test
public void givenRecipientNameAndMessage_sendDirectMessage() throws TwitterException {
String msg = Application.sendDirectMessage("YOUR_RECCIPIENT_ID", tweet);
assertEquals(msg, tweet);
}

}
1 change: 1 addition & 0 deletions algorithms/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
4 changes: 4 additions & 0 deletions algorithms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

- [Dijkstra Algorithm in Java](http://www.baeldung.com/java-dijkstra)
- [Introduction to Cobertura](http://www.baeldung.com/cobertura)
- [Ant Colony Optimization](http://www.baeldung.com/java-ant-colony-optimization)
- [Validating Input With Finite Automata in Java](http://www.baeldung.com/finite-automata-java)
- [Introduction to Jenetics Library](http://www.baeldung.com/jenetics)
- [Check If a Number Is Prime in Java](http://www.baeldung.com/java-prime-numbers)
18 changes: 18 additions & 0 deletions algorithms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,33 @@
<junit.version>4.12</junit.version>
<maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
<exec-maven-plugin.version>1.5.0</exec-maven-plugin.version>
<lombok.version>1.16.12</lombok.version>
<commons-math3.version>3.6.1</commons-math3.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>${commons-math3.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.jenetics</groupId>
<artifactId>jenetics</artifactId>
<version>3.7.0</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@

public class RunAlgorithm {

public static void main(String[] args) {
public static void main(String[] args) throws InstantiationException, IllegalAccessException {
Scanner in = new Scanner(System.in);
System.out.println("Run algorithm:");
System.out.println("1 - Simulated Annealing");
System.out.println("2 - Slope One");
System.out.println("3 - Simple Genetic Algorithm");
System.out.println("4 - Ant Colony");
System.out.println("5 - Dijkstra");
int decision = in.nextInt();
switch (decision) {
case 1:
Expand All @@ -33,6 +34,9 @@ public static void main(String[] args) {
AntColonyOptimization antColony = new AntColonyOptimization(21);
antColony.startAntOptimization();
break;
case 5:
System.out.println("Please run the DijkstraAlgorithmTest.");
break;
default:
System.out.println("Unknown option");
break;
Expand Down
Loading