Codota Logo
DatabaseImpl
Code IndexAdd Codota to your IDE (free)

How to use
DatabaseImpl
in
ro.ovidiuconeac.datalayer.database

Best Java code snippets using ro.ovidiuconeac.datalayer.database.DatabaseImpl (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: ovicon/AndroidCleanArchitectureWithMVP

public static DatabaseImpl getInstance() {
  if (DatabaseImpl.INSTANCE == null) {
    DatabaseImpl.INSTANCE = new DatabaseImpl();
  }
  return DatabaseImpl.INSTANCE;
}
origin: ovicon/AndroidCleanArchitectureWithMVP

private DatabaseImpl() {
  initFruits();
  initCheeses();
  initSweets();
}
origin: ovicon/AndroidCleanArchitectureWithMVP

@Test(expected = IndexOutOfBoundsException.class)
public void whenWrongIdForCheeseThrowExpectedException() {
  database.getCheeseById(-1);
}
origin: ovicon/AndroidCleanArchitectureWithMVP

  @Test(expected = IndexOutOfBoundsException.class)
  public void whenWrongIdForSweetThrowExpectedException() {
    database.getSweetById(123);
  }
}
origin: ovicon/AndroidCleanArchitectureWithMVP

@Test(expected = IndexOutOfBoundsException.class)
public void whenWrongIdForFruitThrowExpectedException() {
  database.getFruitById(16);
}
origin: ovicon/AndroidCleanArchitectureWithMVP

@Before
public void setUp() {
  database = DatabaseImpl.getInstance();
}
origin: ovicon/AndroidCleanArchitectureWithMVP

@Test
public void whenCorrectIdGetCheeseFromDatabase() {
  assertNotNull(database.getCheeseById(id));
}
origin: ovicon/AndroidCleanArchitectureWithMVP

@Test
public void whenCorrectIdGetSweetFromDatabase() {
  assertNotNull(database.getSweetById(id));
}
origin: ovicon/AndroidCleanArchitectureWithMVP

@Test
public void whenCorrectIdGetFruitFromDatabase() {
  assertNotNull(database.getFruitById(id));
}
ro.ovidiuconeac.datalayer.databaseDatabaseImpl

Javadoc

Created by ovidiu on 2/7/17.

Most used methods

  • <init>
  • getCheeseById
  • getFruitById
  • getInstance
  • getSweetById
  • initCheeses
  • initFruits
  • initSweets

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Reference (javax.naming)
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now