• Imran Latif
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello,
as i wrote in the title i've got this issue. the two classes i use are those:
@isTest
public class ContainsProvaTest {
    static testMethod void prova(){
        ContainsProva prova1 = new ContainsProva();
        prova1.contains();
        
    }
}

public with sharing class ContainsProva {
    public void contains() {
        String name = 'Rossella';
        boolean result = name.contains('Ros');
        System.debug('Result is' + result);
    }
  
}

Both classes are inside an Apex sandbox project.

Configuration

test configuration

What's wrong with that?

I read that it could be a bug of salesforce. Can anyone helps me?

Thanks

Rossella