input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testChangeIpcPort ( ) { org . apache . hadoop . hdfs . HdfsConfiguration conf = new org . apache . hadoop . hdfs . HdfsConfiguration ( ) ; org . apache . hadoop . hdfs . MiniDFSCluster cluster = null ; try { cluster = new org . apache . hadoop . hdfs . MiniDFSCluster . Builder ( conf ) . build ( ) ; java . net . InetSo... | org . junit . Assert . assertEquals ( realIpcPort , report [ 0 ] . getIpcPort ( ) ) |
jsonControllerShouldReceiveTraceeHeader ( ) { io . tracee . Tracee . getBackend ( ) . put ( TraceeConstants . INVOCATION_ID_KEY , "myValue" ) ; final io . tracee . binding . springmvc . itests . TraceeInterceptorRestIT . SillyRestBody sillyBody = restTemplate . getForEntity ( ( ( ENDPOINT_URL ) + "nameNeedTraceeId/sven... | org . junit . Assert . assertThat ( sillyBody . getReceivedTraceeId ( ) , org . hamcrest . Matchers . is ( "myValue" ) ) |
test_Error_Target ( ) { de . vandermeer . svg2vector . applications . base . AppBase < de . vandermeer . svg2vector . applications . is . IsLoader , de . vandermeer . svg2vector . applications . base . AppProperties < de . vandermeer . svg2vector . applications . is . IsLoader > > testApp = new de . vandermeer . svg2ve... | org . junit . Assert . assertEquals ( ( - 10 ) , testApp . executeApplication ( args ) ) |
setsGenreOnV1TagOnly ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; com . mpatric . mp3agic . ID3Wrapper wrapper = new com . mpatric . mp3agic . ID3Wrapper ( id3v1Tag , null ) ; wrapper . setGenre ( 22 ) ; "<AssertPlaceHolder>" ; } getGenre ( ) {... | org . junit . Assert . assertEquals ( 22 , id3v1Tag . getGenre ( ) ) |
notNullArg ( ) { org . pdfsam . ui . module . ModuleOwnedButton victim = new org . pdfsam . ui . module . ModuleOwnedButton ( "Chuck" ) ; "<AssertPlaceHolder>" ; } getOwnerModule ( ) { return ownerModule ; } | org . junit . Assert . assertEquals ( "Chuck" , victim . getOwnerModule ( ) ) |
testAttrsMultipleVaryMessageBytes ( ) { com . cloudera . flume . core . Event e1 ; com . cloudera . flume . core . Event e2 ; for ( com . cloudera . flume . core . EventSource src : BenchmarkHarness . varyNumAttrs . values ( ) ) { src . open ( ) ; e1 = src . next ( ) ; src . open ( ) ; e2 = src . next ( ) ; "<AssertPla... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( e1 . getBody ( ) , e2 . getBody ( ) ) ) |
testIndexOf ( ) { org . eclipse . nebula . widgets . grid . GridItem [ ] items = org . eclipse . nebula . widgets . grid . GridTestUtil . createGridItems ( grid , 1 , 10 ) ; "<AssertPlaceHolder>" ; } createGridItems ( org . eclipse . nebula . widgets . grid . Grid , int , int ) { org . eclipse . nebula . widgets . grid... | org . junit . Assert . assertEquals ( 5 , items [ 0 ] . indexOf ( items [ 6 ] ) ) |
testAllFail ( ) { final com . codahale . metrics . health . HealthCheckRegistry registry = new com . codahale . metrics . health . HealthCheckRegistry ( ) ; registry . register ( "fail1" , com . spotify . helios . master . metrics . TotalHealthCheckGaugeTest . stubHealthCheck ( HealthCheck . Result . unhealthy ( "error... | org . junit . Assert . assertThat ( gauge . getValue ( ) , org . hamcrest . Matchers . is ( 0 ) ) |
testCreateWithByteReturnsInteger ( ) { final org . jsoar . kernel . symbols . Symbol s = org . jsoar . kernel . symbols . Symbols . create ( syms , ( ( byte ) ( 34 ) ) ) ; "<AssertPlaceHolder>" ; } asInteger ( ) { return null ; } | org . junit . Assert . assertEquals ( 34 , s . asInteger ( ) . getValue ( ) ) |
testShouldBeAbleToFindMultipleElementsById ( ) { driver . get ( pages . nestedPage ) ; java . util . List < org . openqa . selenium . WebElement > elements = driver . findElements ( org . openqa . selenium . By . id ( "2" ) ) ; "<AssertPlaceHolder>" ; } size ( ) { java . lang . Object response = executeMethod . execute... | org . junit . Assert . assertThat ( elements . size ( ) , org . hamcrest . Matchers . is ( 8 ) ) |
testHashCodeWithDifferentCap ( ) { org . eclipse . swt . graphics . LineAttributes attributes1 = new org . eclipse . swt . graphics . LineAttributes ( 1 , org . eclipse . swt . SWT . CAP_FLAT , org . eclipse . swt . SWT . JOIN_BEVEL ) ; org . eclipse . swt . graphics . LineAttributes attributes2 = new org . eclipse . s... | org . junit . Assert . assertTrue ( ( ( attributes1 . hashCode ( ) ) != ( attributes2 . hashCode ( ) ) ) ) |
whenCreatedFromMapWithoutJavaLoggingLevel_hasEmptyString ( ) { oracle . kubernetes . operator . helm . HelmOperatorValues values = new oracle . kubernetes . operator . helm . HelmOperatorValues ( com . google . common . collect . ImmutableMap . of ( ) ) ; "<AssertPlaceHolder>" ; } getJavaLoggingLevel ( ) { return javaL... | org . junit . Assert . assertThat ( values . getJavaLoggingLevel ( ) , org . hamcrest . Matchers . equalTo ( "" ) ) |
readJSONReturnsNullForNullInput ( ) { "<AssertPlaceHolder>" ; } readJSON ( org . json . JSONObject ) { return null ; } | org . junit . Assert . assertNull ( this . component . readJSON ( null ) ) |
testGetGenericSuperType1 ( ) { java . lang . String msg ; msg = "The<sp>adaptation<sp>of<sp>UML2DataType.getGenericSuperType()<sp>seems<sp>to<sp>be<sp>wrong." ; msg += "<sp>The<sp>Type<sp>" + ( org . dresdenocl . metamodels . uml2 . test . tests . TestUmlDataType . dataType . getQualifiedName ( ) ) ; msg += "<sp>should... | org . junit . Assert . assertEquals ( msg , 0 , org . dresdenocl . metamodels . uml2 . test . tests . TestUmlDataType . dataType . getGenericSuperType ( ) . size ( ) ) |
testClone ( ) { com . gs . collections . api . map . MutableMap < java . lang . String , java . lang . String > map = this . classUnderTest ( ) ; "<AssertPlaceHolder>" ; } clone ( ) { return this ; } | org . junit . Assert . assertSame ( map , map . clone ( ) ) |
testNullConstraint ( ) { final org . kie . api . KieBase kbase = loadKnowledgeBase ( "null_constraint.drl" ) ; org . kie . api . runtime . KieSession session = kbase . newKieSession ( ) ; final java . util . List foo = new java . util . ArrayList ( ) ; session . setGlobal ( "messages" , foo ) ; final org . drools . com... | org . junit . Assert . assertEquals ( 2 , ( ( java . util . List ) ( session . getGlobal ( "messages" ) ) ) . size ( ) ) |
testSkipsWhenNoOnloadAndWithHintSpecified ( ) { org . easymock . EasyMock . expect ( jsUri . getOnload ( ) ) . andReturn ( null ) ; org . easymock . EasyMock . expect ( jsUri . isNohint ( ) ) . andReturn ( false ) ; response = control . createMock ( org . apache . shindig . gadgets . js . JsResponseBuilder . class ) ; ... | org . junit . Assert . assertTrue ( processor . process ( request , response ) ) |
testSetArrowStyleListKO ( ) { final java . util . List < net . sf . latexdraw . model . api . shape . ArrowStyle > vals = java . util . Arrays . asList ( arr1 . getArrowStyle ( 0 ) , arr2 . getArrowStyle ( 1 ) ) ; group . setArrowInsetList ( null ) ; "<AssertPlaceHolder>" ; } getArrowStyle ( java . lang . String ) { re... | org . junit . Assert . assertEquals ( vals , java . util . Arrays . asList ( arr1 . getArrowStyle ( 0 ) , arr2 . getArrowStyle ( 1 ) ) ) |
testOneWaySSLWithBadServerProtocol ( ) { createCustomSslServer ( null , "myBadProtocol" ) ; tc . getParams ( ) . put ( TransportConstants . SSL_ENABLED_PROP_NAME , true ) ; tc . getParams ( ) . put ( TransportConstants . TRUSTSTORE_PROVIDER_PROP_NAME , storeType ) ; tc . getParams ( ) . put ( TransportConstants . TRUST... | org . junit . Assert . assertTrue ( true ) |
getProviders_shouldReturnAllProvidersIfQueryIsEmptyAndIncludeRetiredTrue ( ) { java . util . List < org . openmrs . Provider > allProviders = service . getAllProviders ( ) ; java . util . List < org . openmrs . Provider > providers = service . getProviders ( "" , null , null , null , true ) ; "<AssertPlaceHolder>" ; } ... | org . junit . Assert . assertEquals ( allProviders . size ( ) , providers . size ( ) ) |
testIllegalClosedPolygon ( ) { org . openspaces . spatial . shapes . Polygon polygonWithCloseRing = org . openspaces . spatial . ShapeFactory . polygon ( org . openspaces . spatial . ShapeFactory . point ( 75.05722045898438 , 41.14039880964587 ) , org . openspaces . spatial . ShapeFactory . point ( 73.30490112304686 , ... | org . junit . Assert . assertNotNull ( spatial4jPolygon ) |
defaultState ( ) { try { future . get ( 5 , TimeUnit . MILLISECONDS ) ; org . junit . Assert . fail ( ) ; } catch ( java . util . concurrent . TimeoutException expected ) { "<AssertPlaceHolder>" ; } } get ( long , java . util . concurrent . TimeUnit ) { long giveUp = ( java . lang . System . currentTimeMillis ( ) ) + (... | org . junit . Assert . assertTrue ( true ) |
deleteDomainPresenceWithTimeCheck_delete_with_same_DateTime ( ) { org . joda . time . DateTime CREATION_DATETIME = org . joda . time . DateTime . now ( ) ; io . kubernetes . client . models . V1ObjectMeta domainMeta = createMetadata ( CREATION_DATETIME ) ; io . kubernetes . client . models . V1ObjectMeta domain2Meta = ... | org . junit . Assert . assertFalse ( oracle . kubernetes . operator . helpers . KubernetesUtils . isFirstNewer ( domainMeta , domain2Meta ) ) |
testLotsOfBytes ( ) { int howManyBytes = 48000 ; org . skyscreamer . nevado . jms . message . BytesMessage msg = createSession ( ) . createBytesMessage ( ) ; byte [ ] data = org . skyscreamer . nevado . jms . util . RandomData . readBytes ( howManyBytes ) ; msg . writeBytes ( data ) ; org . skyscreamer . nevado . jms .... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( data , dataOut ) ) |
testSerialization ( ) { org . jfree . data . time . TimePeriodValue tpv1 = new org . jfree . data . time . TimePeriodValue ( new org . jfree . data . time . Day ( 30 , 7 , 2003 ) , 55.75 ) ; org . jfree . data . time . TimePeriodValue tpv2 = ( ( org . jfree . data . time . TimePeriodValue ) ( org . jfree . chart . Test... | org . junit . Assert . assertEquals ( tpv1 , tpv2 ) |
test_pass_inout_long ( ) { org . omg . CORBA . IntHolder x = new org . omg . CORBA . IntHolder ( ( - 4 ) ) ; server . pass_inout_long ( x ) ; "<AssertPlaceHolder>" ; } pass_inout_long ( org . omg . CORBA . IntHolder ) { x . value = ( x . value ) + 1 ; } | org . junit . Assert . assertEquals ( ( - 3 ) , x . value ) |
shouldFailWebSocketConnectionWhenServerSendCloseFrameWithRsv6 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any (... | org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) ) |
testWriteTo ( ) { final java . io . StringWriter sink = new java . io . StringWriter ( ) ; final java . io . PrintWriter writer = new java . io . PrintWriter ( sink ) ; final com . allanbank . mongodb . client . metrics . basic . BasicOperationMetricsListener metrics = new com . allanbank . mongodb . client . metrics .... | org . junit . Assert . assertThat ( sink . toString ( ) , org . hamcrest . Matchers . is ( "" ) ) |
testCanSingleTapOnAnAnchorAndNotReloadThePage ( ) { openWebdriverTestPage ( HtmlTestData . CLICKS_PAGE ) ; ( ( org . openqa . selenium . JavascriptExecutor ) ( driver ( ) ) ) . executeScript ( "document.latch<sp>=<sp>true" ) ; singleTapOnElement ( "anchor" ) ; java . lang . Boolean samePage = ( ( java . lang . Boolean ... | org . junit . Assert . assertTrue ( samePage ) |
testLoad ( ) { org . eclipse . tycho . repository . local . LocalArtifactRepository repo = new org . eclipse . tycho . repository . local . LocalArtifactRepository ( localRepoIndices ) ; repo . save ( ) ; org . eclipse . equinox . p2 . repository . artifact . IArtifactRepository repo2 = subject . load ( baseDir . toURI... | org . junit . Assert . assertEquals ( repo , repo2 ) |
testRunBatchJobThatSucceeds ( ) { org . apache . beam . sdk . Pipeline p = org . apache . beam . sdk . Pipeline . create ( options ) ; org . apache . beam . sdk . values . PCollection < java . lang . Integer > pc = p . apply ( org . apache . beam . sdk . transforms . Create . of ( 1 , 2 , 3 ) ) ; org . apache . beam . ... | org . junit . Assert . assertEquals ( mockJob , runner . run ( p , mockRunner ) ) |
listCredentials ( ) { eu . abc4trust . abce . internal . issuer . credentialManager . CredentialStorage credStore = new eu . abc4trust . abce . internal . issuer . credentialManager . PersistentCredentialStorage ( eu . abc4trust . util . TemporaryFileFactory . createTemporaryFile ( ) ) ; eu . abc4trust . abce . interna... | org . junit . Assert . assertEquals ( issuerSecretKeys [ inx ] . getCryptoParams ( ) . getContent ( ) . get ( 0 ) , issuerSecretKey . getCryptoParams ( ) . getContent ( ) . get ( 0 ) ) |
disconnectedAgain ( ) { final org . apache . rya . shell . SharedShellState state = new org . apache . rya . shell . SharedShellState ( ) ; state . disconnected ( ) ; final org . apache . rya . shell . SharedShellState . ShellState expected = org . apache . rya . shell . SharedShellState . ShellState . builder ( ) . se... | org . junit . Assert . assertEquals ( expected , state . getShellState ( ) ) |
getRevision ( ) { "<AssertPlaceHolder>" ; } getRevision ( ) { org . junit . Assert . assertTrue ( ( "Revision<sp>is<sp>not<sp>a<sp>SHA1<sp>hash:<sp>" + ( org . mycore . common . MCRCoreVersion . getRevision ( ) ) ) , org . mycore . common . MCRCoreVersion . getRevision ( ) . matches ( "[a-fA-F0-9]{40}" ) ) ; } | org . junit . Assert . assertTrue ( ( "Revision<sp>is<sp>not<sp>a<sp>SHA1<sp>hash:<sp>" + ( org . mycore . common . MCRCoreVersion . getRevision ( ) ) ) , org . mycore . common . MCRCoreVersion . getRevision ( ) . matches ( "[a-fA-F0-9]{40}" ) ) |
testTLSOnly ( ) { this . server = org . apache . hc . core5 . http . impl . bootstrap . ServerBootstrap . bootstrap ( ) . setSslContext ( org . apache . hc . client5 . testing . SSLTestContexts . createServerSSLContext ( ) ) . setSslSetupHandler ( new org . apache . hc . core5 . http . impl . bootstrap . SSLServerSetup... | org . junit . Assert . assertNotNull ( sslsession ) |
newParamConfigShouldBuildANewParamConfigWithGivenArgs ( ) { org . codegist . crest . config . ParamConfigBuilder expected = mock ( org . codegist . crest . config . ParamConfigBuilder . class ) ; when ( paramConfigBuilderFactory . newInstance ( java . lang . String . class , org . codegist . crest . interceptor . Integ... | org . junit . Assert . assertSame ( expected , actual ) |
shouldValidateBillRegister ( ) { errors = billService . validateBillRegister ( billRegister ) ; "<AssertPlaceHolder>" ; } size ( ) { return messages . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , errors . size ( ) ) |
createWarMvcPortlet ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . module . tests . WAR_MVC_PORTLET ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningJobs ( ) ; viewAction . project . openUpdateMavenProjectDial... | org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( project . getName ( ) ) ) |
testIntersection ( ) { org . apache . druid . collections . bitmap . WrappedBitSetBitmap bitSet = new org . apache . druid . collections . bitmap . WrappedBitSetBitmap ( org . apache . druid . collections . IntSetTestUtility . createSimpleBitSet ( org . apache . druid . collections . IntSetTestUtility . getSetBits ( ) ... | org . junit . Assert . assertTrue ( org . apache . druid . collections . IntSetTestUtility . equalSets ( intersection , ( ( org . apache . druid . collections . bitmap . WrappedBitSetBitmap ) ( bitSet . intersection ( bitExtraSet ) ) ) ) ) |
testRequestMethodConverter ( ) { ch . qos . logback . access . pattern . RequestMethodConverter converter = new ch . qos . logback . access . pattern . RequestMethodConverter ( ) ; converter . start ( ) ; java . lang . String result = converter . convert ( event ) ; "<AssertPlaceHolder>" ; } getMethod ( ) { if ( ( meth... | org . junit . Assert . assertEquals ( request . getMethod ( ) , result ) |
testExists ( ) { lineData . put ( "key" , "test" ) ; "<AssertPlaceHolder>" ; } hasValue ( java . lang . String ) { return map . containsKey ( key ) ; } | org . junit . Assert . assertTrue ( lineData . hasValue ( "key" ) ) |
testLineNumberCorrectInException2 ( ) { java . lang . String script = "assign(@a,<sp>array(1,<sp>2))\n" + ( "\n" + "assign(@d,<sp>@a[@b])\n" ) ; try { SRun ( script , fakePlayer ) ; } catch ( com . laytonsmith . core . exceptions . ConfigRuntimeException e ) { "<AssertPlaceHolder>" ; } } getTarget ( ) { return com . la... | org . junit . Assert . assertEquals ( 3 , e . getTarget ( ) . line ( ) ) |
testDeleteAgentWithRights ( ) { net . maritimecloud . identityregistry . model . database . Agent agent = new net . maritimecloud . identityregistry . model . database . Agent ( ) ; agent . setIdOnBehalfOfOrganization ( 1L ) ; agent . setIdActingOrganization ( 2L ) ; net . maritimecloud . identityregistry . model . dat... | org . junit . Assert . assertTrue ( false ) |
positional_should_export_dot ( ) { java . io . File output = new java . io . File ( super . testFolder . getRoot ( ) , "chr12-244000.vcf" ) ; setReference ( au . edu . wehi . idsv . Hg19Tests . findHg19Reference ( "chr12.fa" ) ) ; createInput ( new java . io . File ( "src/test/resources/chr12-244000.tagged.bam" ) ) ; p... | org . junit . Assert . assertTrue ( ( ( export != null ) && ( ( export . length ) > 0 ) ) ) |
testCardinality2 ( ) { java . lang . String grammar = "grammar<sp>T;\n" + ( ( ( ( ( "options<sp>{output=AST;}\n" + "a" 1 ) + "a" 0 ) + "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" ) + "INT<sp>:<sp>\'0\'..\'9\'+;\n" ) + "WS<sp>:<sp>(\'<sp>\'|\'\\n\')<sp>{$channel=HIDDEN;}<sp>;\n" ) ; execParser ( "a" 2 , grammar , "TParser" , "TLe... | org . junit . Assert . assertEquals ( expecting , found ) |
testGroupingFunctionInExpression ( ) { java . lang . String sqlText = format ( ( "----------------------------\n" 2 + "group<sp>by<sp>rollup(a1,b1)<sp>order<sp>by<sp>1,2,4,5" ) , this . useSparkString ) ; java . sql . ResultSet rs = methodWatcher . executeQuery ( sqlText ) ; java . lang . String expected = "-----------... | org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
testAction ( ) { when ( canvasLayoutUtils . getNext ( eq ( canvasHandler ) , eq ( element ) , eq ( targetNode ) ) ) . thenReturn ( new org . kie . workbench . common . stunner . core . graph . content . view . Point2D ( 100.0 , 500.0 ) ) ; final org . kie . workbench . common . stunner . core . client . shape . view . ... | org . junit . Assert . assertEquals ( tested , cascade ) |
testEof ( ) { org . nucleus8583 . core . charset . spi . AsciiDecoder decoder = new org . nucleus8583 . core . charset . spi . AsciiDecoder ( new java . io . ByteArrayInputStream ( new byte [ 0 ] ) ) ; "<AssertPlaceHolder>" ; } read ( ) { if ( ( remaining ) <= 0 ) { return - 1 ; } char cc = value . charAt ( readIndex )... | org . junit . Assert . assertEquals ( ( - 1 ) , decoder . read ( ) ) |
quote_body_lf_allow ( ) { java . lang . String [ ] [ ] result = read ( "\'\n\'" ) ; "<AssertPlaceHolder>" ; } is ( java . lang . String ) { com . asakusafw . dmdl . java . util . JavaName jn = com . asakusafw . dmdl . java . util . JavaName . of ( new com . asakusafw . dmdl . model . AstSimpleName ( null , name ) ) ; j... | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( new java . lang . String [ ] [ ] { new java . lang . String [ ] { "\n" } } ) ) |
copyFromLocalWildcardNotDir ( ) { java . lang . String localTestDir = alluxio . client . cli . fs . FileSystemShellUtilsTest . resetFileHierarchy ( mFileSystem ) ; java . lang . String alluxioTestDir = alluxio . client . cli . fs . FileSystemShellUtilsTest . resetFileHierarchy ( mFileSystem ) ; int ret = mFsShell . run... | org . junit . Assert . assertEquals ( ( - 1 ) , ret ) |
testHashCode ( ) { org . jfree . data . function . LineFunction2D f1 = new org . jfree . data . function . LineFunction2D ( 1.0 , 2.0 ) ; org . jfree . data . function . LineFunction2D f2 = new org . jfree . data . function . LineFunction2D ( 1.0 , 2.0 ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { int result ; result = ... | org . junit . Assert . assertEquals ( f1 . hashCode ( ) , f2 . hashCode ( ) ) |
testDelimiter ( ) { io . cdap . cdap . format . DelimitedStringsRecordFormat format = new io . cdap . cdap . format . DelimitedStringsRecordFormat ( ) ; io . cdap . cdap . api . data . format . FormatSpecification spec = new io . cdap . cdap . api . data . format . FormatSpecification ( io . cdap . cdap . format . Deli... | org . junit . Assert . assertArrayEquals ( expected , actual ) |
test_tuscanyGetSetAttribute ( ) { try { org . apache . tuscany . sca . test . corba . types . TScenarioTwo ref = org . apache . tuscany . sca . test . corba . ScenarioTwoTestCase . node . getService ( org . apache . tuscany . sca . test . corba . types . TScenarioTwoComponent . class , "ScenarioTwo" ) . getScenarioTwo ... | org . junit . Assert . assertEquals ( strVal , ref . getStringField ( ) ) |
testFetchSuccessWithDifferentSyncIDMergesDeclined ( ) { session . config . syncID = "NOT<sp>TEST<sp>SYNC<sp>ID" ; session . config . declinedEngineNames = new java . util . HashSet < java . lang . String > ( ) ; session . config . declinedEngineNames . add ( "baznoo" ) ; org . mozilla . gecko . sync . MetaGlobal mg = n... | org . junit . Assert . assertEquals ( expected , newDeclined ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . EmailAddress newEmailAddress = addEmailAddress ( ) ; com . liferay . portal . kernel . model . EmailAddress existingEmailAddress = _persistence . findByPrimaryKey ( newEmailAddress . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKe... | org . junit . Assert . assertEquals ( existingEmailAddress , newEmailAddress ) |
addItem_freeformAddOneNewItem_shouldChangeSize ( ) { com . vaadin . v7 . data . util . sqlcontainer . SQLContainer container = new com . vaadin . v7 . data . util . sqlcontainer . SQLContainer ( new com . vaadin . v7 . data . util . sqlcontainer . query . FreeformQuery ( "SELECT<sp>*<sp>FROM<sp>people" , connectionPool... | org . junit . Assert . assertEquals ( ( size + 1 ) , container . size ( ) ) |
testEquals_before ( ) { final org . apache . rya . api . function . temporal . EqualsTemporalInstant function = new org . apache . rya . api . function . temporal . EqualsTemporalInstant ( ) ; final org . eclipse . rdf4j . model . Value [ ] args = new org . eclipse . rdf4j . model . Value [ 2 ] ; args [ 0 ] = org . apa... | org . junit . Assert . assertEquals ( org . apache . rya . api . function . temporal . EqualsTemporalFunctionsTest . VF . createLiteral ( false ) , rez ) |
testV6ToV7 ( ) { java . util . List < com . streamsets . pipeline . api . Config > configs = new java . util . ArrayList ( ) ; configs . add ( new com . streamsets . pipeline . api . Config ( "a" 2 , 1000 ) ) ; configs . add ( new com . streamsets . pipeline . api . Config ( "a" 0 , com . streamsets . pipeline . lib . ... | org . junit . Assert . assertTrue ( isPresent ) |
testCantReuseIfNotClosed ( ) { com . facebook . common . references . CloseableReference < com . facebook . imagepipeline . image . CloseableImage > ret = mAnimatedFrameCache . cache ( 1 , mFrame1 ) ; com . facebook . common . references . CloseableReference < com . facebook . imagepipeline . image . CloseableImage > f... | org . junit . Assert . assertNull ( free ) |
deveObterCodigoMunicipioComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . NFEndereco endereco = new com . fincatto . documentofiscal . nfe310 . classes . NFEndereco ( ) ; endereco . setCodigoMunicipio ( "9999999" ) ; "<AssertPlaceHolder>" ; } getCodigoMunicipio ( ) { return this . codigoMu... | org . junit . Assert . assertEquals ( "9999999" , endereco . getCodigoMunicipio ( ) ) |
testEnableSsl ( ) { lombok . val channelConfig = com . xjeffrose . xio . bootstrap . ChannelConfiguration . clientConfig ( 1 , "worker" ) ; lombok . val clientConfig = com . xjeffrose . xio . client . ClientConfig . from ( com . typesafe . config . ConfigFactory . load ( ) . getConfig ( "xio.sslClient" ) ) ; lombok . v... | org . junit . Assert . assertNotNull ( result ) |
testSetEndpoint ( ) { d_wizard . getIndicationModel ( ) . setValue ( org . drugis . addis . ExampleData . buildIndicationDepression ( ) ) ; org . drugis . addis . entities . OutcomeMeasure newValue = org . drugis . addis . ExampleData . buildEndpointHamd ( ) ; com . jgoodies . binding . value . ValueModel vm = d_wizard... | org . junit . Assert . assertEquals ( newValue , d_wizard . getOutcomeMeasureModel ( ) . getValue ( ) ) |
test2 ( ) { udt . UDTInputStream is = new udt . UDTInputStream ( null ) ; byte [ ] data1 = getRandomData ( 65537 ) ; byte [ ] data2 = getRandomData ( 1234 ) ; byte [ ] data3 = getRandomData ( ( ( 3 * 1024 ) * 1024 ) ) ; java . lang . String digest = computeMD5 ( data1 , data2 , data3 ) ; is . setBlocking ( false ) ; is... | org . junit . Assert . assertEquals ( digest , readMD5 ) |
isTopPriorityTest1 ( ) { boolean b = VariantType . MISSENSE . isTopPriorityVariant ( ) ; "<AssertPlaceHolder>" ; } isTopPriorityVariant ( ) { return ( jannovar . common . VariantType . priorityLevel ( this ) ) == 1 ; } | org . junit . Assert . assertEquals ( true , b ) |
testTypeClass3 ( ) { com . baidu . bjf . remoting . protobuf . Codec < com . baidu . bjf . remoting . protobuf . bytestest . ByteTypeClass3 > codec = com . baidu . bjf . remoting . protobuf . ProtobufProxy . create ( com . baidu . bjf . remoting . protobuf . bytestest . ByteTypeClass3 . class ) ; com . baidu . bjf . re... | org . junit . Assert . assertArrayEquals ( o . getBytes ( ) , class1 . getBytes ( ) ) |
shouldSucceed ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( true ) |
testTaskCreation ( ) { int taskId = this . dao . createTask ( "annotator1" , "dataset1" , "type1" , "matching1" , "id-23456" ) ; "<AssertPlaceHolder>" ; } createTask ( java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String ) { org . springframework . jdbc . core... | org . junit . Assert . assertTrue ( ( taskId > 0 ) ) |
testAProcessingFunctionWrongArgumentNumber ( ) { try { new org . aksw . limes . core . io . preprocessing . functions . ToUppercase ( ) . applyFunction ( testInstance , org . aksw . limes . core . io . preprocessing . PreprocessingFunctionsTest . PROP_LABEL , "bla" ) ; "<AssertPlaceHolder>" ; } catch ( org . aksw . lim... | org . junit . Assert . assertFalse ( true ) |
decode ( ) { java . lang . String encodedSessionId = "session.route" ; java . lang . String sessionId = "session" ; java . lang . String route = "route" ; when ( this . routing . parse ( encodedSessionId ) ) . thenReturn ( new java . util . AbstractMap . SimpleImmutableEntry ( sessionId , route ) ) ; java . lang . Char... | org . junit . Assert . assertSame ( sessionId , result ) |
testAvgWithRangeLargerThanTable ( ) { int TIME_BASELINE = ( ( int ) ( ( new java . util . GregorianCalendar ( 2014 , 10 , 9 , 23 , 0 , 0 ) . getTime ( ) . getTime ( ) ) / 1000 ) ) ; int TIME_LIMIT = ( ( int ) ( ( new java . util . GregorianCalendar ( 2014 , 10 , 15 , 0 , 0 , 0 ) . getTime ( ) . getTime ( ) ) / 1000 ) )... | org . junit . Assert . assertEquals ( results , avgs ) |
testStrings ( ) { tokenizer . tokenize ( toSourceCode ( "String<sp>s<sp>=\"aaa<sp>\\\"b\\n\";" ) , tokens ) ; "<AssertPlaceHolder>" ; } size ( ) { return rules . size ( ) ; } | org . junit . Assert . assertEquals ( 5 , tokens . size ( ) ) |
timesTest ( ) { ch . bfh . unicrypt . math . algebra . additive . classes . ECPolynomialField ec = ch . bfh . unicrypt . math . algebra . additive . classes . ECPolynomialField . getInstance ( ECPolynomialFieldParameters . SECT113r1 ) ; ch . bfh . unicrypt . math . algebra . dualistic . classes . PolynomialField field ... | org . junit . Assert . assertEquals ( result , e1 . add ( e1 ) ) |
testMatchPerfect ( ) { org . eclipse . pde . ui . tests . project . IPluginModelBase model = org . eclipse . pde . ui . tests . project . PluginRegistry . findModel ( "org.eclipse.jdt.debug" , "3.0.0" , IMatchRules . PERFECT , null ) ; "<AssertPlaceHolder>" ; } findModel ( java . lang . String , java . lang . String , ... | org . junit . Assert . assertNull ( model ) |
consoleHandlerFlushesSevere ( ) { com . facebook . buck . log . ConsoleHandler handler = new com . facebook . buck . log . ConsoleHandler ( com . facebook . buck . log . ConsoleHandler . utf8OutputStreamWriter ( outputStream ) , new com . facebook . buck . log . ConsoleHandlerTest . MessageOnlyFormatter ( ) , java . ut... | org . junit . Assert . assertThat ( outputStream . getLastFlushSize ( ) , org . hamcrest . Matchers . equalTo ( 6 ) ) |
testFindByLastname ( ) { java . lang . String hql = "from<sp>Person<sp>p<sp>where<sp>p.lastname<sp>=<sp>:lastname" ; java . lang . String lastname = "Smith" ; java . util . List < com . tddinaction . data . person . Person > theSmiths = new java . util . ArrayList < com . tddinaction . data . person . Person > ( ) ; th... | org . junit . Assert . assertEquals ( theSmiths , dao . findByLastname ( lastname ) ) |
testSetWriter ( ) { java . io . File aux = new java . io . File ( "src/test/resources/xml" ) ; aux . mkdirs ( ) ; java . io . File xml = new java . io . File ( aux , "walkmod.xml" ) ; org . walkmod . conf . providers . XMLConfigurationProvider prov = new org . walkmod . conf . providers . XMLConfigurationProvider ( xml... | org . junit . Assert . assertTrue ( output . contains ( "javalang:string-writer" ) ) |
should_returnOneNodeGenerationUnit ( ) { ch . puzzle . itc . mobiliar . business . generator . control . extracted . templates . GenerationSubPackage subPackage1 = new ch . puzzle . itc . mobiliar . business . generator . control . extracted . templates . GenerationSubPackage ( ) ; subPackage1 . addGenerationUnit ( new... | org . junit . Assert . assertEquals ( 1 , nodeUnits . size ( ) ) |
testhandleBeginContact3 ( ) { expect ( contact . getFixtureA ( ) ) . andReturn ( fixMock ) . anyTimes ( ) ; replay ( contact ) ; com . rubentxu . juegos . core . managers . HeroManagerTest . r . getGrounContacts ( ) . clear ( ) ; com . rubentxu . juegos . core . managers . HeroManagerTest . heroManager . handleBeginCon... | org . junit . Assert . assertTrue ( com . rubentxu . juegos . core . managers . HeroManagerTest . r . getGrounContacts ( ) . isEmpty ( ) ) |
testRadix10Neg ( ) { java . lang . String value = "-2489756308572364789878394872984" ; int radix = 16 ; java . math . BigInteger aNumber = new java . math . BigInteger ( value , radix ) ; java . lang . String result = aNumber . toString ( radix ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( ob... | org . junit . Assert . assertTrue ( result . equals ( value ) ) |
test ( ) { org . apache . shiro . web . filter . authc . AnonymousFilter filter = new org . apache . shiro . web . filter . authc . AnonymousFilter ( ) ; boolean allow = filter . onPreHandle ( null , null , null ) ; "<AssertPlaceHolder>" ; } onPreHandle ( javax . servlet . ServletRequest , javax . servlet . ServletResp... | org . junit . Assert . assertTrue ( allow ) |
testUpRequestCreationWithNullTransports ( ) { org . kaaproject . kaa . client . persistence . KaaClientState state = org . mockito . Mockito . mock ( org . kaaproject . kaa . client . persistence . KaaClientState . class ) ; org . kaaproject . kaa . client . channel . impl . DefaultOperationDataProcessor operationsData... | org . junit . Assert . assertNotNull ( operationsDataProcessor . compileRequest ( transportTypes ) ) |
testGreenOverHorizontal ( ) { expected = loadCompatibleImage ( org . jdesktop . swingx . graphics . BlendCompositeTest . class . getResourceAsStream ( "green-over-horizontal.gif" ) ) ; java . awt . image . BufferedImage green = org . jdesktop . swingx . util . GraphicsUtilities . createCompatibleImage ( org . jdesktop ... | org . junit . Assert . assertArrayEquals ( getPixels ( expected , 0 , 0 , expected . getWidth ( ) , expected . getHeight ( ) , null ) , getPixels ( actual , 0 , 0 , actual . getWidth ( ) , actual . getHeight ( ) , null ) ) |
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . ccd . operations . AdvanceDirectiveStatusObservationOperations obj = new org . openhealthtools . mdht . uml . cda . ccd . operations . AdvanceDirectiveStatusObservationOperations ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( true ) |
testGenerateLocalizedXLIFFWithDifferentOutputTag ( ) { createTestData ( ) ; com . box . l10n . mojito . service . tm . TMTextUnit tmTextUnit1 = tmService . addTMTextUnit ( tmId , assetId , "Application<sp>Name" 0 , "Application<sp>Name" , "This<sp>text<sp>is<sp>shown<sp>in<sp>the<sp>start<sp>screen<sp>of<sp>the<sp>appl... | org . junit . Assert . assertEquals ( removeLeadingAndTrailingSpacesOnEveryLine ( expectedLocalizedXLIFF ) , removeLeadingAndTrailingSpacesOnEveryLine ( localizedAsset ) ) |
shouldPersistAndRetrieveMetadataLeader ( ) { org . neo4j . graphdb . GraphDatabaseService mainDatabase = getLeaderDatabase ( ) ; repository = new com . graphaware . runtime . metadata . GraphPropertiesMetadataRepository ( mainDatabase , com . graphaware . runtime . config . FluentRuntimeConfiguration . defaultConfigura... | org . junit . Assert . assertEquals ( metadata , repository . getModuleMetadata ( "TEST-LEADER" ) ) |
testSqlQueryGetSingleResult ( ) { org . dayatang . querychannel . domain . MyEntity result = instance . createSqlQuery ( "select<sp>*<sp>from<sp>pay_test_myentity<sp>o<sp>where<sp>o.id<sp>=<sp>1" ) . setResultEntityClass ( org . dayatang . querychannel . domain . MyEntity . class ) . singleResult ( ) ; "<AssertPlaceHol... | org . junit . Assert . assertEquals ( org . dayatang . querychannel . domain . MyEntity . get ( 1L ) , result ) |
testDataStoreListener ( ) { final org . opendaylight . yangtools . yang . binding . InstanceIdentifier < org . opendaylight . yangtools . yang . binding . DataObject > instanceIdentifier = org . opendaylight . yangtools . yang . binding . InstanceIdentifier . create ( org . opendaylight . yangtools . yang . binding . D... | org . junit . Assert . assertEquals ( testId , argumentId . getValue ( ) ) |
testParseNoWikiBlockMultiple ( ) { com . liferay . wiki . engine . creole . internal . parser . ast . WikiPageNode wikiPageNode = getWikiPageNode ( "nowikiblock-2.creole" ) ; "<AssertPlaceHolder>" ; } getChildASTNodesCount ( ) { return _collectionNode . size ( ) ; } | org . junit . Assert . assertEquals ( 3 , wikiPageNode . getChildASTNodesCount ( ) ) |
testJSDocParsingWithoutMainDescription ( ) { java . lang . String in = "/**<sp>\n<sp>*<sp>@stubLineTagTitle<sp>\n<sp>*/" ; eu . numberfour . n4js . jsdoc . tags . AbstractLineTagDefinition tag = new eu . numberfour . n4js . jsdoc . DocletParserTest . StubLineTagDefinition ( "stubLineTagTitle" ) ; eu . numberfour . n4js... | org . junit . Assert . assertEquals ( "stubLineTagTitle" , lineTag . getTitle ( ) . getTitle ( ) ) |
upgradeEducationsToVrc2Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_rc1 . Educations . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jax... | org . junit . Assert . assertEquals ( rc2Educations1 . getLastModifiedDate ( ) , rc2Educations2 . getLastModifiedDate ( ) ) |
testGetInputType ( ) { final org . kie . workbench . common . dmn . client . editors . types . listview . constraint . common . typed . common . BaseSelector . InputType expected = org . kie . workbench . common . dmn . client . editors . types . listview . constraint . common . typed . common . BaseSelector . InputTyp... | org . junit . Assert . assertEquals ( expected , actual ) |
testNewInstanceOrReturnNullString ( ) { "<AssertPlaceHolder>" ; } newInstanceOrReturnNull ( java . lang . String , java . lang . Class ) { try { java . lang . Class < ? > clazz = java . lang . Class . forName ( theClassName ) ; if ( ! ( theType . isAssignableFrom ( clazz ) ) ) { throw new ca . uhn . fhir . context . Co... | org . junit . Assert . assertEquals ( java . util . ArrayList . class , ca . uhn . fhir . util . ReflectionUtil . newInstanceOrReturnNull ( java . util . ArrayList . class . getName ( ) , java . util . List . class ) . getClass ( ) ) |
shouldConvert ( ) { br . com . uol . pagseguro . api . utils . RequestMap expectedMap = new br . com . uol . pagseguro . api . utils . RequestMap ( ) ; expectedMap . putMap ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "extraAmount" , "10.00" ) ; put ( "payment.mode" , "payme... | org . junit . Assert . assertEquals ( expectedMap , map ) |
resolveDecimalNode ( ) { java . lang . String name = "decimal" ; java . math . BigDecimal result = java . math . BigDecimal . TEN ; com . fasterxml . jackson . databind . JsonNode node = createMock ( com . fasterxml . jackson . databind . JsonNode . class ) ; com . fasterxml . jackson . databind . JsonNode value = com ... | org . junit . Assert . assertEquals ( result , JsonNodeValueResolver . INSTANCE . resolve ( node , name ) ) |
runTest ( ) { process . passQtiVariableToMaxima ( "x" , valueWrapper ) ; final uk . ac . ed . ph . qtiworks . mathassess . glue . types . ValueWrapper result = process . queryMaximaVariable ( "x" , valueWrapper . getClass ( ) ) ; if ( ! ( result . equals ( valueWrapper ) ) ) { uk . ac . ed . ph . qtiworks . mathassess ... | org . junit . Assert . assertEquals ( valueWrapper , result ) |
testConvertReplyToManyDocs ( ) { final com . allanbank . mongodb . bson . builder . DocumentBuilder db = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . addInteger ( "ok" , 1 ) ; db . push ( "n" ) ; final java . util . List < com . allanbank . mongodb . bson . Document > docs = java . util . A... | org . junit . Assert . assertNull ( callback . convert ( reply ) ) |
testGetAllChemModels_IChemFile ( ) { java . util . List < org . openscience . cdk . interfaces . IChemModel > list = org . openscience . cdk . tools . manipulator . ChemFileManipulator . getAllChemModels ( chemFile ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , list . size ( ) ) |
testListAllBases ( ) { java . util . List < com . mylab . cromero . repository . dto . BaseResponse > listaBases = new java . util . ArrayList < com . mylab . cromero . repository . dto . BaseResponse > ( ) ; when ( this . baseService . findAllBases ( ) ) . thenReturn ( listaBases ) ; java . util . List < com . mylab .... | org . junit . Assert . assertTrue ( ( ( listAllBase . size ( ) ) == 0 ) ) |
testAutomappedEquals ( ) { boolean b = org . davidmoten . rx . jdbc . Database . test ( ) . select ( "select<sp>name,<sp>score<sp>from<sp>person<sp>where<sp>name=?" ) . parameterStream ( io . reactivex . Flowable . just ( "FRED" ) ) . autoMap ( org . davidmoten . rx . jdbc . DatabaseTest . Person2 . class ) . map ( ( x... | org . junit . Assert . assertTrue ( b ) |
testGuestSpanishSessionWithSpanishCookieAlgorithm3 ( ) { java . lang . String prependI18nLanguageId = getPrependI18nLanguageId ( 3 , null , LocaleUtil . SPAIN , LocaleUtil . SPAIN ) ; "<AssertPlaceHolder>" ; } toLanguageId ( java . util . Locale ) { return com . liferay . portal . kernel . util . LocaleUtil . getInstan... | org . junit . Assert . assertEquals ( com . liferay . portal . kernel . util . LocaleUtil . toLanguageId ( LocaleUtil . SPAIN ) , prependI18nLanguageId ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.