|
|
@ -17,7 +17,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getAllArticles() {
|
|
|
|
public List<Article> getAllArticles() {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -25,7 +25,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
1)
|
|
|
|
1)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"moi",
|
|
|
|
"moi",
|
|
|
|
"zaeaeaeazeza",
|
|
|
|
"zaeaeaeazeza",
|
|
|
|
LocalDate.now().minusMonths(2),
|
|
|
|
LocalDate.now().minusMonths(2),
|
|
|
@ -33,7 +33,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
1)
|
|
|
|
1)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"eux",
|
|
|
|
"eux",
|
|
|
|
"erfdhdh",
|
|
|
|
"erfdhdh",
|
|
|
|
LocalDate.now().minusMonths(3),
|
|
|
|
LocalDate.now().minusMonths(3),
|
|
|
@ -41,7 +41,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
1)
|
|
|
|
1)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"tout ceux qui le veulent",
|
|
|
|
"tout ceux qui le veulent",
|
|
|
|
"azersdfgg",
|
|
|
|
"azersdfgg",
|
|
|
|
LocalDate.now().minusMonths(4),
|
|
|
|
LocalDate.now().minusMonths(4),
|
|
|
@ -55,7 +55,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Article getArticlesById(Integer id) {
|
|
|
|
public Article getArticlesById(Integer id) {
|
|
|
|
return new Article(
|
|
|
|
return new Article(1,
|
|
|
|
"azeaeaze",
|
|
|
|
"azeaeaze",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -68,7 +68,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesByTitle(String title) {
|
|
|
|
public List<Article> getArticlesByTitle(String title) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(1,
|
|
|
|
title,
|
|
|
|
title,
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -84,7 +84,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesByType(Integer type) {
|
|
|
|
public List<Article> getArticlesByType(Integer type) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(1,
|
|
|
|
"aeazeazeaz",
|
|
|
|
"aeazeazeaz",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -100,7 +100,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getVisibleArticles() {
|
|
|
|
public List<Article> getVisibleArticles() {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(1,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -116,7 +116,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getInvisibleArticles() {
|
|
|
|
public List<Article> getInvisibleArticles() {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(1,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -132,7 +132,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesAddedBefore(String dateAdded) {
|
|
|
|
public List<Article> getArticlesAddedBefore(String dateAdded) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.parse(dateAdded, DateTimeFormatter.ISO_DATE).minusMonths(1),
|
|
|
|
LocalDate.parse(dateAdded, DateTimeFormatter.ISO_DATE).minusMonths(1),
|
|
|
@ -148,7 +148,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesAddedAfter(String dateAdded) {
|
|
|
|
public List<Article> getArticlesAddedAfter(String dateAdded) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.parse(dateAdded, DateTimeFormatter.ISO_DATE).plusMonths(1),
|
|
|
|
LocalDate.parse(dateAdded, DateTimeFormatter.ISO_DATE).plusMonths(1),
|
|
|
@ -164,7 +164,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesAddedBetween(String beginning, String end) {
|
|
|
|
public List<Article> getArticlesAddedBetween(String beginning, String end) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.parse(beginning, DateTimeFormatter.ISO_DATE),
|
|
|
|
LocalDate.parse(beginning, DateTimeFormatter.ISO_DATE),
|
|
|
@ -180,7 +180,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesPublishedBefore(String datePublished) {
|
|
|
|
public List<Article> getArticlesPublishedBefore(String datePublished) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -196,7 +196,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesPublishedAfter(String datePublished) {
|
|
|
|
public List<Article> getArticlesPublishedAfter(String datePublished) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
@ -212,7 +212,7 @@ public class StubArticleService implements IArticleService {
|
|
|
|
public List<Article> getArticlesPublishedBetween(String beginning, String end) {
|
|
|
|
public List<Article> getArticlesPublishedBetween(String beginning, String end) {
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
List<Article> articles = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
articles.add(new Article(
|
|
|
|
articles.add(new Article(null,
|
|
|
|
"toi",
|
|
|
|
"toi",
|
|
|
|
"azezeaea",
|
|
|
|
"azezeaea",
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|
LocalDate.now().minusMonths(1),
|
|
|
|