updated to log4j2
This commit is contained in:
@@ -18,14 +18,18 @@ import org.junit.Before;
|
||||
* @author jomu
|
||||
*/
|
||||
public class BaseTest {
|
||||
|
||||
|
||||
protected SPContext context = null;
|
||||
|
||||
@Before
|
||||
public void init() throws MalformedURLException, NoSuchAlgorithmException, KeyManagementException, JAXBException {
|
||||
// FIXME - needs to be implemented using mock; replace with real data but make sure password is not commited
|
||||
NtlmAuthenticator credentials = null;
|
||||
context = null;
|
||||
context = null;
|
||||
// DO NOT COMMMT THE FOLLOWING LINES
|
||||
credentials = new NtlmAuthenticator("wincor-nixdorf.com", "joern.muehlencord", "\"34fR4vbHuL");
|
||||
context = new SPContext(new java.net.URL("https://troom.wincor-nixdorf.com/rooms/sw_ps_hq_utrecht/hqall/bd/spwin7/"), credentials, SPVersion.SP2010,
|
||||
true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Query xmlns="http://schemas.microsoft.com/sharepoint/">
|
||||
<Where>
|
||||
<And>
|
||||
<And>
|
||||
<Contains>
|
||||
<FieldRef Name="Editor" />
|
||||
<Value Type="Text">Chandler</Value>
|
||||
</Contains>
|
||||
<Contains>
|
||||
<FieldRef Name="FileRef" />
|
||||
<Value Type="Text">AuditDeleteTesting</Value>
|
||||
</Contains>
|
||||
</And>
|
||||
<Eq>
|
||||
<FieldRef Name="Created_x0020_Date" />
|
||||
<Value Type="DateTime">2013-09-11</Value>
|
||||
</Eq>
|
||||
</And>
|
||||
|
||||
</Where>
|
||||
</CamlQueryRoot>
|
||||
Reference in New Issue
Block a user