question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test configuration missing: messages: basename: i18n/messages

See original GitHub issue

Generated test configuration src/test/resources/config/application.yml is missing settings for messages like in the generated src/main/resources/config/application.yml what causes MessageResource injected in unit tests to be empty.

The problem is in https://github.com/jhipster/generator-jhipster/blob/master/generators/server/templates/src/test/resources/config/_application.yml which is missing following:

    messages:
        basename: i18n/messages

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
mguillemcommented, Mar 1, 2017

@deepu105 no, I haven’t cloned the project and for this very small change it is not worth doing it.

0reactions
deepu105commented, Mar 2, 2017

Im not talking about any ones experience here and I dont care to be frank. I was talking about attitude and I have made my point so lets stop the discussion so we dont waste any ones time further.

Sorry Julien.

Thanks & regards, Deepu

On 2 Mar 2017 2:21 p.m., “Julien Dubois” notifications@github.com wrote:

Let me take 5 minutes: I’m doing this on the train, with my phone. Of course it’s much easier for me if you do a PR: I click on merge, and it’s done. I won’t have access to my computer until late at night, and I have tons of other tickets, so if you just open a ticket its priority will be much lower than a PR. And then, I can’t have too many opened tickets, so if you say it’s not worth 10 minutes of your time, then it’s probably not worth 10 minutes of mine. And no, I don’t code PRs quicker than you. It’s just a question of managing priorities.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jhipster/generator-jhipster/issues/5334#issuecomment-283593605, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDlF66ZpioGzGuyTh1VOZE4cnpaNxbnks5rhoMYgaJpZM4MPY-a .

Read more comments on GitHub >

github_iconTop Results From Across the Web

No message found under code 'welcome' for locale 'en_US ...
Spring i18n: NoSuchMessageException: No message found under code 'welcome' for locale 'en_US' · 1. It is due to the properties files cannot be ......
Read more >
Spring Boot internationalization i18n: step-by-step with ...
As you can see, Spring Boot picks the base name from a Spring property named spring.messages.basename , or in the absence of this, ......
Read more >
Internationalization in Spring Boot | Java Development Journal
Introduction to internationalization in Spring Boot. ... Default locale file will name as messages.properties and files for other locales ...
Read more >
TranslationCheck (checkstyle 10.5.0 API)
Specify Base name of resource bundles which contain message resources. It helps the check to distinguish config and localization resources. requiredTranslations.
Read more >
Internationalisation (i18n) with Angular and Java Spring in ...
The problem. This article will be exploring the process of adding i18n to a java Spring Boot and Angular application, as such, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found