input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testIpv6RouterIds ( ) { java . util . List list = new java . util . ArrayList ( ) ; list . add ( org . onlab . packet . Ip6Address . valueOf ( 1 ) ) ; ospfDeviceTed . setIpv6RouterIds ( list ) ; "<AssertPlaceHolder>" ; } ipv6RouterIds ( ) { return ipv6RouterIds ; } | org . junit . Assert . assertThat ( ospfDeviceTed . ipv6RouterIds ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) ) |
testGetDistinctKeys_BetweenInclusiveAscending ( ) { com . googlecode . cqengine . index . sqlite . ConnectionManager connectionManager = temporaryInMemoryDatabase . getConnectionManager ( true ) ; com . googlecode . cqengine . index . sqlite . SQLiteIndex < java . lang . String , com . googlecode . cqengine . testutil ... | org . junit . Assert . assertEquals ( expected , actual ) |
nil ( ) { org . jboss . hal . meta . AddressTemplate result = processor . apply ( null ) ; "<AssertPlaceHolder>" ; } apply ( org . jboss . hal . meta . AddressTemplate ) { org . jboss . hal . meta . AddressTemplate modified = org . jboss . hal . meta . AddressTemplate . ROOT ; if ( ( template != null ) && ( ! ( Address... | org . junit . Assert . assertEquals ( AddressTemplate . ROOT , result ) |
shouldRejectOperationChainWhenUserDoesntHaveAnyOpAuths ( ) { final uk . gov . gchq . gaffer . graph . hook . OperationAuthoriser hook = fromJson ( uk . gov . gchq . gaffer . graph . hook . OperationAuthoriserTest . OP_AUTHS_PATH ) ; final uk . gov . gchq . gaffer . operation . OperationChain opChain = new uk . gov . gc... | org . junit . Assert . assertNotNull ( e . getMessage ( ) ) |
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . Website newWebsite = addWebsite ( ) ; com . liferay . portal . kernel . model . Website existingWebsite = _persistence . fetchByPrimaryKey ( newWebsite . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEntry... | org . junit . Assert . assertEquals ( existingWebsite , newWebsite ) |
shouldFindNoMutationsWhenNoMutationOperatorsSupplied ( ) { class VeryMutable { @ org . pitest . mutationtest . engine . gregor . SuppressWarnings ( "unused" ) public int f ( final int i ) { switch ( i ) { case 0 : return 1 ; } return 0 ; } } createTesteeWith ( ) ; final java . util . List < org . pitest . mutationtest ... | org . junit . Assert . assertTrue ( actualDetails . isEmpty ( ) ) |
testPathEncoding ( ) { final java . net . URI uri1 = new java . net . URI ( "https://somehost.com/some%20path%20with%20blanks/" ) ; final java . net . URI uri2 = new org . apache . hc . core5 . net . URIBuilder ( ) . setScheme ( "https" ) . setHost ( "somehost.com" ) . setPath ( "/some<sp>path<sp>with<sp>blanks/" ) . b... | org . junit . Assert . assertEquals ( uri1 , uri2 ) |
testEliminaAlumnoDescuento ( ) { log . debug ( "Test<sp>'elimina'<sp>descuento<sp>de<sp>Alumno" ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . general . model . Organizacion organizacion = usuario . getEmpresa ( ) . getOrganizacion ( ) ; mx . edu . um . mate... | org . junit . Assert . assertNotNull ( alumnoDescuento . getId ( ) ) |
shouldSetValidGroups ( ) { victim . setGroups ( Collections . EMPTY_LIST ) ; "<AssertPlaceHolder>" ; } getGroups ( ) { return java . util . Collections . unmodifiableSet ( groups ) ; } | org . junit . Assert . assertEquals ( 0 , victim . getGroups ( ) . size ( ) ) |
listTest ( ) { org . easycassandra . bean . model . Person person = getPerson ( ) ; person . setId ( 1L ) ; dao . insert ( person ) ; dao . listAll ( new org . easycassandra . persistence . cassandra . ResultAsyncCallBack < java . util . List < org . easycassandra . bean . model . Person > > ( ) { @ org . easycassandra... | org . junit . Assert . assertTrue ( ( ( beans . size ( ) ) > 0 ) ) |
testWrite ( ) { final ch . cyberduck . core . Path container = new ch . cyberduck . core . Path ( "test-us-east-1-cyberduck" , java . util . EnumSet . of ( Path . Type . directory , Path . Type . volume ) ) ; final ch . cyberduck . core . Path test = new ch . cyberduck . core . Path ( container , java . util . UUID . r... | org . junit . Assert . assertEquals ( acl , f . getPermission ( test ) ) |
testViewDropWithAutoCommit ( ) { java . sql . Connection connection1 = methodWatcher . createConnection ( ) ; connection1 . setAutoCommit ( false ) ; connection1 . createStatement ( ) . execute ( java . lang . String . format ( "create<sp>view<sp>%s.%s<sp>(id,<sp>lname,<sp>fname,<sp>dob,<sp>ssn)<sp>as<sp>select<sp>n.id... | org . junit . Assert . assertTrue ( rs . next ( ) ) |
testSetLocalPhoneAutocompleteWithType ( ) { com . github . bordertech . wcomponents . WDropdown field = new com . github . bordertech . wcomponents . WDropdown ( ) ; java . lang . String expected ; for ( com . github . bordertech . wcomponents . autocomplete . segment . PhoneFormat phoneType : com . github . bordertech... | org . junit . Assert . assertEquals ( expected , field . getAutocomplete ( ) ) |
testHasChangeNotifier ( ) { com . eclipsesource . tabris . ui . AbstractActionTest . TestAbstractAction action = new com . eclipsesource . tabris . ui . AbstractActionTest . TestAbstractAction ( ) ; com . eclipsesource . tabris . internal . ui . PropertyChangeNotifier changeNotifier = action . getAdapter ( com . eclips... | org . junit . Assert . assertNotNull ( changeNotifier ) |
deepstubsTest ( ) { com . rhwayfun . springboot . quickstart . mockito . stubbing . StubbingTest . Account account = mock ( com . rhwayfun . springboot . quickstart . mockito . stubbing . StubbingTest . Account . class , com . rhwayfun . springboot . quickstart . mockito . stubbing . RETURNS_DEEP_STUBS ) ; when ( accou... | org . junit . Assert . assertEquals ( "Beijing" , account . getRailwayTicket ( ) . getDestination ( ) ) |
testFrame0005 ( ) { final java . lang . Object frame = com . github . jsonldjava . utils . JsonUtils . fromInputStream ( getClass ( ) . getResourceAsStream ( "/custom/frame-0005-frame.jsonld" ) ) ; final java . lang . Object in = com . github . jsonldjava . utils . JsonUtils . fromInputStream ( getClass ( ) . getResour... | org . junit . Assert . assertEquals ( out , frame2 ) |
TestSeparatorEmittedForEmptyIteratorValue ( ) { org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( "<values:{v|<if(v)>x<endif>};<sp>separator=\"<sp>\">" ) ; st . add ( "values" , new boolean [ ] { true , false , true } ) ; java . io . StringWriter sw = new java . io . StringWriter ( ) ; st . write... | org . junit . Assert . assertEquals ( expecting , result ) |
testLambdaCast ( ) { java . io . File f = new java . io . File ( "src/test/resources/lambdacast-error.txt" ) ; org . walkmod . javalang . ast . CompilationUnit cu = org . walkmod . javalang . ASTManager . parse ( f ) ; "<AssertPlaceHolder>" ; System . out . println ( cu . toString ( ) ) ; } parse ( java . io . File ) {... | org . junit . Assert . assertNotNull ( cu ) |
deveObterDeclaracoesImportacaoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . util . List < com . fincatto . documentofiscal . nfe400 . classes... | org . junit . Assert . assertEquals ( declaracoesImportacao , produto . getDeclaracoesImportacao ( ) ) |
testGetPreviousVisibleColumn_PreviousVisible ( ) { org . eclipse . nebula . widgets . grid . GridColumn [ ] columns = org . eclipse . nebula . widgets . grid . GridTestUtil . createGridColumns ( grid , 5 , SWT . NONE ) ; "<AssertPlaceHolder>" ; } getPreviousVisibleColumn ( org . eclipse . nebula . widgets . grid . Grid... | org . junit . Assert . assertSame ( columns [ 1 ] , grid . getPreviousVisibleColumn ( columns [ 2 ] ) ) |
testRandomFromList ( ) { try { randomFrom ( java . util . Collections . emptyList ( ) ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { } java . util . List < java . lang . Integer > ints = new java . util . ArrayList < java . lang . Integer > ( ) ; for ( int i = 0 ; i < 10 ; ... | org . junit . Assert . assertTrue ( ( ( ints . get ( i ) ) == null ) ) |
testGetNoteFromXMLCommentsInSkeletonComment ( ) { java . lang . String skeleton = "blalbala<sp><!--<sp>a<sp>comment<sp>--><sp>blalba" ; com . box . l10n . mojito . okapi . filters . AndroidFilter instance = new com . box . l10n . mojito . okapi . filters . AndroidFilter ( ) ; java . lang . String expResult = "a<sp>comm... | org . junit . Assert . assertEquals ( expResult , result ) |
getValue_WrongString_ExceptionIsThrown ( ) { com . hevelian . olastic . core . api . uri . queryoption . expression . member . impl . LiteralMember member = new com . hevelian . olastic . core . api . uri . queryoption . expression . member . impl . LiteralMember ( "value" , edmString ) ; "<AssertPlaceHolder>" ; } getV... | org . junit . Assert . assertEquals ( member . getValue ( ) , "value" ) |
testHashCode ( ) { final com . github . kristofa . test . http . DefaultContentMatcher defaultContentProxy = new com . github . kristofa . test . http . DefaultContentMatcher ( string . getBytes ( ) ) ; final com . github . kristofa . test . http . DefaultContentMatcher defaultContentProxy2 = new com . github . kristof... | org . junit . Assert . assertEquals ( defaultContentProxy . hashCode ( ) , defaultContentProxy2 . hashCode ( ) ) |
testRequestWithNullQueueQuery ( ) { org . apache . hadoop . yarn . server . resourcemanager . ResourceManager rm = mock ( org . apache . hadoop . yarn . server . resourcemanager . ResourceManager . class ) ; org . apache . hadoop . yarn . api . protocolrecords . GetApplicationsRequest request = org . apache . hadoop . ... | org . junit . Assert . assertEquals ( expectedRequest , request ) |
testScheme ( ) { new mockit . Expectations ( ) { { vertxRequest . scheme ( ) ; result = "abc" ; } } ; "<AssertPlaceHolder>" ; } getScheme ( ) { return this . vertxRequest . scheme ( ) ; } | org . junit . Assert . assertEquals ( "abc" , request . getScheme ( ) ) |
shouldGetTwoUsersPassingAList ( ) { org . apache . ibatis . session . SqlSession sqlSession = org . apache . ibatis . submitted . collectionparameters . CollectionParametersTest . sqlSessionFactory . openSession ( ) ; try { org . apache . ibatis . submitted . collectionparameters . Mapper mapper = sqlSession . getMappe... | org . junit . Assert . assertEquals ( 2 , users . size ( ) ) |
testCleanPasswordFromEncodedRequestString ( ) { final java . lang . String input = "name=SS1&provider=SMB&zoneid=5a60af2b-3025-4f2a-9ecc-8e33bf2b94e3&url=cifs%3A%2F%2F10.102.192.150%2FSMB-Share%2Fsowmya%2Fsecondary%3Fuser%3Dsowmya%26password%3DXXXXX%40123%26domain%3DBLR" ; final java . lang . String expected = "name=SS... | org . junit . Assert . assertEquals ( result , expected ) |
testOuterProductUpdate_5args ( ) { System . out . println ( "OuterProductUpdate" ) ; jsat . linear . Matrix A = jsat . linear . Matrix . eye ( 4 ) ; jsat . linear . Vec x = new jsat . linear . DenseVector ( new double [ ] { 1 , 2 , 3 , 4 } ) ; jsat . linear . Vec y = new jsat . linear . DenseVector ( new double [ ] { 5... | org . junit . Assert . assertEquals ( expected [ i ] [ j ] , A . get ( i , j ) , 0.0 ) |
testSendEventPushPush ( ) { org . jacorb . test . notification . AnyPushReceiver _receiver = new org . jacorb . test . notification . AnyPushReceiver ( setup . getClientOrb ( ) ) ; _receiver . connect ( channel_ , false ) ; java . lang . Thread _receiverThread = new java . lang . Thread ( _receiver ) ; org . jacorb . t... | org . junit . Assert . assertTrue ( _receiver . isEventHandled ( ) ) |
registerOrganization_NoLdapUsed ( ) { runTX ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . oscm . accountservice . bean . Override public org . oscm . accountservice . bean . Void call ( ) throws org . oscm . accountservice . bean . Exception { asl . registerOrganization ( orgToRegister ... | org . junit . Assert . assertFalse ( org . isRemoteLdapActive ( ) ) |
testlistByRunExists ( ) { "<AssertPlaceHolder>" ; } listByRun ( long ) { org . hibernate . Criteria idCriteria = currentSession ( ) . createCriteria ( uk . ac . bbsrc . tgac . miso . core . data . Experiment . class ) ; idCriteria . createCriteria ( "runPartitions" ) . createAlias ( "run" , "run" ) . add ( org . hibern... | org . junit . Assert . assertEquals ( 2 , dao . listByRun ( 1 ) . size ( ) ) |
shouldHaveAssignedTaskIfStandbyTaskAssigned ( ) { final org . apache . kafka . streams . processor . TaskId tid = new org . apache . kafka . streams . processor . TaskId ( 0 , 2 ) ; client . assign ( tid , false ) ; "<AssertPlaceHolder>" ; } hasAssignedTask ( org . apache . kafka . streams . processor . TaskId ) { retu... | org . junit . Assert . assertTrue ( client . hasAssignedTask ( tid ) ) |
testCompliesWithQuery ( ) { com . eclipsesource . tabris . passepartout . internal . QueryVerifier verifier = new com . eclipsesource . tabris . passepartout . internal . QueryVerifier ( createEnvironment ( ) ) ; com . eclipsesource . tabris . passepartout . internal . QueryImpl query = new com . eclipsesource . tabris... | org . junit . Assert . assertTrue ( complies ) |
testSerialize ( ) { net . floodlightcontroller . packet . Ethernet ethernet = new net . floodlightcontroller . packet . Ethernet ( ) . setDestinationMACAddress ( "de:ad:be:ef:de:ad" ) . setSourceMACAddress ( "be:ef:de:ad:be:ef" ) . setEtherType ( org . projectfloodlight . openflow . types . EthType . of ( 0 ) ) ; byte ... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expected , ethernet . serialize ( ) ) ) |
testUnsupportedTimeoutException ( ) { final com . github . vbauer . caesar . exception . UnsupportedTimeoutException ex = new com . github . vbauer . caesar . exception . UnsupportedTimeoutException ( null ) ; "<AssertPlaceHolder>" ; checkCommon ( ex , com . github . vbauer . caesar . exception . AbstractCaesarExceptio... | org . junit . Assert . assertNull ( ex . getExecutor ( ) ) |
testStaticGetScopeWithNull ( ) { "<AssertPlaceHolder>" ; } getScope ( org . springframework . data . gemfire . ScopeType ) { return scopeType != null ? scopeType . getScope ( ) : null ; } | org . junit . Assert . assertNull ( org . springframework . data . gemfire . ScopeType . getScope ( null ) ) |
testIsEmptyAfterClear ( ) { com . sun . sgs . test . app . util . TestScalableDeque . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { com . sun . sgs . app . util . ScalableDeque < java . lang . In... | org . junit . Assert . assertTrue ( d . isEmpty ( ) ) |
isNotEqualToTestClassThatWrapsADifferentJavaClass ( ) { org . junit . runners . model . TestClass testClass = new org . junit . runners . model . TestClass ( org . junit . runners . model . TestClassTest . DummyClass . class ) ; org . junit . runners . model . TestClass testClassThatWrapsADifferentJavaClass = new org .... | org . junit . Assert . assertFalse ( testClass . equals ( testClassThatWrapsADifferentJavaClass ) ) |
testApply ( ) { org . multibit . mbm . client . domain . model . accounting . rules . Account < org . multibit . mbm . client . domain . model . accounting . rules . DefaultEntry > sourceAccount = new org . multibit . mbm . client . domain . model . accounting . rules . Account < org . multibit . mbm . client . domain ... | org . junit . Assert . assertThat ( memoAccount . getBalance ( ) , org . hamcrest . CoreMatchers . equalTo ( 10L ) ) |
testDeleteHistoricBatch ( ) { identityService . setAuthentication ( "user" , null , java . util . Collections . singletonList ( org . camunda . bpm . engine . test . api . multitenancy . query . history . MultiTenancyHistoricBatchQueryTest . TENANT_ONE ) ) ; historyService . deleteHistoricBatch ( tenant1Batch . getId (... | org . junit . Assert . assertEquals ( 2 , historyService . createHistoricBatchQuery ( ) . count ( ) ) |
testSimpleRouteMap ( ) { xapi . server . api . RouteMap map = xapi . model . X_Model . create ( xapi . server . api . RouteMap . class ) ; final xapi . server . api . Route route = xapi . model . X_Model . create ( xapi . server . api . Route . class ) ; route . setPath ( "hello/world" ) ; map . addRoute ( route ) ; fi... | org . junit . Assert . assertEquals ( "" , route , actual ) |
testGetUniqueIdByMemberPatternWhenPatternIsEmpty ( ) { final com . google . inject . Provider < org . apache . ambari . server . ldap . domain . AmbariLdapConfiguration > configurationProvider = createNiceMock ( com . google . inject . Provider . class ) ; org . apache . ambari . server . ldap . domain . AmbariLdapConf... | org . junit . Assert . assertEquals ( memberAttribute , result ) |
ensureCertificateDeletion ( ) { this . createUeberCert ( owner ) ; this . ueberCertificateCurator . deleteForOwner ( owner ) ; "<AssertPlaceHolder>" ; } findForOwner ( org . candlepin . model . Owner ) { java . lang . String findByOwner = "select<sp>uc<sp>from<sp>UeberCertificate<sp>uc<sp>where<sp>uc.owner<sp>=<sp>:own... | org . junit . Assert . assertNull ( this . ueberCertificateCurator . findForOwner ( owner ) ) |
copyRBForNull ( ) { org . slim3 . tester . MockServletContext servletContext = new org . slim3 . tester . MockServletContext ( ) ; org . slim3 . tester . MockHttpServletRequest src = new org . slim3 . tester . MockHttpServletRequest ( servletContext ) ; org . slim3 . util . BeanUtilTest . DestRB dest = new org . slim3 ... | org . junit . Assert . assertThat ( dest . aaa , org . hamcrest . CoreMatchers . is ( "111" ) ) |
testFromArray ( ) { boolean [ ] array = new boolean [ ] { true , false , true , false , false , false , true } ; java . util . BitSet bitSet = dk . alexandra . fresco . framework . util . BitSetUtils . fromArray ( array ) ; for ( int i = 0 ; i < ( array . length ) ; i ++ ) { "<AssertPlaceHolder>" ; } } get ( int ) { re... | org . junit . Assert . assertEquals ( array [ i ] , bitSet . get ( i ) ) |
interceptorTestWithStereotypeParentOk ( ) { org . apache . deltaspike . test . security . impl . authorization . secured . SecuredBean2 testBean = org . apache . deltaspike . core . api . provider . BeanProvider . getContextualReference ( org . apache . deltaspike . test . security . impl . authorization . secured . Se... | org . junit . Assert . assertEquals ( "allfine" , testBean . someFineMethodFromParent ( ) ) |
testToString ( ) { super . testToString ( ) ; java . lang . StringBuilder expectedString = new java . lang . StringBuilder ( "[" ) ; int size = this . classUnderTest ( ) . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { expectedString . append ( ( ( i & 1 ) == 0 ) ) ; expectedString . append ( ( i == ( size - 1 ) ? ""... | org . junit . Assert . assertEquals ( expectedString . toString ( ) , this . classUnderTest ( ) . toString ( ) ) |
listTest2 ( ) { long agTest1 = agTest . listTest2 ( 2 ) ; "<AssertPlaceHolder>" ; } listTest2 ( java . lang . Long ) { return value ; } | org . junit . Assert . assertTrue ( ( agTest1 == 4 ) ) |
testManyScans ( ) { try ( org . apache . accumulo . core . client . AccumuloClient client = org . apache . accumulo . core . client . Accumulo . newClient ( ) . from ( getClientProps ( ) ) . build ( ) ) { java . lang . String tableName = getUniqueNames ( 1 ) [ 0 ] ; client . tableOperations ( ) . create ( tableName ) ;... | org . junit . Assert . assertTrue ( ( activeScans < 3 ) ) |
testNietGehuwdPersoon ( ) { nl . bzk . brp . model . attribuuttype . Datum datumAanvang = new nl . bzk . brp . model . attribuuttype . Datum ( 20120303 ) ; nl . bzk . brp . model . objecttype . bericht . RelatieBericht relatieBericht = maakRelatie ( "123456789" , "123456780" , datumAanvang ) ; nl . bzk . brp . model . ... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testMultipleProfilers ( ) { java . lang . String args = "server=localhost,port=8125,profilers=CPUTracingProfiler:MemoryProfiler" ; com . etsy . statsd . profiler . Arguments arguments = com . etsy . statsd . profiler . Arguments . parseArgs ( args ) ; java . util . Set < java . lang . Class < ? extends com . etsy . sta... | org . junit . Assert . assertEquals ( expected , arguments . profilers ) |
testRetrieve ( ) { com . shippo . model . Transaction testObject = ( ( com . shippo . model . Transaction ) ( com . shippo . model . TransactionTest . getDefaultObject ( ) ) ) ; com . shippo . model . Transaction retrievedObject ; retrievedObject = com . shippo . model . Transaction . retrieve ( ( ( java . lang . Strin... | org . junit . Assert . assertEquals ( testObject . objectId , retrievedObject . objectId ) |
testBasicSimilarityDifferentTypes ( ) { org . evosuite . testcase . TestCase test1 = new org . evosuite . testcase . DefaultTestCase ( ) ; org . evosuite . testcase . TestCase test2 = new org . evosuite . testcase . DefaultTestCase ( ) ; org . evosuite . testcase . statements . PrimitiveStatement < ? > aInt = new org .... | org . junit . Assert . assertTrue ( ( score <= 0 ) ) |
testTrashIsRestorableBaseModel ( ) { org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenIsRestorableBaseModel ) ) ; com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getSer... | org . junit . Assert . assertTrue ( restorable ) |
testBlasGemm6 ( ) { if ( org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . getClass ( ) . getSimpleName ( ) . toLowerCase ( ) . contains ( "cuda" ) ) return ; lombok . val A = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 12 , 12 , DataType . DOUBLE ) . reshape ( 'c' , 4 , 3 ) . dup ( 'f' ) ; lombok .... | org . junit . Assert . assertEquals ( exp , res ) |
testToStringPipeline ( ) { com . streamsets . datacollector . validation . Issue pipeline = new com . streamsets . datacollector . validation . Issue ( null , null , "a" , "b" , com . streamsets . datacollector . validation . TestIssue . RandomError . ERR_001 ) ; "<AssertPlaceHolder>" ; } toString ( ) { return schemaWr... | org . junit . Assert . assertNotNull ( pipeline . toString ( ) ) |
testInsert18WithIdsAcrossShardsAndCountWithFiltering ( ) { com . pardot . rhombus . ConnectionManager cm = getConnectionManager ( ) ; cm . setLogCql ( true ) ; com . pardot . rhombus . cobject . CKeyspaceDefinition definition = com . pardot . rhombus . util . JsonUtil . objectFromJsonResource ( com . pardot . rhombus .... | org . junit . Assert . assertEquals ( insertNum , count ) |
testRandomAccess ( ) { org . apache . druid . segment . writeout . OnHeapMemorySegmentWriteOutMedium segmentWriteOutMedium = new org . apache . druid . segment . writeout . OnHeapMemorySegmentWriteOutMedium ( ) ; org . apache . druid . segment . data . GenericIndexedWriter < java . lang . String > writer = new org . ap... | org . junit . Assert . assertEquals ( strings . get ( i ) , writer . get ( i ) ) |
testGetKilledSheep ( ) { it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . animals . Sheep s = new it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . animals . Sheep ( null ) ; s . setID ( ) ; it . polimi . deib . provaFinale2014 . andrea . celli_st... | org . junit . Assert . assertEquals ( s , m . getKilledSheep ( ) ) |
skipIndirectObjectDefinition ( ) { victim = new org . sejda . sambox . input . SourceReader ( inMemorySeekableSourceFrom ( "10<sp>0<sp>obj<sp><</key<sp>value>>" . getBytes ( ) ) ) ; victim . skipIndirectObjectDefinition ( ) ; "<AssertPlaceHolder>" ; } position ( ) { return source . position ( ) ; } | org . junit . Assert . assertEquals ( 8 , victim . position ( ) ) |
testNameBindingShouldNotThrowWhenAreParameterNamesAreNotAvailable ( ) { com . thoughtworks . paranamer . Paranamer paranamer = new com . thoughtworks . paranamer . CachingParanamer ( new com . thoughtworks . paranamer . AdaptiveParanamer ( ) ) ; java . lang . reflect . Method method = getClass ( ) . getMethod ( "method... | org . junit . Assert . assertEquals ( "name" , binding . getName ( ) ) |
testDeleteNonExistRowWithIGnoreForInternal ( ) { java . util . Map < java . lang . String , com . alicloud . openservices . tablestore . model . PrimaryKeyType > pks = new java . util . TreeMap < java . lang . String , com . alicloud . openservices . tablestore . model . PrimaryKeyType > ( ) ; pks . put ( "PK1" , Prima... | org . junit . Assert . assertEquals ( row , null ) |
shouldNotBroadcastMessageFromFailedProcess ( ) { broker . BrokerIntegrationTest . DummyProcess dummy1 = new broker . BrokerIntegrationTest . DummyProcess ( "Dummy<sp>1" , 1 , 2 ) ; broker . BrokerIntegrationTest . DummyProcess dummy2 = new broker . BrokerIntegrationTest . DummyProcess ( "Dummy<sp>2" , 2 , 2 ) ; dummy1 ... | org . junit . Assert . assertNull ( dummy2 . getMessage ( ) ) |
testToString ( ) { "<AssertPlaceHolder>" ; } toString ( ) { return pattern ; } | org . junit . Assert . assertEquals ( pattern , rule . toString ( ) ) |
followsSameConventionsAsBimap ( ) { java . util . concurrent . atomic . AtomicInteger counter = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; com . jnape . palatable . lambda . adt . Either < java . lang . Object , java . lang . Integer > either = right ( 1 ) ; com . jnape . palatable . lambda . functio... | org . junit . Assert . assertEquals ( 1 , counter . get ( ) ) |
testSetName ( ) { tag . setName ( "name" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; } | org . junit . Assert . assertEquals ( "name" , tag . getName ( ) ) |
testFindStudentWithAddressById ( ) { com . mybatis3 . domain . Student student = com . mybatis3 . services . StudentServiceTest . studentService . findStudentWithAddressById ( 2 ) ; "<AssertPlaceHolder>" ; System . out . println ( ( ( ( student . getAddress ( ) . getAddrId ( ) ) + ":" ) + ( student . getAddress ( ) . g... | org . junit . Assert . assertNotNull ( student ) |
testRegisterInstantiatedCoder ( ) { org . apache . beam . sdk . coders . CoderRegistry registry = org . apache . beam . sdk . coders . CoderRegistry . createDefault ( ) ; registry . registerCoderForClass ( org . apache . beam . sdk . coders . CoderRegistryTest . MyValue . class , org . apache . beam . sdk . coders . Co... | org . junit . Assert . assertEquals ( registry . getCoder ( org . apache . beam . sdk . coders . CoderRegistryTest . MyValue . class ) , org . apache . beam . sdk . coders . CoderRegistryTest . MyValueCoder . of ( ) ) |
testPartitionManagement ( ) { org . picketlink . idm . PartitionManager partitionManager = getPartitionManager ( ) ; org . picketlink . idm . model . basic . Realm partition = partitionManager . getPartition ( org . picketlink . idm . model . basic . Realm . class , Realm . DEFAULT_REALM ) ; if ( partition != null ) { ... | org . junit . Assert . assertNotNull ( partitionManager . getPartition ( org . picketlink . idm . model . basic . Realm . class , Realm . DEFAULT_REALM ) ) |
testCurveZ85Keys ( ) { if ( ( org . zeromq . ZMQ . getFullVersion ( ) ) < ( org . zeromq . ZMQ . makeVersion ( 4 , 0 , 0 ) ) ) return ; final java . nio . charset . Charset utf8 = java . nio . charset . Charset . forName ( "UTF-8" ) ; final java . lang . String endpoint = "tcp://127.0.0.1:5000" ; final org . zeromq . Z... | org . junit . Assert . assertEquals ( sent , received ) |
shouldHaveNonNullReasonWhenAdvisedWithNonNull ( ) { result . advise ( "foo" , InteractionAdvisorFacet . NOOP ) ; "<AssertPlaceHolder>" ; } getReason ( ) { return isNotVetoing ( ) ? null : reasonBuf . toString ( ) ; } | org . junit . Assert . assertEquals ( "foo" , result . getReason ( ) ) |
testDispatch_ImportApplianceNonExistingModel_ExpectsValidResponse ( ) { this . imageMetaData . setModel ( org . osc . core . broker . service . appliance . ImportApplianceSoftwareVersionServiceTest . NON_EXISTING_SOFTWARE_MODEL ) ; org . mockito . Mockito . when ( org . apache . commons . io . FileUtils . readFileToStr... | org . junit . Assert . assertNotNull ( appliance ) |
testCurveBinaryKeys ( ) { if ( ( org . zeromq . ZMQ . getFullVersion ( ) ) < ( org . zeromq . ZMQ . makeVersion ( 4 , 0 , 0 ) ) ) return ; final java . nio . charset . Charset utf8 = java . nio . charset . Charset . forName ( "UTF-8" ) ; final java . lang . String endpoint = "tcp://127.0.0.1:5000" ; final byte [ ] req_... | org . junit . Assert . assertEquals ( sent , received ) |
testDaemonSync ( ) { org . hivedb . Hive hive = loadHive ( ) ; org . hivedb . Hive passiveSync = loadHive ( ) ; java . util . ArrayList < java . util . Observer > observers = new java . util . ArrayList < java . util . Observer > ( ) ; observers . add ( passiveSync ) ; org . hivedb . HiveSyncDaemon daemon = new org . h... | org . junit . Assert . assertNotNull ( passiveSync . getNode ( createNode ( getHiveDatabaseName ( ) ) . getName ( ) ) ) |
debugMarkerThrowableMessageArgs ( ) { uk . org . lidalia . slf4jtest . LoggingEvent event = uk . org . lidalia . slf4jtest . LoggingEvent . debug ( marker , throwable , message , arg1 , arg2 ) ; uk . org . lidalia . slf4jtest . LoggingEvent expected = new uk . org . lidalia . slf4jtest . LoggingEvent ( DEBUG , marker ,... | org . junit . Assert . assertThat ( event , org . hamcrest . core . Is . is ( expected ) ) |
testParseSimpleNoDecimals ( ) { java . lang . String source = "{1;<sp>1;<sp>1}" ; org . hipparchus . linear . ArrayRealVector expected = new org . hipparchus . linear . ArrayRealVector ( new double [ ] { 1 , 1 , 1 } ) ; org . hipparchus . linear . ArrayRealVector actual = realVectorFormat . parse ( source ) ; "<AssertP... | org . junit . Assert . assertEquals ( expected , actual ) |
testWithFormats ( ) { java . lang . String expected = "ALTER<sp>TABLE<sp>dataset_xyz<sp>SET<sp>FILEFORMAT<sp>" + ( ( "INPUTFORMAT<sp>'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'<sp>" + "OUTPUTFORMAT<sp>'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'<sp>" ) + "SERDE<sp>'org.apache.hadoop.hi... | org . junit . Assert . assertEquals ( expected , actual ) |
testCreateEntity ( ) { java . lang . String name = "LightMan" ; java . lang . Long personTypeId = 25L ; org . lnu . is . resource . person . PersonResource expected = new org . lnu . is . resource . person . PersonResource ( ) ; expected . setBegDate ( new java . util . Date ( ) ) ; expected . setEndDate ( new java . u... | org . junit . Assert . assertEquals ( expected , actual ) |
checkNullMessageId ( ) { final com . amazonaws . encryptionsdk . model . CiphertextHeaders ciphertextHeaders = new com . amazonaws . encryptionsdk . model . CiphertextHeaders ( ) ; "<AssertPlaceHolder>" ; } getMessageId ( ) { return ( messageId_ ) != null ? messageId_ . clone ( ) : null ; } | org . junit . Assert . assertEquals ( null , ciphertextHeaders . getMessageId ( ) ) |
testGetResourcesErrorResponse ( ) { final java . lang . String errorMsg = "unknown<sp>error" ; niFiClient = new org . apache . ranger . services . nifi . client . TestNiFiClient . MockNiFiClient ( errorMsg , Response . Status . BAD_REQUEST . getStatusCode ( ) ) ; org . apache . ranger . plugin . service . ResourceLooku... | org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( errorMsg ) ) |
testOverlappingReplace4 ( ) { org . antlr . v4 . tool . LexerGrammar g = new org . antlr . v4 . tool . LexerGrammar ( ( "lexer<sp>grammar<sp>T;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; java . lang . String input = "abcc" ; org . antlr . v4 . runtime . LexerInterpreter lexEng... | org . junit . Assert . assertEquals ( expecting , result ) |
shouldIterateOnOneIterables ( ) { final java . util . List < java . lang . Iterable < java . lang . String > > allLists = newArrayList ( ) ; allLists . add ( newArrayList ( "A" , "B" , "C" ) ) ; int count = 0 ; for ( final java . lang . String s : org . openspotlight . common . util . SLCollections . < java . lang . St... | org . junit . Assert . assertThat ( count , org . hamcrest . core . Is . is ( 3 ) ) |
testRuleKeyIsOrderInsensitiveForSourcesAndResources ( ) { com . facebook . buck . io . filesystem . ProjectFilesystem filesystem = new com . facebook . buck . io . filesystem . impl . AllExistingProjectFilesystem ( ) { @ com . facebook . buck . jvm . java . Override public boolean isDirectory ( java . nio . file . Path... | org . junit . Assert . assertEquals ( key1 , key2 ) |
testSetPathColorStd ( ) { System . out . println ( "setPathColor" ) ; java . awt . Color color = java . awt . Color . GREEN ; mudmap2 . backend . World instance = new mudmap2 . backend . World ( "MyWorld" ) ; instance . setPathColorStd ( color ) ; java . awt . Color result = instance . getPathColorStd ( ) ; "<AssertPla... | org . junit . Assert . assertEquals ( color , result ) |
attributesNames ( ) { com . vaadin . flow . dom . Element e = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; e . setAttribute ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } getAttributeNames ( ) { return null ; } | org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "foo" } , e . getAttributeNames ( ) . toArray ( ) ) |
testUnknownPattern1 ( ) { result = p . match ( "LABEL(x)" , data ) ; "<AssertPlaceHolder>" ; } size ( ) { return chunkedData . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
useMorpheusQuery ( ) { org . neo4j . graphdb . index . IndexManager index = org . neo4j . rest . graphdb . MatrixDatabaseTest . graphDb . index ( ) ; org . neo4j . graphdb . index . Index < org . neo4j . graphdb . Node > goodGuys = index . forNodes ( "heroes" ) ; for ( org . neo4j . graphdb . Node morpheus : goodGuys .... | org . junit . Assert . assertEquals ( "Morpheus" , morpheus . getProperty ( "name" ) ) |
testBlankLine_DataBody ( ) { com . dumbster . smtp . Request request = new com . dumbster . smtp . Request ( new com . dumbster . smtp . BlankLine ( ) , null , SmtpState . DATA_BODY ) ; com . dumbster . smtp . Response response = request . execute ( mailStore , com . dumbster . smtp . RequestTest . message ) ; "<Assert... | org . junit . Assert . assertEquals ( ( - 1 ) , response . getCode ( ) ) |
testGetStorageAttributeIntegerValueByName_8 ( ) { java . lang . String attributeName = "test" ; org . finra . herd . model . jpa . StorageEntity storageEntity = storageDaoTestHelper . createStorageEntity ( ) ; boolean attributeRequired = false ; boolean attributeValueRequiredIfExists = true ; java . lang . Integer valu... | org . junit . Assert . assertEquals ( null , value ) |
test00002_Versioning ( ) { if ( ( version ) == ( Version . AsVersion . EAP_7_0_0 ) ) { return ; } org . jboss . as . controller . client . helpers . domain . DomainClient masterClient = support . getDomainMasterLifecycleUtil ( ) . createDomainClient ( ) ; org . jboss . dmr . ModelNode masterModel ; try { masterModel = ... | org . junit . Assert . assertEquals ( masterModel , slaveModel ) |
testBuildReportChunkSuccessfull2 ( ) { dchunk . setContent ( odata ) ; instance . buildReportChunk ( dchunk , doc , true ) ; java . util . ArrayList < java . lang . Object [ ] > events = docListener . getCapturedEvents ( ) ; "<AssertPlaceHolder>" ; java . lang . Object [ ] event = events . get ( 0 ) ; confirmParagraphA... | org . junit . Assert . assertTrue ( ( ( events . size ( ) ) == 5 ) ) |
testConvertRawValueInvalidType ( ) { java . lang . Object expectedValue = java . lang . Double . valueOf ( "1000e05" ) ; java . lang . Object rawValue = java . lang . Double . valueOf ( "1000e05" ) ; com . thinkbiganalytics . policy . standardization . UppercaseStandardizer standardizer = com . thinkbiganalytics . poli... | org . junit . Assert . assertEquals ( expectedValue , standardizer . convertRawValue ( rawValue ) ) |
testCompletenessOfSpecifiedConfigurations ( ) { org . apache . taverna . scufl2 . validation . correctness . DummyProfile profile = new org . apache . taverna . scufl2 . validation . correctness . DummyProfile ( ) ; profile . setConfigurations ( new org . apache . taverna . scufl2 . api . common . NamedSet < org . apac... | org . junit . Assert . assertFalse ( problem ) |
attemptToMockNonMockableJREClass ( java . lang . Integer ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNull ( mock ) |
setStatus_clearCacheStatus_statusIsSet ( ) { eu . chargetime . ocpp . model . core . ClearCacheStatus clearCacheStatus = eu . chargetime . ocpp . model . core . ClearCacheStatus . Accepted ; confirmation . setStatus ( clearCacheStatus ) ; "<AssertPlaceHolder>" ; } getStatus ( ) { return status ; } | org . junit . Assert . assertThat ( confirmation . getStatus ( ) , org . hamcrest . CoreMatchers . equalTo ( clearCacheStatus ) ) |
testGetCodegenValue_schemaType_forJava ( ) { java . lang . String testValue = "{\"type\"},{\"0record\",\"name\"},{\"0CaseFeed\",\"fields\":[{\"name\"},{\"0Id\",\"type\"},{\"0string\",\"di.table.comment\"},{\"0this<sp>is<sp>a<sp>\n<sp>id\",\"talend.field.dbColumnName\"},{\"0Id\",\"di.column.talendType\"},{\"0id_String\"... | org . junit . Assert . assertEquals ( expectedValue , codegenValue ) |
testFail ( ) { net . bpelunit . framework . model . test . data . ReceiveCondition c = eval ( "b:AirlineReservationSyncProcessResponse/b:result/@some" , "'Lulu'" ) ; "<AssertPlaceHolder>" ; } isFailure ( ) { return ( fCode ) == ( net . bpelunit . framework . model . test . report . ArtefactStatus . StatusCode . FAILED ... | org . junit . Assert . assertTrue ( c . isFailure ( ) ) |
testGetByIndex ( ) { com . codenjoy . dojo . services . Player player = createPlayer ( ) ; com . codenjoy . dojo . services . PlayerGame playerGame = playerGames . get ( 0 ) ; "<AssertPlaceHolder>" ; } getPlayer ( ) { return player ; } | org . junit . Assert . assertEquals ( player , playerGame . getPlayer ( ) ) |
testRepeatedExecutionJob ( ) { org . drools . core . SessionConfiguration config = org . drools . core . SessionConfiguration . newInstance ( ) ; config . setClockType ( ClockType . REALTIME_CLOCK ) ; org . drools . core . time . TimerService timeService = org . drools . core . time . TimerServiceFactory . getTimerServ... | org . junit . Assert . assertEquals ( 3 , ctx . getList ( ) . size ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.