Sorry! There are no mistakes :)
Type: Posts; User: QtFalcon
Sorry! There are no mistakes :)
Yes! I've just added '!' Thanks! :)
if ( !matcherForPhoneNumber.find() ) {
throw new ErrorPhoneNumber( phoneNumber );
}
Hi,
Help me to find mistake. I receive this message in my netbeans-report during testing:
FreeFunctions.java
/*
This line doesn't work:
this( "", "", "", "", "" );
/**
*
I see that it is normal :D
Such I test methods with exceptions:
@Rule
public ExpectedException exception = ExpectedException.none();
// ...
Thanks! It is how in C++ :D
public class Person
{
Person( String nickName,
String firstName,
String lastName,
String phoneNumber,
Thanks!
Is this normal?
/**
* Test of checkPersonFields method, of class FreeFunctions.
*/
@Test
Hi,
I want to test that a function has no any exceptions.
In C++ and Google Test Framework (GTest) it will look like this:
ASSERT_NO_THROW({
actual = divide(a, b);
...
What's the difference between:
public class Example {
public Example(int x, int y) {
setMethodX(x);
setMethodY(y);
}
}
No :)
How to set default values in constructor how in Qt:
class Person
{
public:
Person( QString nickName = QString( "" ),
Please, see my code:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in...
Hi,
Please, help me to write analog of this code in Java:
#include <QString>
class Person
{