This file contains hidden or 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
| @Test | |
| public void returnNumberByDefault() { | |
| assertEquals("1", FizzBuzz.say(1)); | |
| } |
This file contains hidden or 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
| @Test | |
| public void getMyImage() { | |
| Fixture.useDefaultResourceManager(); | |
| ResourceManager resourceManager = getResourceManager(); | |
| assertFalse(resourceManager.isRegistered(Fixture.IMAGE1)); | |
| Image image1 = Graphics.getImage(Fixture.IMAGE1); | |
| String imagePath = getRegisterPath(image1); | |
| assertTrue(resourceManager.isRegistered(imagePath)); | |
This file contains hidden or 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
| FizzBuzz fizzBuzz = new FizzBuzz(); | |
| @Test | |
| public void กรณีอื่นๆ() { | |
| assertEquals("1", fizzBuzz.say(1)); | |
| } |
This file contains hidden or 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
| function logAccess($status = 200) { | |
| file_put_contents("php://stdout", sprintf("custom =>[%s] %s:%s [%s]: %sn", | |
| date("D M j H:i:s Y"), $_SERVER["REMOTE_ADDR"], | |
| $_SERVER["REMOTE_PORT"], $status, $_SERVER["REQUEST_URI"])); | |
| } | |
This file contains hidden or 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
| class Foo { | |
| public Foo(int a, int b) { | |
| } | |
| } |
This file contains hidden or 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
| class A { | |
| public void resetSession() { | |
| Foo.start(); | |
| Foo.open(); | |
| Foo.maximizeWindow(); | |
| } | |
| } |
This file contains hidden or 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
| private void some() { | |
| if (c1()) { | |
| f1(); | |
| } else { | |
| f2(); | |
| } | |
| if (c2()) { | |
| f3(); | |
| } else { |
This file contains hidden or 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
| TEST(CircularBuffer, empty_after_create) | |
| { | |
| CHECK_TRUE(buffer->isEmpty()); | |
| } |
This file contains hidden or 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
| *** Settings *** | |
| Library Selenium2Library | |
| Test Teardown Close Browser | |
| *** Variables *** | |
| *** Testcases *** | |
| เข้าสู่ระบบเสร็จสมบูรณ์ |
This file contains hidden or 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
| PersonDAO personDAO = new PersonDAO(); | |
| Person person = personDAO.getPersonByID(1); | |
| if(person != null) { | |
| person.setName("My name"); | |
| } |