Package net.sf.uadetector.internal.data

Examples of net.sf.uadetector.internal.data.DataBlueprint


  }

  @Test
  public void setData_successful() {
    final TestXmlDataStore store = new TestXmlDataStore();
    final Data data2 = new DataBlueprint().version("test-version").build();
    store.setData(data2);
    assertThat(store.getData()).isSameAs(data2);
  }
View Full Code Here


        return null;
      }

      @Override
      public Data getData() {
        return new DataBlueprint().version(version).build();
      }

      @Override
      public DataReader getDataReader() {
        return null;
View Full Code Here

    new TestDataStore(Data.EMPTY, new XmlDataReader(), CHARSET, null, url);
  }

  @Test
  public void construct_successful() {
    final Data data = new DataBlueprint().version("test-version").build();
    final DataReader reader = new XmlDataReader();
    final TestDataStore store = new TestDataStore(data, reader, CHARSET, DATA_URL, VERSION_URL);

    assertThat(store.getData().getVersion()).isEqualTo("test-version");
    assertThat(store.getData()).isSameAs(data);
View Full Code Here

TOP

Related Classes of net.sf.uadetector.internal.data.DataBlueprint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.