Package com.github.dandelion.datatables.core.asset

Examples of com.github.dandelion.datatables.core.asset.JavascriptSnippet


    table.getTableConfiguration().set(TableConfig.AJAX_SERVERPARAM, "someServerParam");

    Map<String, Object> mainConf = generator.generateConfig(table);

    assertThat(mainConf).hasSize(3);
    assertThat(mainConf.get(DTConstants.DT_FN_SERVERPARAMS)).isEqualTo(new JavascriptSnippet("someServerParam"));
  }
View Full Code Here


  public void shoud_load_the_extension_with_the_given_ajax_source() {
   
    extensionProcessor.process(new HashSet<Extension>(Arrays.asList(new PipeliningFeature())));

    assertThat(AssetRequestContext.get(table.getTableConfiguration().getRequest()).getBundles(true)).hasSize(1);
    assertThat(mainConfig).includes(entry(DTConstants.DT_FN_SERVERDATA, new JavascriptSnippet("fnDataTablesPipeline")));
    // TODO test the pipe size
  }
View Full Code Here

TOP

Related Classes of com.github.dandelion.datatables.core.asset.JavascriptSnippet

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.