This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args){ | |
System.out.println("TEst"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Constructor of A | |
A(){ | |
System.out.println("A's constructor"); | |
} | |
public void method(){ | |
System.out.println("A's get method"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* SyntaxHighlighter | |
* http://alexgorbatchev.com/ | |
* | |
* @version | |
* 2.0.278 (February 03 2009) | |
* | |
* @author | |
* Alex Gorbatchev | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.testng</groupId> | |
<artifactId>testng</artifactId> | |
<version>6.9.4</version> | |
<scope>test</scope> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExampleString { | |
public String generateString(String str){ | |
return str; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.testng.Assert; | |
import org.testng.annotations.Test; | |
public class TestExampleString { | |
@Test() | |
public void testGenerateString(){ | |
ExampleString example = new ExampleString(); | |
String generateStr = example.generateString("Hello World"); | |
Assert.assertNotNull(generateStr); | |
Assert.assertEquals(generateStr,"Hello World"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from Employee where Employee_Name = 'abc'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE INDEX name_index ON Employee (Employee_Name) | |
CREATE INDEX name_index ON Employee (Employee_Name, Employee_Age) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface MyInterface { | |
/** | |
* All the methods of an interface are public by default | |
*/ | |
void method1(); | |
void method2(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyInterfaceImpl implements MyInterface { | |
@Override public void method1() { | |
System.out.println("Implementation of method 1"); | |
} | |
@Override public void method2() { | |
System.out.println("Implementation of method 2"); | |
} | |
public static void main(String[] args){ |
OlderNewer