Hey everyone! 👋 Today, let’s dive into how to check logs effectively when writing tests with Spock in Java. I’ve found it super helpful for ensuring our applications run as expected. Here are the key takeaways:
- Spock Framework offers a clean and expressive way to write specifications for your tests. - You can leverage LogCaptor to capture log messages seamlessly.
Here’s a simple example of how you can use it:
import nl.codingstyle.logcaptor.LogCaptor;
void "should log a message when action is performed"() { given: LogCaptor logCaptor = LogCaptor.forClass(MyService.class)
Hey everyone! 👋 Today, let’s dive into how to check logs effectively when writing tests with Spock in Java. I’ve found it super helpful for ensuring our applications run as expected. Here are the key takeaways:
- Spock Framework offers a clean and expressive way to write specifications for your tests. - You can leverage LogCaptor to capture log messages seamlessly.
Here’s a simple example of how you can use it:
import nl.codingstyle.logcaptor.LogCaptor;
void "should log a message when action is performed"() { given: LogCaptor logCaptor = LogCaptor.forClass(MyService.class)
Secret Chats are one of the service’s additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device’s that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company’s services and offer a self-destruct timer.
Telegram Be The Next Best SPAC
I have no inside knowledge of a potential stock listing of the popular anti-Whatsapp messaging app, Telegram. But I know this much, judging by most people I talk to, especially crypto investors, if Telegram ever went public, people would gobble it up. I know I would. I’m waiting for it. So is Sergei Sergienko, who claims he owns $800,000 of Telegram’s pre-initial coin offering (ICO) tokens. “If Telegram does a SPAC IPO, there would be demand for this issue. It would probably outstrip the interest we saw during the ICO. Why? Because as of right now Telegram looks like a liberal application that can accept anyone - right after WhatsApp and others have turn on the censorship,” he says.